-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Drop Browser.key_press(), replace with Browser.input_text()
`input_text()` is now solely for plain characters, no control ones or modifiers. That keeps the implementation very simple and browser independent. Fixes #20344
- Loading branch information
1 parent
e62b39e
commit cbe46ee
Showing
8 changed files
with
44 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -762,7 +762,7 @@ ipa-advise enable-admins-sudo | sh -ex | |
b.open("/system/terminal") | ||
b.enter_page("/system/terminal") | ||
b.wait_in_text(".terminal .xterm-accessibility-tree", "alice") | ||
b.key_press("klist") | ||
b.input_text("klist") | ||
b.key("Enter") | ||
b.wait_in_text(".terminal .xterm-accessibility-tree", "Ticket cache: FILE:/run/user") | ||
b.wait_in_text(".terminal .xterm-accessibility-tree", "Default principal: [email protected]") | ||
|
@@ -831,7 +831,7 @@ ipa-advise enable-admins-sudo | sh -ex | |
b.open("/@x0.cockpit.lan/system/terminal") | ||
b.enter_page("/system/terminal", host="x0.cockpit.lan") | ||
b.wait_in_text(".terminal .xterm-accessibility-tree", "alice") | ||
b.key_press(f"{ccache_env} sudo whoami") | ||
b.input_text(f"{ccache_env} sudo whoami") | ||
b.key("Enter") | ||
b.wait_in_text(".terminal .xterm-accessibility-tree", "root") | ||
|
||
|
@@ -1074,7 +1074,7 @@ class TestKerberos(testlib.MachineCase): | |
b.enter_page("/system/terminal") | ||
# wait for prompt | ||
b.wait_in_text(".terminal .xterm-accessibility-tree", "admin") | ||
b.key_press("klist") | ||
b.input_text("klist") | ||
b.key("Enter") | ||
b.wait_in_text(".terminal .xterm-accessibility-tree", "Ticket cache") | ||
b.wait_in_text(".terminal .xterm-accessibility-tree", "Default principal: [email protected]") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters