aboutsummaryrefslogtreecommitdiff
path: root/playwright.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'playwright.config.js')
-rw-r--r--playwright.config.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/playwright.config.js b/playwright.config.js
index 0f15ff59..11d79e72 100644
--- a/playwright.config.js
+++ b/playwright.config.js
@@ -62,8 +62,18 @@ module.exports = defineConfig({
/* Configure projects for major browsers */
projects: [
{
+ name: 'playwright setup',
+ testMatch: /global\.setup\.js/,
+ teardown: 'playwright teardown'
+ },
+ {
+ name: 'playwright teardown',
+ testMatch: /global\.teardown\.js/
+ },
+ {
name: 'chromium',
- use: {...devices['Desktop Chrome']}
+ use: {...devices['Desktop Chrome']},
+ dependencies: ['playwright setup']
}
// {