Skip to content

Commit

Permalink
test: skipp flack test for pw 1.41
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalets committed Jan 22, 2025
1 parent 1f404a6 commit d78fcb9
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { expect } from '@playwright/test';
import { test } from '../../../check-report/fixtures';
import { getPackageVersion } from '../../../../../src/utils';

const playwrightVersion = getPackageVersion('@playwright/test');

test('timeout in fixture setup', async ({ scenario }) => {
await expect(scenario.getSteps()).toContainText([
Expand All @@ -24,6 +27,9 @@ test('timeout in fixture setup', async ({ scenario }) => {
});

test('timeout in before hook', async ({ scenario }) => {
// In PW 1.41 sometime none of before hook entries has error or duretion -1,
// so timeout error is attachmed to After Hooks.
test.skip(playwrightVersion < '1.42.0');
await expect(scenario.getSteps()).toContainText([
// sometimes we still have 'BeforeEach Hooks|Before Hooks' here, not 'my timeouted hook',
// when 'duration' is not -1, we can't find timeouted item.
Expand Down

0 comments on commit d78fcb9

Please sign in to comment.