mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-11 04:30:17 +03:00
chore: role selectors non-experimental (#14021)
This commit is contained in:
parent
c3cf7ee4a7
commit
64cd55089a
@ -47,6 +47,7 @@ export class Selectors {
|
||||
'data-test', 'data-test:light',
|
||||
'nth', 'visible', 'control', 'has',
|
||||
'left-of', 'right-of', 'above', 'below', 'near',
|
||||
'role',
|
||||
]);
|
||||
this._builtinEnginesInMainWorld = new Set([
|
||||
'_react', '_vue',
|
||||
@ -135,7 +136,6 @@ export class Selectors {
|
||||
}
|
||||
|
||||
parseSelector(selector: string | ParsedSelector, strict: boolean): SelectorInfo {
|
||||
this._builtinEngines.add('role');
|
||||
const parsed = typeof selector === 'string' ? parseSelector(selector) : selector;
|
||||
let needsMainWorld = false;
|
||||
for (const name of allEngineNames(parsed)) {
|
||||
|
@ -16,8 +16,6 @@
|
||||
|
||||
import { test, expect } from './pageTest';
|
||||
|
||||
test.skip(({ mode }) => mode !== 'default', 'Experimental features only work in default mode');
|
||||
|
||||
test('should detect roles', async ({ page }) => {
|
||||
await page.setContent(`
|
||||
<button>Hello</button>
|
||||
|
Loading…
Reference in New Issue
Block a user