Repository navigation
Conversation
A new CI job runs `mix test --only e2e` in Firefox and WebKit next to `test-integration`, which keeps running them in Chromium with coverage and keeps its name for the required status check. `PW_BROWSER` picks the browser of the tests. The default browser pool has a `browser` option of its own, so it gets the browser as well; setting only the top-level option still launched Chromium.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
The selects render a `<button>` with `<selectedcontent>` for the customizable select (`appearance: base-select`). Firefox does not support it yet, shows the native dropdown and leaves `<selectedcontent>` empty, so axe flagged a button without a name on every page with a select. Browsers without `base-select` leave `select > button` out of the audit; the others still check it.
With ExUnit's default of two tests per core, opening and loading pages in Firefox and WebKit exceeded the 2 second timeout of Playwright now and then (5 tests in one run, all of which passed when run again one at a time).
Running one test per core did not stop the timeouts: WebKit still took longer than the default 2 seconds to open a context or page, or to show an element, in 5 tests of a run, which all passed when run again. Firefox and WebKit get a timeout of 5 seconds instead; Chromium keeps 2 seconds. The job runs the tests with ExUnit's default parallelism again.
In Firefox, about one in four axe audits of a form whose inputs have an `aria-labelledby` with two ids (`InlineCRUD`, `HasMany`) crashed the page, also with one test at a time. Removing those attributes or shortening them to one id stopped the crashes, while a page with only such an input did not crash, so the trigger is not fully known. Chromium and WebKit keep auditing the markup, and the other browser tests still run in Firefox. This replaces leaving `select > button` out of the audit in browsers without the customizable select, which only Firefox needed.
`test-integration` becomes a matrix over Chromium, Firefox and WebKit instead of a second job next to it, so one step runs the browser tests. Only the Chromium entry runs the unit and integration tests and checks the coverage; it keeps the name that the branch protection of `develop` requires.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Runs the browser tests (
mix test --only e2e) in Firefox and WebKit on CI as well, so engine differences show up before users report them in Safari or Firefox.Changes
test-integrationbecomes a matrix overchromium,firefoxandwebkit, so one step runs the browser tests in every engine. Only the Chromium entry runs the unit and integration tests and checks and uploads the coverage; it keeps the name "Integration tests and coverage (backpex)", which the branch protection ofdeveloprequires. The other entries are named "Browser tests in firefox (backpex)" and "Browser tests in webkit (backpex)". Each entry caches its own browser and uploads the traces of failed tests under its name.PW_BROWSER(chromium,firefoxorwebkit) picks the browser inconfig/test.exs. The default browser pool of PhoenixTest.Playwright has abrowseroption of its own, so the config passes the browser to the pool too. With only the top-level option, the tests still ran in Chromium.assert_a11y/1skips the axe audit in Firefox; Chromium and WebKit keep auditing the markup. See "Firefox and axe" below.Firefox and axe
Firefox does not support the customizable select yet. It shows the native dropdown and leaves the
<selectedcontent>of the selects'<button>empty, so axe flagged a button without a name on every page with a select.Firefox also crashed the page ("Page crashed") during axe runs on some forms. Reproduced in Linux Firefox (
mcr.microsoft.com/playwright:v1.65.0-noble) with 40 tests that run axe three times on/admin/users/:id/edit:/admin/tags/new: 0Posts(HasMany),Social linksorEmergency contact(InlineCRUD) kept: 8–10; onlyAge,RoleorAddresses: 0aria-labelledbyremoved, or shortened to one id: 0<label><input aria-labelledby="a b"></label>: 0So inputs with an
aria-labelledbyof two ids (field label and column label) are part of the trigger, but not all of it. A page crash is a Firefox bug; the markup is valid ARIA, so it stays as it is. Narrowing it down to a minimal page for a Mozilla bug report is left open.Notes
develop: theme selector, filter preset,HasManyselect all, InlineCRUD rows). WebKit on Linux, which CI runs, passes them.