Skip to content

Commit b286cc3

Browse files
committed
test: adapt to testlib 321
`key_press` was replaced by `input_test`.
1 parent 322088f commit b286cc3

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

test/verify/check-blueprintList

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class TestBlueprintList(composerlib.ComposerCase):
2121

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

3131
# filter "httpd" will show three matched blueprints
3232
b.focus("input[aria-label='Blueprints search input']")
33-
b.key_press("httpd")
33+
b.input_text("httpd")
3434
b.wait_not_present("tr[data-testid='openssh-server']")
3535
b.is_present("tr[data-testid='http-server']")
3636
b.is_present("tr[data-testid='openssh-server-with-hostname']")

test/verify/check-blueprintWizard

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,18 @@ class TestBlueprintWizard(composerlib.ComposerCase):
3939
b.click("button:contains('Next')")
4040

4141
b.set_input_text("div[id='customizations.services.enabled'] input", "example")
42-
b.key_press("Enter")
42+
b.input_text("Enter")
4343
b.set_input_text("div[id='customizations.services.disabled'] input", "example")
44-
b.key_press("Enter")
44+
b.input_text("Enter")
4545
b.click("button:contains('Next')")
4646

4747
# firewall has ports, enabled serxvices and disabled services, and zones
4848
b.set_input_text("div[id='customizations.firewall.ports'] input", "22")
49-
b.key_press("Enter")
49+
b.input_text("Enter")
5050
b.set_input_text("div[id='customizations.firewall.services.enabled'] input", "example")
51-
b.key_press("Enter")
51+
b.input_text("Enter")
5252
b.set_input_text("div[id='customizations.firewall.services.disabled'] input", "example")
53-
b.key_press("Enter")
53+
b.input_text("Enter")
5454
b.click("button:contains('Next')")
5555

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

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

8787
# other has hostname and installation device

0 commit comments

Comments
 (0)