Repository navigation
Conversation
Co-Authored-By: Claude <noreply@anthropic.com>
The spec runs without test isolation, so the page-scrolled scenarios' 3000px body and window scroll leaked into every later scenario. afterEach now clears both. Re-recorded on the popover-plugin engine (3a7f57c) with the reset: only scroll-ancestor|self changed, translate y 36 -> 40, the value it measures on a clean page.
…nished afterOpen can fire a frame before the slide ends, so the 'before' position was read up to a few pixels short and CI saw 57.8 instead of 60. Wait for computed opacity 1 first, as the positioning baseline does.
This was referenced Nov 24, 2026
PR Test Results — ✅ all checks passed
Tested commit: |
The spec runs without test isolation and cy.visit only changes the hash, so the reduced-motion stub leaked into the class-timing test, which then ran with 0 ms durations instead of 300. Restore it in afterEach and assert the duration the class-timing test relies on.
- The dropboxWrapper 'self' transform test first requires a translate3d to have been written, so two empty strings no longer pass. - Build checks: maxGzip may not exceed baselineGzip; a budgeted file missing from dist/ fails with the build hint; the header explains the zero-headroom budgets and how to raise one. - The positioning baseline refuses RECORD_BASELINE unless the popover-plugin engine is loaded, so the fixture cannot be re-recorded on the replacement.
Positioning baseline (fixture re-recorded on the popover-plugin engine; the 126 existing entries are unchanged): - An `<id>|after-close` snapshot for every scenario that opens, checked like the never-opened state (host classes, pop-comp-* container classes, styles). - custom-wrapper scenarios: the dropbox rendered into an offset, positioned, scrollable box given as a `dropboxWrapper` selector. - tooltip-plugin scenarios: the docs site and the README's optional setup load tooltip.min.js after the bundle, and popover-plugin then places the dropbox with tooltip-plugin's older PopperComponent. These leave it loaded, at a fractional anchor where the two engines differ. A page reload is forced whenever the open page does not match the scenario, because visiting the URL already open does not reload it. - A scenario failure, in record mode too, leaves the fixture alone and writes the actual set to ci-results/ instead. The JSON now ends in a newline. Lifecycle: characterize keepAlwaysOpen and popup instances, which open and close without the positioner. Probe: an inline transform that is not `translate3d(...)` throws instead of reading as [0, 0]. Size check: a budgeted file must measure exactly its maxGzip, every shipped minified file needs a budget, and dist/ older than src/ fails instead of measuring the stale committed bundle.
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.
Issue number: none
Part 1 of 3 stacked PRs that replace
popover-pluginandtooltip-plugin, targeting the major branchvs-major-2.0.x. This one only adds tests and build checks; the next two change the code against them. Replaces #499.What is the current behavior?
Virtual Select bundles
popover-plugin1.0.13 to place and animate the dropbox, and documentstooltip-plugin1.0.16 as the optional tooltip. Nothing pins the dropbox's placement, classes, computed styles or open/close events, so replacing either plugin could change them unnoticed.What is the new behavior?
npm run test:buildchecks the exactdist/file set, thatdist/is newer thansrc/, and that every shipped minified file has a gzip budget it measures exactly (scripts/build-checks/size-budgets.json).cypress/e2e/dropbox-positioning-baseline.cy.ts: 136 placement scenarios (every position × viewport edges ×dropboxWrapperself/body, a wider dropbox, RTL, scrolled page, scrolling ancestor, a custom positioned wrapper, popup layout). Each compares placement, side,pop-comp-*classes and computed styles againstcypress/fixtures/dropbox-baseline.json, recorded on this code, within 1 px, and then the state the dropbox is left in after closing.tooltip-pluginloaded. A page that loads it after the bundle (the docs site, the README's optional setup) has its dropbox placed by tooltip-plugin's older engine, so those are recorded on that engine, at a fractional anchor where the two differ.cypress/e2e/dropbox-lifecycle.cy.tspins today's open/close events for every way of closing, including the duplicateafterClose, and forkeepAlwaysOpenand popup instances.Does this introduce a breaking change?
Other information
tooltip-pluginleft loaded in every scenario, all 125 of the other scenarios also pass within 1 px, so the fixture holds for both engines.