Repository navigation
Conversation
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.
Bug
Four checks in the headless UI test (
Production/RAMMIT-Stable/Tests/TestUi.mjs) waited a fixed number of milliseconds before looking at the page. On a busy PC they could fail before the app caught up:Light theme loads,settings saved,selection persisted by usernameandsettings fold away.Change
WaitFor(...), the existing helper that retries until the condition holds (default 5000 ms).Light uses its own stylesheetalso polls now. It ran right after theLight theme loadscheck, which lost its fixed 900 ms wait, so it could have read the stylesheet too early.TestUiWaits.pyis a regression test. It fails if any of these checks lacksWaitFor(or has a fixedWait(between it and the previous check.Testing
python Production/RAMMIT-Stable/Tests/TestUiWaits.py -v: passes on the fix.TestUi.mjs: fails on all five checks.python -m pyflakes Production/RAMMIT-Stable/Tests/TestUiWaits.py: clean.Regression test: fails on base twice (/does not poll with WaitFor|still has a fixed Wait()/), passes on fix twice (
python Production/RAMMIT-Stable/Tests/TestUiWaits.py)Fixes #1