Add Frontend Tests (#1571)
* Add TypeScript test workflow * Update follow-redirects and katex versions * Add Python setup and Poetry installation for backend * Update Poetry version and setup Python in workflows * Add Poetry installation step to GitHub Actions workflow * Add Playwright report artifact upload and improve test script * Update Playwright test configuration and add global teardown script * Update path for playwright-report directory * Update timeout value in playwright.config.ts * Update page URLs in end-to-end tests * Update GitHub Actions workflow and Playwright configuration * Update TypeScript test workflow * Add pattern and merge-multiple options to artifact download * Update TypeScript test workflow to install Poetry * Add cache steps for Playwright and Poetry * Update PLAYWRIGHT_BROWSERS_PATH in TypeScript test workflow * Add 'stuff/' to .gitignore * Remove caching of Poetry virtualenv * Update frontend tests to use Playwright for UI testing * Add global teardown for removing temp database * Add cache-hit condition to setup-node and setup-python steps * Add new file to .gitignore and update ignored files * Update playwright cache key in TypeScript test workflow * Update path for blob-report in GitHub workflow * Update path for playwright cache * Update dependency installation in workflows * Update baseURL in playwright.config.ts * Update baseURL in playwright.config.ts * Refactor test timeouts * Remove playwright-report index.html file * Add npm run start command to playwright.config.ts * Update npm start command in playwright.config.ts * Update Playwright browser caching and installation * Update playwright cache path * Update playwright cache path * Update actions/cache version to v4 * Update Playwright cache key to use package-lock.json * Update Playwright cache and install dependencies * Fix typo in Playwright installation command * Fix npm ci command in TypeScript test workflow * Update TypeScript test workflow
This commit is contained in:
parent
a3b7001264
commit
f19c449f15
26 changed files with 386 additions and 172 deletions
4
Makefile
4
Makefile
|
|
@ -47,9 +47,9 @@ run_frontend:
|
|||
|
||||
tests_frontend:
|
||||
ifeq ($(UI), true)
|
||||
cd src/frontend && ./run-tests.sh --ui
|
||||
cd src/frontend && npx playwright test --ui --project=chromium
|
||||
else
|
||||
cd src/frontend && ./run-tests.sh
|
||||
cd src/frontend && npx playwright test --project=chromium
|
||||
endif
|
||||
|
||||
run_cli:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue