diff --git a/tests/Browser/TimepickerTest.php b/tests/Browser/TimepickerTest.php index a84ef52c..02c75a74 100644 --- a/tests/Browser/TimepickerTest.php +++ b/tests/Browser/TimepickerTest.php @@ -408,6 +408,10 @@ it('keeps the dial and the boxes their fixed pixel size at a 20px root font size $page = timeProbe()->click('#meeting'); + // After the dialog's entry, not during it: mid-scale the dial measures 0.95 of its own size, + // which would make the resting width this test compares against a number the CSS never sets. + $page->assertScript("document.querySelector('#meeting-dialog').getAnimations({ subtree: true }).length === 0"); + $restingWidth = (int) $page->script($dialWidth); $restingFont = $page->script($font);