Repository navigation
test(browser): wait for menu animations before measuring Filter level… - #979
Open
harshita-jangra wants to merge 1 commit into
Open
harshita-jangra wants to merge 1 commit into
harshita-jangra wants to merge 1 commit into
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.
Summary
Fixes #961
Wait for the Filter level menu animations to finish before measuring its position. This prevents the opening animation from causing timing-dependent position shifts while preserving the existing two-frame layout wait and strict
< 2px assertion.Whole-change check
Code —
tests/browser/levels.spec.jssettledhelper waits for two animation frames and then waits for all animations on the menu and its descendants to finish before the position is measured.pageandmenuobjects and the Web Animations API'sgetAnimations()andfinishedproperties. No new helper or production code was needed.< 2px assertion already express the intended behavior. Only the timing of the measurement needed to change.Checklist
Test plan
npm run lint: passed.npm run types: passed.npm run growth: passed.git diff --check: passed.Note: The earlier full Node test run had two unrelated baseline failures:
tests/audit-signatures.test.js(ENOENT/count) andtests/ci.test.js(missingpackages/pivotkit-report/package.jsonon the base branch).