Repository navigation
test: load Web Awesome's library where the select tests offer wa-select - #5573
Merged
Merged
Conversation
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
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.
Three
--run-maintests intests/browser/widgets/test_lifecycle_and_controls.pyhave failed on main since #5393. They build awa-selecton a page holding an lf-diff and relied on lf-diff importing the whole/vendor/webawesome.esm.js. #5393 moved lf-diff towebawesome-chrome, which defines the input and copy button but no select, and kept the full library for a package's own module, asmodule-authoring.mdsays. Sowa-selectwas never defined: the combobox locator timed out, and the typography test read a nullshadowRoot.#5393's intent is right and the interface is unchanged, so the tests change:
library_selectand the typography test import/vendor/webawesome.esm.jsbefore 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) andtest_webawesome_chrome_loads_without_optional_controls, which shares thelibrary_selectfixture.Closes #5488 — automated triage