Skip to content

Use archive-relative URLs for EPUB test subjects - #476

Open
Sinkleberg wants to merge 1 commit into
daisy:masterfrom
Sinkleberg:codex/epub-report-subject-urls
Open

Sinkleberg wants to merge 1 commit into
daisy:masterfrom
Sinkleberg:codex/epub-report-subject-urls

Conversation

@Sinkleberg

Copy link
Copy Markdown

Ace now reports each file relative to the EPUB root, so the EPUB and axe checks point to the same entry. This also keeps two chapters with the same filename distinct and handles spaces, #, and % in filenames.

I checked the nine reported URLs in a sample EPUB and ran 11 Jest suites with headless Chromium on Windows. All 181 tests passed.

Closes #463. Developed with Codex.

Build subject URLs from the entry path within the EPUB so the EPUB and axe checks identify the same file. Encode each path segment so spaces, percent signs and hash signs still resolve to the correct entry.

Closes daisy#463

This branch has not been deployed

No deployments
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.

Inconsistent test subject URLs in JSON report

1 participant