Skip to content

Commit

Permalink
test: adjust tests for the pkg/lib file-autocomplete changes
Browse files Browse the repository at this point in the history
The component now uses a non-deprecated select component which has a
different css selector.
  • Loading branch information
jelly authored and martinpitt committed Nov 11, 2024
1 parent aecee8d commit 8722224
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions test/check-application
Original file line number Diff line number Diff line change
Expand Up @@ -2025,7 +2025,7 @@ class TestApplication(testlib.MachineCase):
else:
b.wait_not_present('#run-image-dialog-volume-0-selinux')

b.set_file_autocomplete_val("#run-image-dialog-volume-0 .pf-v5-c-select", rodir)
b.set_file_autocomplete_val("#run-image-dialog-volume-0", rodir)
b.set_input_text('#run-image-dialog-volume-0-container-path', '/tmp/ro')
ro_label = m.execute(f"ls -dZ {rodir}").split(" ")[0]
b.click('.volume-form .btn-add')
Expand All @@ -2036,15 +2036,15 @@ class TestApplication(testlib.MachineCase):

if auth:
b.assert_pixels(".pf-v5-c-modal-box", "integration",
ignore=["#run-image-dialog-volume-0 .pf-v5-c-select__toggle-typeahead"],
ignore=["#run-image-dialog-volume-0 .pf-v5-c-text-input-group__text-input"],
skip_layouts=["rtl"])

if self.has_selinux:
b.set_val('#run-image-dialog-volume-2-selinux', "Z")
else:
b.wait_not_present('#run-image-dialog-volume-2-selinux')

b.set_file_autocomplete_val("#run-image-dialog-volume-2 .pf-v5-c-select", rwdir)
b.set_file_autocomplete_val("#run-image-dialog-volume-2", rwdir)
b.set_input_text('#run-image-dialog-volume-2-container-path', '/tmp/rw')
rw_label = m.execute(f"ls -dZ {rwdir}").split(" ")[0]

Expand Down Expand Up @@ -3022,11 +3022,11 @@ class TestApplication(testlib.MachineCase):
else:
b.wait_not_present('#create-pod-dialog-volume-0-selinux')

b.set_file_autocomplete_val("#create-pod-dialog-volume-0 .pf-v5-c-select", rodir)
b.set_file_autocomplete_val("#create-pod-dialog-volume-0", rodir)
b.set_input_text('#create-pod-dialog-volume-0-container-path', '/tmp/ro')
b.click('.volume-form .btn-add')

b.set_file_autocomplete_val("#create-pod-dialog-volume-1 .pf-v5-c-select", rwdir)
b.set_file_autocomplete_val("#create-pod-dialog-volume-1", rwdir)
b.set_input_text('#create-pod-dialog-volume-1-container-path', '/tmp/rw')

b.click("#create-pod-create-btn")
Expand Down

0 comments on commit 8722224

Please sign in to comment.