-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new test for click command and update API tests
- Loading branch information
1 parent
c837bfe
commit 05a2a39
Showing
5 changed files
with
15 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
instructions = [ | ||
"""await page.click(1, 2);""", | ||
"""await pages[0].mouse.click(1, 2);""", | ||
] |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
instructions = [ | ||
"""await page.click(1, 2);""", | ||
"""await pages[0].mouse.click(1, 2);""", | ||
] |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
instructions = [ | ||
"""await page.click(1, 2);""", | ||
"""await pages[0].mouse.click(1, 2);""", | ||
] |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// Ensure that `click` works for both coordinates and selector. | ||
go-to: "file://" + |CURRENT_DIR| + "/" + |DOC_PATH| + "/elements.html" | ||
store-position: ("#js-call", {"x": x, "y": y}) | ||
click: (|x|, |y|) | ||
wait-for-css-false: ("#js-call", {"margin-top": "0px"}) | ||
click: "#the-input" | ||
assert: "#the-input" |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
=> Starting doc-ui tests... | ||
|
||
click... OK | ||
|
||
<= doc-ui tests done: 1 succeeded, 0 failed |