Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore: run all tests with bidi by default (#32572)

Yury Semikhatskyfd1f32556bfe
diff --git a/.github/workflows/tests_bidi.yml b/.github/workflows/tests_bidi.yml
index b534a7b747..8224d24883 100644
--- a/.github/workflows/tests_bidi.yml
+++ b/.github/workflows/tests_bidi.yml
@@ -42,3 +42,5 @@ jobs:
if: matrix.channel == 'bidi-firefox-beta'
- name: Run tests
run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- npm run biditest -- --project=${{ matrix.channel }}*
+ env:
+ PWTEST_USE_BIDI_EXPECTATIONS: '1'
diff --git a/tests/bidi/expectationUtil.ts b/tests/bidi/expectationUtil.ts
index ce55416048..23491d2d91 100644
--- a/tests/bidi/expectationUtil.ts
+++ b/tests/bidi/expectationUtil.ts
@@ -23,6 +23,8 @@ export type TestExpectation = 'unknown' | 'flaky' | 'pass' | 'fail' | 'timeout';
type ShouldSkipPredicate = (info: TestInfo) => boolean;
export async function createSkipTestPredicate(projectName: string): Promise<ShouldSkipPredicate> {
+ if (!process.env.PWTEST_USE_BIDI_EXPECTATIONS)
+ return () => false;
const expectationsMap = await parseBidiExpectations(projectName);
return (info: TestInfo) => {
const key = [info.project.name, ...info.titlePath].join(' › ');