-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EXUI-2472 - make crossbrowser checks run on playwright. (#4159)
- Loading branch information
1 parent
c5ea534
commit 7291d28
Showing
4 changed files
with
89 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
import { defineConfig, devices } from '@playwright/test'; | ||
|
||
const headlessMode = process.env.HEAD !== 'true'; | ||
export const axeTestEnabled = process.env.ENABLE_AXE_TESTS === 'true'; | ||
|
||
module.exports = defineConfig({ | ||
testDir: './playwright_tests/E2E', | ||
/* Run tests in files in parallel */ | ||
fullyParallel: true, | ||
/* Fail the build on CI if you accidentally left test.only in the source code. */ | ||
forbidOnly: !!process.env.CI, | ||
/* Retry on CI only */ | ||
retries: 3, // Set the number of retries for all projects | ||
|
||
timeout: 3 * 60 * 1000, | ||
expect: { | ||
timeout: 1 * 60 * 1000 | ||
}, | ||
reportSlowTests: null, | ||
|
||
/* Opt out of parallel tests on CI. */ | ||
workers: process.env.FUNCTIONAL_TESTS_WORKERS ? parseInt(process.env.FUNCTIONAL_TESTS_WORKERS, 10) : 1, | ||
|
||
reporter: [[process.env.CI ? 'html' : 'list'], | ||
['html', { open: 'never', outputFolder: 'functional-output/tests/playwright-e2e' }]], | ||
|
||
projects: [ | ||
{ | ||
name: 'chromium', | ||
use: { ...devices['Desktop Chrome'], | ||
channel: 'chrome', | ||
headless: headlessMode, | ||
trace: 'on-first-retry' | ||
} | ||
}, | ||
{ | ||
name: 'firefox', | ||
use: { ...devices['Desktop Firefox'], | ||
screenshot: 'only-on-failure', | ||
headless: headlessMode, | ||
trace: 'off' | ||
} | ||
}, | ||
{ | ||
name: 'webkit', | ||
use: { ...devices['Desktop Safari'], | ||
screenshot: 'only-on-failure', | ||
headless: headlessMode, | ||
trace: 'off' | ||
} | ||
} | ||
// { | ||
// name: 'MicrosoftEdge', | ||
// use: { ...devices['Desktop Edge'], | ||
// channel: 'msedge', | ||
// screenshot: 'only-on-failure', | ||
// headless: headlessMode, | ||
// trace: 'off' | ||
// } | ||
// } | ||
] | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters