Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Headless testing (resolves #204) #292

Merged
merged 10 commits into from
Mar 20, 2024
Merged

Headless testing (resolves #204) #292

merged 10 commits into from
Mar 20, 2024

Conversation

joeytakeda
Copy link
Contributor

This branch adds some browser-based testing (using Playwright) — at the moment, this is only configured to work in the GitHub CI environment (since I didn't want to have to add unnecessary package.json files to the repository). But it can be run locally using:

npm i @playwright/test @node/types --no-save
npx playwright install --with-deps chromium
npx playwright test --config  ./ci/playwright.config.js // Runs on 8080

At the moment, this just confirms that the tests pass successfully (e.g. the final test div is created with a success complete class). But we could definitely add more tests (including checking popState, results scrolling, or ensuring that different UI components like the autocomplete all work successfully)

@martindholmes martindholmes merged commit 4eeaa92 into dev Mar 20, 2024
2 checks passed
@martindholmes martindholmes deleted the headless_testing branch March 28, 2024 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants