Skip to content

Commit

Permalink
Add missing apt-get update and upgrade Playwright in tests (#9)
Browse files Browse the repository at this point in the history
- Ensure we update apt before proceeding.
- Upgrades playwright used in tests to support the upcoming Debian 12
based images for ddev. This playwright version doesn't have any
connection to the version of playwright used on real sites.
- Updates kasmvnc to work with Debian 12.
  • Loading branch information
deviantintegral authored Mar 2, 2024
2 parents b95ff1a + 1fb2f64 commit ccf6b42
Show file tree
Hide file tree
Showing 8 changed files with 957 additions and 55 deletions.
1 change: 1 addition & 0 deletions install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ project_files:
- commands/web/playwright
- web-build/.gitignore
- web-build/disabled.Dockerfile.playwright
- web-build/install-kasmvnc.sh
- web-build/kasmvnc.yaml
- web-build/xstartup
- config.playwright.yml
1 change: 1 addition & 0 deletions tests/test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ get_addon() {
assert [ -f .ddev/commands/web/playwright ]
assert [ -f .ddev/web-build/.gitignore ]
assert [ -f .ddev/web-build/disabled.Dockerfile.playwright ]
assert [ -x .ddev/web-build/install-kasmvnc.sh ]
assert [ -f .ddev/web-build/kasmvnc.yaml ]
assert [ -f .ddev/web-build/xstartup ]
mkdir test
Expand Down
50 changes: 29 additions & 21 deletions tests/testdata/npm-playwright/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/testdata/npm-playwright/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"author": "",
"license": "ISC",
"devDependencies": {
"@playwright/test": "^1.33.0"
"@playwright/test": "^1.42.1"
}
}
5 changes: 2 additions & 3 deletions tests/testdata/yarn-playwright/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"main": "index.js",
"license": "MIT",
"devDependencies": {
"@playwright/test": "^1.33.0"
},
"scripts": {}
"@playwright/test": "^1.42.1"
}
}
Loading

0 comments on commit ccf6b42

Please sign in to comment.