Skip to content
Open
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
6 changes: 3 additions & 3 deletions .circleci/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,13 +189,13 @@ Tests run in this sequence (see `commands.run_tests` around [config.yml:153-170]

### Test Structure

**End-to-end tests** ([_tests/e2e-test.mjs](../_tests/e2e-test.mjs)):
**End-to-end tests** ([tests/e2e-test.mjs](../tests/e2e-test.mjs)):
1. Creates new publication via `quire new`
2. Builds HTML via `quire build`
3. Generates PDF via `quire pdf`
4. Generates EPUB via `quire epub`

**Browser tests** ([_tests/publication.spec.js](../_tests/publication.spec.js)):
**Browser tests** ([tests/publication.spec.js](../tests/publication.spec.js)):
- Run twice per platform: once at root path `/` and once with pathname `/quire-test-project/`
- Validate page titles, image URLs, IIIF canvas-panel dimensions
- Use sitemap for page discovery
Expand Down Expand Up @@ -342,7 +342,7 @@ circleci config process .circleci/config.yml # Expand orbs/anchors
```bash
npx playwright test --headed # See browser
npx playwright test --debug # Step through
npx playwright test _tests/publication.spec.js # Single file
npx playwright test tests/publication.spec.js # Single file
```

**Failed test locally:**
Expand Down
2 changes: 1 addition & 1 deletion .circleci/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ commands:
- reports
- test-publication-pathname/_site
- test-publication/_site
- _tests
- tests

- store_test_results:
path: reports
Expand Down
2 changes: 1 addition & 1 deletion DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ mise pw:debug # Interactive debug mode

**Test specific file:**
```bash
npx playwright test _tests/publication.spec.js
npx playwright test tests/publication.spec.js
```

**View test report:**
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"environmentVariables": {},
"failFast": true,
"files": [
"./_tests/*-test.mjs"
"./tests/*-test.mjs"
],
"workerThreads": false
},
Expand Down
2 changes: 1 addition & 1 deletion playwright.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const pathnameTesting = !!process.env.QUIRE_TEST_PUB_PATHNAME
*/
export default defineConfig({
expect: { toHaveScreenshot: { maxDiffPixels: 100 } },
testDir: './_tests',
testDir: './tests',
/* Run tests in files in parallel */
fullyParallel: true,
/* Fail the build on CI if you accidentally left test.only in the source code. */
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.