Skip to content

Commit 9e8ceaf

Browse files
committed
Refactor expectation in 'second call interrupts during update' test for consistency across browsers
1 parent bea5f6e commit 9e8ceaf

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

tests/drawer.spec.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,7 @@ test('second call interrupts during update', async ({ page, browserName }) => {
8282
await expect(page).toHaveTitle("Page 1");
8383
await page.locator('#b7').click();
8484
await new Promise<void>(resolve => setTimeout(resolve, 1000));
85-
expect(text).toBe(browserName === "chromium"
86-
? " true hi update1 hi true ho ready error update1b done finished update error ready error finished error"
87-
: " true hi update1 hi true ho ready error update2 ho update1b done finished update2b done ::view-transition-group( finished");
85+
expect(text).toBe(" true hi update1 hi true ho ready error update2 ho update1b done finished update2b done ::view-transition-group( finished");
8886
});
8987

9088

0 commit comments

Comments
 (0)