Skip to content

Commit

Permalink
Use the mcr.microsoft.com/playwright:v1.40.0-jammy docker image to ru…
Browse files Browse the repository at this point in the history
…n the tests
  • Loading branch information
elchininet committed Nov 24, 2023
1 parent 4105397 commit f3cbb69
Show file tree
Hide file tree
Showing 71 changed files with 5 additions and 9 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ jobs:
- name: Install deps
run: yarn install --frozen-lockfile
- name: E2E tests
run: |
yarn playwright install --with-deps
yarn test:all
run: yarn test:all
- uses: actions/upload-artifact@v3
if: always()
with:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ jobs:
- name: Install
run: yarn install --frozen-lockfile
- name: E2E tests
run: |
yarn playwright install --with-deps
yarn test:all
run: yarn test:all
- uses: actions/upload-artifact@v3
if: always()
with:
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@
"build": "rollup --config rollup.config.js --bundleConfigAsCjs",
"test:ts": "tsc --noEmit",
"test:run": "playwright test",
"start:playwright": "docker run --rm --network host --add-host host.docker.internal:host-gateway -v $(pwd):/work/ -w /work -it mcr.microsoft.com/playwright:v1.40.0-jammy sh -c \"yarn install --frozen-lockfile && yarn test:run && exit\"",
"test:open": "playwright test --ui",
"test:update": "playwright test --update-snapshots",
"test:ci": "yarn demo && yarn test:run && yarn stop:ha",
"test:ci": "yarn demo && yarn start:playwright && yarn stop:ha",
"test:all": "yarn test:ts && yarn test:ci",
"prepare": "yarn build",
"prepublishOnly": "yarn test:all",
Expand Down
1 change: 0 additions & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ export default defineConfig({
name: 'chromium',
use: {
...devices['Desktop Chrome'],
channel: 'chrome',
launchOptions: {
args: [
'--font-render-hinting=none',
Expand Down
2 changes: 1 addition & 1 deletion tests/constants/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const BASE_URL = 'http://localhost:8123';
export const BASE_URL = 'http://host.docker.internal:8123';

export const HA_TOKEN = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiIzM2U0OGE1Nzk4NDU0YTI5YTBkZjgxMTlkZjgzMmRjMSIsImlhdCI6MTcwMDcwNzIwMiwiZXhwIjoyMDE2MDY3MjAyfQ.JTRycmen2kDa74OVUe_y1IEXE4aiKH7Hnhw6Wx5u5Bg';

Expand Down
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.

0 comments on commit f3cbb69

Please sign in to comment.