From bf1e8520a5f7d6eaad98a2ad3247d31e4b4c14b2 Mon Sep 17 00:00:00 2001 From: gioboa Date: Mon, 8 Jan 2024 22:39:38 +0100 Subject: [PATCH] test: split tests --- tests/platform/iframe/iframe.spec.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/platform/iframe/iframe.spec.ts b/tests/platform/iframe/iframe.spec.ts index 8b57b518..a7e8849f 100644 --- a/tests/platform/iframe/iframe.spec.ts +++ b/tests/platform/iframe/iframe.spec.ts @@ -1,6 +1,6 @@ -import { test, expect } from '@playwright/test'; +import { expect, test } from '@playwright/test'; -test('iframe', async ({ page }) => { +test('iframe 1', async ({ page }) => { await page.goto('/tests/platform/iframe/'); await page.waitForSelector('.testSrc'); @@ -77,6 +77,10 @@ test('iframe', async ({ page }) => { await page.waitForSelector('.testOnLoadNoSrc'); const testOnLoadNoSrc = page.locator('#testOnLoadNoSrc'); await expect(testOnLoadNoSrc).toHaveText('onload'); +}); + +test('iframe 2', async ({ page }) => { + await page.goto('/tests/platform/iframe/'); await page.waitForSelector('.testMemberNames'); const testMemberNames = page.locator('#testMemberNames');