Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
chore: remove *:light selectors (#38316)
Dmitry Gozmanabdd5ecaa7f0
diff --git a/packages/injected/src/injectedScript.ts b/packages/injected/src/injectedScript.tsindex 62beb558aa..9c56273762 100644--- a/packages/injected/src/injectedScript.ts+++ b/packages/injected/src/injectedScript.ts@@ -1256,9 +1256,11 @@ export class InjectedScript {}checkDeprecatedSelectorUsage(selector: ParsedSelector, matches: Element[]) {+ const kDeprecatedSelectors = new Set(['_react', '_vue', 'xpath:light', 'text:light', 'id:light',+ 'data-testid:light', 'data-test-id:light', 'data-test:light']);if (!matches.length)return;- const deperecated = selector.parts.find(part => part.name === '_react' || part.name === '_vue');+ const deperecated = selector.parts.find(part => kDeprecatedSelectors.has(part.name));if (!deperecated)return;const lines = this._generateSelectors(matches).map(line => `\n ` + line);