Skip to content

test: load Web Awesome's library where the select tests offer wa-select - #5573

Merged
max-sixty merged 1 commit into
mainfrom
fix/issue-5488
Nov 5, 2026
Merged

max-sixty merged 1 commit into
mainfrom
fix/issue-5488

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

Three --run-main tests in tests/browser/widgets/test_lifecycle_and_controls.py have failed on main since #5393. They build a wa-select on a page holding an lf-diff and relied on lf-diff importing the whole /vendor/webawesome.esm.js. #5393 moved lf-diff to webawesome-chrome, which defines the input and copy button but no select, and kept the full library for a package's own module, as module-authoring.md says. So wa-select was never defined: the combobox locator timed out, and the typography test read a null shadowRoot.

#5393's intent is right and the interface is unchanged, so the tests change: library_select and the typography test import /vendor/webawesome.esm.js before offering the controls, as a package's module would. No product code changes.

uv run pytest --run-main tests/browser/widgets/test_lifecycle_and_controls.py -k "library_select or webawesome" reproduced the typography failure before the change (TypeError: Cannot read properties of null (reading 'querySelector')), and after it all five selected tests pass: the three named in #5488 (the reopen test under both motion settings) and test_webawesome_chrome_loads_without_optional_controls, which shares the library_select fixture.

Closes #5488 — automated triage

The select and typography tests built `wa-select` on a page with an lf-diff and
relied on lf-diff importing the whole `webawesome.esm.js`. #5393 moved lf-diff
to `webawesome-chrome`, which defines no select, and left the full library for
a package's own module, so `wa-select` stayed undefined and the tests timed out
or read a null shadow root. Each test now imports the library itself, as a
package's module would. No product behavior changes.

Closes #5488
@max-sixty
max-sixty merged commit 990cc5f into main Nov 5, 2026
6 checks passed
@max-sixty
max-sixty deleted the fix/issue-5488 branch November 5, 2026 23:32
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.

Three Web Awesome select tests fail on main since #5393 added the radio-group view chooser

2 participants