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
test: fix locator-misc-1 tests on Android (#7985)
Max Schmittb88199d93e4d
diff --git a/tests/page/locator-misc-1.spec.ts b/tests/page/locator-misc-1.spec.tsindex 6b13a79878..98d3919cea 100644--- a/tests/page/locator-misc-1.spec.ts+++ b/tests/page/locator-misc-1.spec.ts@@ -15,7 +15,7 @@* limitations under the License.*/-import { contextTest as it, expect } from '../config/browserTest';+import { test as it, expect } from './pageTest';import path from 'path';it('should hover', async ({ page, server }) => {@@ -92,15 +92,3 @@ it('should upload the file', async ({page, server, asset}) => {await input.setInputFiles(filePath);expect(await page.evaluate(e => (e as HTMLInputElement).files[0].name, await input.elementHandle())).toBe('file-to-upload.txt');});--it.describe('tap group', () => {- it.use({ hasTouch: true });- it('should send all of the correct events', async ({ page }) => {- await page.setContent(`- <div id="a" style="background: lightblue; width: 50px; height: 50px">a</div>- <div id="b" style="background: pink; width: 50px; height: 50px">b</div>- `);- await page.locator('#a').tap();- await page.locator('#b').tap();- });-});diff --git a/tests/tap.spec.ts b/tests/tap.spec.tsindex 5fe2eddab9..f6e57f2c07 100644--- a/tests/tap.spec.ts+++ b/tests/tap.spec.ts@@ -200,3 +200,14 @@ async function trackEvents(target: ElementHandle) {});return eventsHandle;}++it.describe('locators', () => {+ it('should send all of the correct events', async ({ page }) => {+ await page.setContent(`+ <div id="a" style="background: lightblue; width: 50px; height: 50px">a</div>+ <div id="b" style="background: pink; width: 50px; height: 50px">b</div>+ `);+ await page.locator('#a').tap();+ await page.locator('#b').tap();+ });+});\ No newline at end of file