Skip to content

Commit e49fa29

Browse files
committed
test: Use fake clicks for the Run Image "Local" button with Firefox
The "Local button click goes to Nirvana in CI" happens with Firefox as well. So upgrade the `chromium_fake_mouse` to "specify coordinates" which activates fake clicks on all browsers. This is being debugged in #2175, until then avoid the flakes.
1 parent 72b70b0 commit e49fa29

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

test/check-application

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1749,9 +1749,8 @@ PodName={podName}
17491749
# No local results found
17501750
b.set_input_text("#create-image-image input", "notfound")
17511751

1752-
b.chromium_fake_mouse = True # FIXME; BiDi clicks flake in CI
1753-
1754-
b.click('button.pf-v6-c-toggle-group__button:contains("Local")')
1752+
# FIXME; BiDi clicks flake in CI (both Chromium and Firefox)
1753+
b.mouse('button.pf-v6-c-toggle-group__button:contains("Local")', "click", y=1)
17551754
b.wait_text(".pf-v6-c-menu__item[disabled]", "No images found")
17561755
b.wait_visible("button.pf-v6-c-toggle-group__button.pf-m-selected:contains('Local')")
17571756

@@ -1785,8 +1784,6 @@ PodName={podName}
17851784
self.assertFalse(b.is_present(".pf-v6-c-popover"))
17861785
b.wait_val("#create-image-image input", "my-busybox")
17871786

1788-
b.chromium_fake_mouse = False
1789-
17901787
# Select image
17911788
b.click('button.pf-v6-c-menu__item:contains("localhost:5000/my-busybox")')
17921789

@@ -1815,15 +1812,14 @@ PodName={podName}
18151812
b.set_input_text("#create-image-image input", "no-container")
18161813
b.wait_text(".pf-v6-c-menu__item[disabled]", "No images found")
18171814
# Search with full url
1818-
b.chromium_fake_mouse = True # FIXME; BiDi clicks flake in CI
18191815
b.set_input_text("#create-image-image input", "localhost:5000/my-busybox")
1820-
b.click('button.pf-v6-c-toggle-group__button:contains("Local")')
1816+
# FIXME; BiDi clicks flake in CI (both Chromium and Firefox)
1817+
b.mouse('button.pf-v6-c-toggle-group__button:contains("Local")', "click", y=1)
18211818
b.wait_visible("button.pf-v6-c-toggle-group__button.pf-m-selected:contains('Local')")
18221819
b.wait_not_in_text(".pf-v6-c-menu__content", "Local images")
18231820

18241821
# Select image
18251822
b.click('button.pf-v6-c-menu__item:contains("localhost:5000/my-busybox")')
1826-
b.chromium_fake_mouse = False
18271823

18281824
# Pull the latest image
18291825
b.set_checked("#run-image-dialog-pull-latest-image", val=True)

0 commit comments

Comments
 (0)