Skip to content

Commit

Permalink
Migrate to Playwright
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoffreyBooth committed Feb 9, 2025
1 parent 63ab929 commit db364bf
Show file tree
Hide file tree
Showing 8 changed files with 130 additions and 877 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/continuous-integration-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*

- name: Build
run: ./build.sh
env:
Expand Down
6 changes: 3 additions & 3 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,11 @@ for version in "${meteor_versions[@]}"; do
done

echo 'Running test...'
cd ../test
if [ ! -d ../test/node_modules ]; then
cd ../test
run_with_suppressed_output 'npm ci'
cd ../example
fi
run_with_suppressed_output 'node ../test/test.js' || true # Don’t exit if tests fail
run_with_suppressed_output 'node --run test' || true # Don’t exit if tests fail
elapsed="$((($SECONDS / 60) % 60)) min $(($SECONDS % 60)) sec"
if [ $exit_code -ne 0 ]; then
# For 14.21.4 <= $node_version < 18.0.0, we need to use the Meteor fork of the Node Docker image; else, we use the regular official Node Docker image
Expand All @@ -96,6 +95,7 @@ for version in "${meteor_versions[@]}"; do
fi

if [ "${SKIP_CLEANUP:-}" != 1 ]; then
cd ../example
run_with_suppressed_output 'docker compose --file test.compose.yml down'
run_with_suppressed_output 'docker rmi example-app:latest'

Expand Down
6 changes: 6 additions & 0 deletions test/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
node_modules/
screenshot.png

# Playwright
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
Loading

0 comments on commit db364bf

Please sign in to comment.