test: skip highlight tests on != default mode (#12471)

This commit is contained in:
Max Schmitt 2022-03-02 23:46:33 +01:00 committed by GitHub
parent 77db87b6f5
commit cb5b4cf06b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,6 +16,8 @@
import { test as it, expect } from './pageTest';
it.skip(({ mode }) => mode !== 'default', 'Highlight element has a closed shadow-root on != default');
it('should highlight locator', async ({ page }) => {
await page.setContent(`<input type='text' />`);
await page.locator('input').highlight();