Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Wait for tooltips after scrolling stuff into view #19279

Merged

Conversation

mvollmer
Copy link
Member

@mvollmer mvollmer commented Sep 4, 2023

Scrolling might trigger a tooltip (or popup) and thus we should wait for their animation to be over after scrolling.

This fixes the TestStorageUsed-testUsed-popover-medium flake in #19268 for me.

@mvollmer
Copy link
Member Author

mvollmer commented Sep 4, 2023

@mvollmer
Copy link
Member Author

mvollmer commented Sep 4, 2023

Grrr, https://cockpit-logs.us-east-1.linodeobjects.com/pull-19279-20230904-073929-db802297-fedora-38-other/log.html#100

I can't reproduce this locally.

I have pushed some cleanups for the "rtl" code in testlib, but I don't think they fix any bugs related to this pixel failure.

@mvollmer mvollmer added the no-test For doc/workflow changes, or experiments which don't need a full CI run, label Sep 4, 2023
@mvollmer mvollmer force-pushed the test-pixel-popups-after-scrolling branch 3 times, most recently from a4e5335 to e3a49e5 Compare September 4, 2023 13:19
@mvollmer
Copy link
Member Author

mvollmer commented Sep 4, 2023

@mvollmer mvollmer force-pushed the test-pixel-popups-after-scrolling branch from e3a49e5 to e165284 Compare September 4, 2023 13:48
@mvollmer
Copy link
Member Author

mvollmer commented Sep 4, 2023

The metrics on mobile looks questionable.

Yes, it's a flake. The mobile navbar appears in random positions. Some more delay is needed, I guess...

@mvollmer mvollmer force-pushed the test-pixel-popups-after-scrolling branch from e165284 to e70e0aa Compare September 4, 2023 15:01
@mvollmer
Copy link
Member Author

mvollmer commented Sep 4, 2023

The metrics on mobile looks questionable.

Yes, it's a flake. The mobile navbar appears in random positions. Some more delay is needed, I guess...

This is really weird. The change that triggered seems to be the additional frame switching that we now do because of setting the direction of both the shell and the page. This particular test doesn't switch to "rtl", but just switching frames and setting attributes seems to upset some timing somewhere.

Let's just keep the old beahvior of only putting the current frame into rtl, but with cleaner code. Fingers crossed.

@mvollmer mvollmer force-pushed the test-pixel-popups-after-scrolling branch from e70e0aa to 2c99d54 Compare September 4, 2023 16:06
@mvollmer mvollmer marked this pull request as draft September 7, 2023 14:07
@mvollmer mvollmer force-pushed the test-pixel-popups-after-scrolling branch from 2c99d54 to 023ef8a Compare September 7, 2023 14:07
Scrolling might trigger a tooltip (or popup) and thus we should wait
for their animation to be over after scrolling.
@mvollmer mvollmer force-pushed the test-pixel-popups-after-scrolling branch 2 times, most recently from 339f7fc to 70ddfb0 Compare September 8, 2023 08:27
@mvollmer mvollmer force-pushed the test-pixel-popups-after-scrolling branch from 70ddfb0 to 940f90d Compare September 8, 2023 09:51
@mvollmer mvollmer removed the no-test For doc/workflow changes, or experiments which don't need a full CI run, label Sep 8, 2023
@mvollmer mvollmer marked this pull request as ready for review September 8, 2023 10:35
@martinpitt
Copy link
Member

Most failures are unrelated and on my radar, doing a round of retries. At least this seems to fix the dreaded testUsed mobile flake which is almost impossible to get green.

But this one is a genuine pixel test which seems related to shifting the page, so what you are trying to do here: https://cockpit-logs.us-east-1.linodeobjects.com/pull-19279-20230908-103623-bad736fd-fedora-38-other/pixeldiff.html#TestHistoryMetrics-testEvents-metrics-history-expanded-hour-dark)

Copy link
Member

@martinpitt martinpitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed, let's land and handle the rest as follow-ups. Thanks!

@martinpitt martinpitt merged commit e700960 into cockpit-project:main Sep 11, 2023
89 of 92 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants