Skip to content

Commit

Permalink
test: adapt to testlib 321
Browse files Browse the repository at this point in the history
`key_press` was replaced by `input_test`.
  • Loading branch information
croissanne committed Aug 13, 2024
1 parent 322088f commit b286cc3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions test/verify/check-blueprintList
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class TestBlueprintList(composerlib.ComposerCase):

# filter "openssh-server" blueprint
b.focus("input[aria-label='Blueprints search input']")
b.key_press("openssh")
b.input_text("openssh")
b.wait_visible("tr[data-testid='openssh-server']")
b.wait_not_present("tr[data-testid='httpd-server']")
# clear filter
Expand All @@ -30,7 +30,7 @@ class TestBlueprintList(composerlib.ComposerCase):

# filter "httpd" will show three matched blueprints
b.focus("input[aria-label='Blueprints search input']")
b.key_press("httpd")
b.input_text("httpd")
b.wait_not_present("tr[data-testid='openssh-server']")
b.is_present("tr[data-testid='http-server']")
b.is_present("tr[data-testid='openssh-server-with-hostname']")
Expand Down
14 changes: 7 additions & 7 deletions test/verify/check-blueprintWizard
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,18 @@ class TestBlueprintWizard(composerlib.ComposerCase):
b.click("button:contains('Next')")

b.set_input_text("div[id='customizations.services.enabled'] input", "example")
b.key_press("Enter")
b.input_text("Enter")
b.set_input_text("div[id='customizations.services.disabled'] input", "example")
b.key_press("Enter")
b.input_text("Enter")
b.click("button:contains('Next')")

# firewall has ports, enabled serxvices and disabled services, and zones
b.set_input_text("div[id='customizations.firewall.ports'] input", "22")
b.key_press("Enter")
b.input_text("Enter")
b.set_input_text("div[id='customizations.firewall.services.enabled'] input", "example")
b.key_press("Enter")
b.input_text("Enter")
b.set_input_text("div[id='customizations.firewall.services.disabled'] input", "example")
b.key_press("Enter")
b.input_text("Enter")
b.click("button:contains('Next')")

b.click("button:contains('Add user')")
Expand All @@ -75,13 +75,13 @@ class TestBlueprintWizard(composerlib.ComposerCase):
# timezone has timezone and ntp servers
b.set_input_text("input[id='customizations.timezone.timezone']", "Europe/Berlin")
b.set_input_text("div[id='customizations.timezone.ntpservers'] input", "test")
b.key_press("Enter")
b.input_text("Enter")
b.click("button:contains('Next')")

# locale has keyboard and language
b.set_input_text("input[id='customizations.locale.keyboard']", "testKeyboard")
b.set_input_text("div[id='customizations.locale.languages'] input", "testLanguage")
b.key_press("Enter")
b.input_text("Enter")
b.click("button:contains('Next')")

# other has hostname and installation device
Expand Down

0 comments on commit b286cc3

Please sign in to comment.