Skip to content

Commit

Permalink
PLANET-7171: Use WP Playwright E2E utils package (#2060)
Browse files Browse the repository at this point in the history
  • Loading branch information
lithrel authored Jul 18, 2023
1 parent a0f4960 commit 0719e80
Show file tree
Hide file tree
Showing 24 changed files with 605 additions and 195 deletions.
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ jobs:
e2e-tests:
working_directory: /usr/app/
docker:
- image: mcr.microsoft.com/playwright:v1.32.2
- image: mcr.microsoft.com/playwright:v1.35.1
auth:
<<: *docker_auth
steps:
Expand All @@ -200,14 +200,14 @@ jobs:
- run:
name: Install dependencies
command: |
npm install @playwright/test
npm install @playwright/test @wordpress/e2e-test-utils-playwright dotenv
npx playwright install --with-deps
- run:
name: End-to-end tests
command: |
cd /usr/app/planet4-master-theme
export TICKET=$(head -c 11 /tmp/workspace/commit-message)
export BASE_URL="https://www-dev.greenpeace.org/test-$(cat /tmp/workspace/test-instance)/"
export WP_BASE_URL="https://www-dev.greenpeace.org/test-$(cat /tmp/workspace/test-instance)/"
export WP_TEST_USERNAME="p4_test_user"
export WP_TEST_PASSWORD="${WP_TEST_USER}"
npx playwright test
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ assets/build/*
/e2e-results/
/e2e-report/
/playwright/.cache/
/playwright/.auth/
.env
Loading

0 comments on commit 0719e80

Please sign in to comment.