mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
chore: run all tests with bidi by default (#32572)
Only use expectation files on CI to save resources
This commit is contained in:
parent
1981989aef
commit
fd1f32556b
2
.github/workflows/tests_bidi.yml
vendored
2
.github/workflows/tests_bidi.yml
vendored
@ -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'
|
||||
|
@ -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(' › ');
|
||||
|
Loading…
x
Reference in New Issue
Block a user