Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Serial mode w/ afterAll confuses the trace viewer #24087

Closed
pavelfeldman opened this issue Jul 6, 2023 · 0 comments · Fixed by #24106
Closed

[BUG] Serial mode w/ afterAll confuses the trace viewer #24087

pavelfeldman opened this issue Jul 6, 2023 · 0 comments · Fixed by #24106
Assignees
Labels

Comments

@pavelfeldman
Copy link
Member

pavelfeldman commented Jul 6, 2023

import { test, expect } from '@playwright/test';

let page;

test.beforeAll(async ({ browser }) => {
  const context = await browser.newContext();
  page = await context.newPage();
});

test.afterAll(async () => {
  await page.close();
});

test.only('check go to administration section', async () => {
  await expect(page.locator('body')).toHaveText('time out this assertion', { timeout: 0 });
});

The trace chunk generated for afterAll() is going to have after of the polling toHaveText assertion w/o before:

{"type":"after","callId":"call@28","endTime":648852.778,"log":["expect.toHaveText with timeout 60000ms"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant