File tree 3 files changed +9
-3
lines changed
3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1
1
pipeline {
2
2
agent {
3
3
docker {
4
- image ' node:18.18.2-alpine3.18 '
4
+ image ' mcr.microsoft.com/playwright:v1.34.3-jammy '
5
5
args ' -p 3000:3000 -p 5000:5000 -u root'
6
6
}
7
7
}
8
8
stages {
9
9
stage(' build' ) {
10
10
steps {
11
- sh ' npm install && npm run test:pw'
11
+ sh ' PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 npm install'
12
+ }
13
+ }
14
+ stage(' test' ) {
15
+ steps {
16
+ sh ' npm run test:pw'
12
17
}
13
18
}
14
19
}
Original file line number Diff line number Diff line change 9
9
"test:pw:debug" : " npx playwright test tests/playwright --debug" ,
10
10
"test:pw:record-trace" : " npx playwright test tests/playwright --trace on" ,
11
11
"test:pw:ui" : " npx playwright test --ui tests/playwright" ,
12
+ "pw:install" : " npx playwright install" ,
12
13
"pw:report" : " npx playwright show-report" ,
13
14
"compile" : " tsc" ,
14
15
"compile:watch" : " tsc -w"
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ export default defineConfig({
4
4
testDir : 'tests/playwright' ,
5
5
timeout : 2 * 60 * 1000 ,
6
6
use : {
7
- headless : false ,
7
+ headless : true ,
8
8
trace : 'on' ,
9
9
screenshot : 'on'
10
10
} ,
You can’t perform that action at this time.
0 commit comments