-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get playwright working with docker compose (#7)
* Get playwright working with docker compose * Access secrets and pass to compose file * Remove old -e args * Fix var names * Try without deps * Add deps back in * Branch tidy up
- Loading branch information
Showing
7 changed files
with
76 additions
and
10 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 |
---|---|---|
|
@@ -23,5 +23,6 @@ | |
"playwright-core": "^1.50.0", | ||
"ts-node": "^10.9.2" | ||
}, | ||
"description": "" | ||
"description": "", | ||
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e" | ||
} |
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,52 @@ | ||
import { defineConfig, devices } from '@playwright/test'; | ||
import * as dotenv from 'dotenv'; | ||
|
||
// Load environment variables from .env file | ||
dotenv.config(); | ||
|
||
export default defineConfig({ | ||
testDir: './src/tests', | ||
testMatch: '**/*.spec.ts', | ||
timeout: 30 * 1000, // 30 seconds | ||
expect: { | ||
timeout: 5000, // 5 seconds | ||
}, | ||
fullyParallel: true, | ||
retries: 1, | ||
workers: 4, | ||
reporter: [['list'], ['html', { open: 'never' }]], | ||
use: { | ||
trace: 'on-first-retry', | ||
screenshot: 'only-on-failure', | ||
video: 'retain-on-failure', | ||
baseURL: 'http://localhost:7050/', | ||
}, | ||
projects: [ | ||
{ | ||
name: 'Chromium', | ||
use: { browserName: 'chromium' }, | ||
}, | ||
{ | ||
name: 'Firefox', | ||
use: { browserName: 'firefox' }, | ||
}, | ||
{ | ||
name: 'WebKit', | ||
use: { browserName: 'webkit' }, | ||
}, | ||
{ | ||
name: 'Mobile Chrome', | ||
use: { | ||
browserName: 'chromium', | ||
...devices['Pixel 8'], | ||
}, | ||
}, | ||
{ | ||
name: 'Mobile Safari', | ||
use: { | ||
browserName: 'webkit', | ||
...devices['iPhone 15'], | ||
}, | ||
}, | ||
], | ||
}); |
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