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

Some test fixes #1834

Merged
merged 4 commits into from
Aug 21, 2024
Merged

Some test fixes #1834

merged 4 commits into from
Aug 21, 2024

Conversation

martinpitt
Copy link
Member

Split out from #1832.

I'll trigger an extra /firefox run.

martinpitt and others added 4 commits August 21, 2024 11:22
Wait for the registry search to show the expected value *before* doing
the pixel test.

Also, the dialog's filter is already set to "Local", that was done just
a few lines above. Drop the redundant click.
That dialog switches between the "All" and "Local" filter of images.
The busybox image is shown in both views; however, it gets re-rendered
on switch, so clicking on it is a race condition -- without waiting the
click often goes to the *old* "All" result.

We can't directly wait on that transition. So switch to a different
registry filter first, wait for the "No images found", and then switch
to "Local", so that our `wait_visible()` can take over.
These were introduced in commit a47c186 without justification,
and it's not clear what they were meant to do. Depending on the timing
they change/mess up the value in the file choosers, leading to random test
failures.
Enabling the disabled element only works when clicking on the [ - ] or
[ + ] buttons, not the number itself. With Firefox the test will soon
click into the center of the element, which is the number. Make the
selector more specific to ensure it goes to the [ - ] button.

Also circumvent the "element must be not enabled" restriction by
directly using `Browser.mouse()`. This has always been a race condition,
as we expect the number input to be disabled by default.
@martinpitt
Copy link
Member Author

martinpitt commented Aug 21, 2024

Ah, this run found a similar bug as the testCreateContainerInPodUser() failure, and locally I then found yet another one. Also, the "create button eternally disabled in pod dialog" fails a lot here. @jelly is investigating that right now, for this PR I'll just lean on the retry button for these for one or two rounds, and otherwise ignore them.

@martinpitt martinpitt requested a review from jelly August 21, 2024 11:07
@martinpitt
Copy link
Member Author

Hm, we've had this failure twice now:

Error: copying system image from manifest list: writing blob: adding layer with blob "sha256:d2ecaa8d83f5e0ee1a77f22f3ade6f096f71b58290b47ce0fb4e892aee694d44"/""/"sha256:3d0f0bc504b3bf6b24a765edb1764270f1c6d94b1760aa030698316e3441ec42": unpacking failed (error: exit status 1; output: write /usr/lib64/libatspi.so.0.0.1: no space left on device)

But well, all the other TF tests passed, so good enough.

@martinpitt martinpitt merged commit d148431 into cockpit-project:main Aug 21, 2024
30 of 31 checks passed
@martinpitt martinpitt deleted the test-fixes branch August 21, 2024 14:39
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