Skip to content

Fix failing Firefox test#838

Merged
dhh merged 1 commit intohotwired:mainfrom
seanpdoyle:fix-flaky-firefox-test
Dec 31, 2022
Merged

Fix failing Firefox test#838
dhh merged 1 commit intohotwired:mainfrom
seanpdoyle:fix-flaky-firefox-test

Conversation

@seanpdoyle
Copy link
Copy Markdown
Contributor

@seanpdoyle seanpdoyle commented Dec 31, 2022

Some tests that visit the navigation.html fixture exercise scroll
behavior by visiting links and other content that is below the fold. The
style="height: 200vh" value declared on the page's <section> element
is arbitrary, but double the screen size to force content below the
fold.

Unluckily, it cuts off right at the beginning of the new <iframe>
elements in Firefox browsers, which obscures the <a> element and
prevents link clicks.

To resolve that issue, this commit removes the [style] attribute,
since the content is long enough to be scrollable.

@seanpdoyle seanpdoyle changed the title Fix flaky Firefox tests Fix failing Firefox test Dec 31, 2022
Some tests that visit the `navigation.html` fixture exercise scroll
behavior by visiting links and other content that is below the fold. The
`style="height: 200vh"` value declared on the page's `<section>` element
is arbitrary, but double the screen size to force content below the
fold.

Unluckily, it cuts off _right_ at the beginning of the new `<iframe>`
elements in Firefox browsers, which obscures the `<a>` element and
prevents link clicks.

To resolve that issue, this commit removes the `[style]` attribute,
since the content is long enough to be scrollable.
@seanpdoyle seanpdoyle force-pushed the fix-flaky-firefox-test branch 2 times, most recently from 0bb4084 to cea1621 Compare December 31, 2022 22:54
@dhh dhh merged commit ee56716 into hotwired:main Dec 31, 2022
@seanpdoyle seanpdoyle deleted the fix-flaky-firefox-test branch December 31, 2022 23:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants