test: add a few regressed selectors (#9875)

This commit is contained in:
Alex Rudenko 2023-03-17 12:55:39 +01:00 committed by GitHub
parent de6e6a69a1
commit aa7c475461
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -374,6 +374,16 @@ describe('Query handler tests', function () {
return element.tagName === 'BUTTON';
})
).toBeTruthy();
// Should parse more complex CSS selectors. Listing a few problematic
// cases from bug reports.
for (const selector of [
'.user_row[data-user-id="\\38 "]:not(.deactivated_user)',
`input[value='Search']:not([class='hidden'])`,
`[data-test-id^="test-"]:not([data-test-id^="test-foo"])`,
]) {
await page.$$(selector);
}
});
it('should work with text selectors', async () => {