Skip to content

Commit

Permalink
test: Adjust to changed key input testlib API
Browse files Browse the repository at this point in the history
  • Loading branch information
martinpitt committed Jun 11, 2024
1 parent 35de0f4 commit 8d09c64
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ COCKPIT_REPO_FILES = \
$(NULL)

COCKPIT_REPO_URL = https://github.com/cockpit-project/cockpit.git
COCKPIT_REPO_COMMIT = 8769d417e5a4910f1ba0d02cda220fa313b6a2d7 # 317 + 28 commits
COCKPIT_REPO_COMMIT = cbe46eeb89e0ac4b124bdbf96efd99084c7aa321 # 317 + 44 commits

$(COCKPIT_REPO_FILES): $(COCKPIT_REPO_STAMP)
COCKPIT_REPO_TREE = '$(strip $(COCKPIT_REPO_COMMIT))^{tree}'
Expand Down
2 changes: 1 addition & 1 deletion test/check-machines-consoles
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class TestMachinesConsoles(machineslib.VirtualMachinesCase):
# Sometimes, pressing Enter one time doesn't take effect, so loop to press Enter to make sure the console has accepted it
for _ in range(0, 60):
b.focus(f"#{name}-terminal .xterm-accessibility-tree")
b.key_press("\r")
b.key("Enter")
if "Welcome to Alpine Linux" in b.text(f"#{name}-terminal .xterm-accessibility-tree"):
break
time.sleep(1)
Expand Down
2 changes: 1 addition & 1 deletion test/check-machines-create
Original file line number Diff line number Diff line change
Expand Up @@ -1170,7 +1170,7 @@ vnc_password= "{vnc_passwd}"

b.focus("#os-select-group input")
# os_search_name is meant to be used to test substring much
b.key_press(self.os_search_name or self.os_name)
b.input_text(self.os_search_name or self.os_name)

if not present:
try:
Expand Down
4 changes: 2 additions & 2 deletions test/check-machines-disks
Original file line number Diff line number Diff line change
Expand Up @@ -1242,10 +1242,10 @@ class TestMachinesDisks(machineslib.VirtualMachinesCase):
).openDialog()
b.click(f"{prefix}-file .pf-v5-c-select__toggle-button")
b.wait_visible(f"{prefix}-file-autocomplete")
b.key_press(chr(40), use_ord=True)
b.key("ArrowDown")
b.focus(f"{prefix}-file-autocomplete li:first-child")
for _retry in range(0, 10):
b.key_press(chr(40), use_ord=True)
b.key("ArrowDown")
time.sleep(0.5)
b.click(".pf-v5-c-modal-box__close button")
b.wait_not_present(".pf-v5-c-modal-box")
Expand Down

0 comments on commit 8d09c64

Please sign in to comment.