Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test-javascript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ jobs:
working-directory: javascript
- name: Acceptance tests
working-directory: javascript
run: npm run acceptance
run: npx playwright test
9 changes: 9 additions & 0 deletions javascript/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
services:
playwright:
image: mcr.microsoft.com/playwright:v1.56.1-jammy
working_dir: /work
volumes:
- .:/work
environment:
- CI=true
command: sh -c "npm ci && npm run build && npx playwright test"
20 changes: 0 additions & 20 deletions javascript/package-lock.json

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

3 changes: 2 additions & 1 deletion javascript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"prepublishOnly": "npm run build",
"fix": "eslint --max-warnings 0 --fix src test && prettier --write src test",
"lint": "eslint --max-warnings 0 src test && prettier --check src test",
"acceptance": "playwright test"
"acceptance:local": "docker compose run --rm playwright",
"acceptance:update": "docker compose run --rm playwright npx playwright test --update-snapshots"
},
"peerDependencies": {
"@cucumber/messages": ">=18"
Expand Down
2 changes: 1 addition & 1 deletion javascript/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export default defineConfig({
use: {
headless: true,
baseURL: 'http://localhost:3000',
colorScheme: 'light'
},
projects: [
{
Expand All @@ -26,7 +27,6 @@ export default defineConfig({
expect: {
toHaveScreenshot: {
stylePath: './test/screenshot.css',
maxDiffPixelRatio: 0.05,
},
},
})
Binary file modified javascript/test/__screenshots__/ambiguous.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified javascript/test/__screenshots__/attachments.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified javascript/test/__screenshots__/backgrounds.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified javascript/test/__screenshots__/cdata.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified javascript/test/__screenshots__/data-tables.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified javascript/test/__screenshots__/doc-strings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified javascript/test/__screenshots__/empty.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified javascript/test/__screenshots__/examples-tables-attachment.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified javascript/test/__screenshots__/examples-tables-undefined.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified javascript/test/__screenshots__/examples-tables.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified javascript/test/__screenshots__/global-hooks-afterall-error.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified javascript/test/__screenshots__/global-hooks-attachments.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified javascript/test/__screenshots__/global-hooks.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified javascript/test/__screenshots__/hooks-attachment.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified javascript/test/__screenshots__/hooks-conditional.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified javascript/test/__screenshots__/hooks-named.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified javascript/test/__screenshots__/hooks-undefined.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified javascript/test/__screenshots__/hooks.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified javascript/test/__screenshots__/markdown.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified javascript/test/__screenshots__/minimal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified javascript/test/__screenshots__/multiple-features.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified javascript/test/__screenshots__/parameter-types.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified javascript/test/__screenshots__/pending.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified javascript/test/__screenshots__/regular-expression.png
Binary file modified javascript/test/__screenshots__/retry-ambiguous.png
Binary file modified javascript/test/__screenshots__/retry-pending.png
Binary file modified javascript/test/__screenshots__/retry-undefined.png
Binary file modified javascript/test/__screenshots__/retry.png
Binary file modified javascript/test/__screenshots__/rules-backgrounds.png
Binary file modified javascript/test/__screenshots__/rules.png
Binary file modified javascript/test/__screenshots__/skipped.png
Binary file modified javascript/test/__screenshots__/stack-traces.png
Binary file modified javascript/test/__screenshots__/test-run-exception.png
Binary file modified javascript/test/__screenshots__/undefined.png
Binary file modified javascript/test/__screenshots__/unknown-parameter-type.png
Binary file modified javascript/test/__screenshots__/unused-steps.png