-
Notifications
You must be signed in to change notification settings - Fork 424
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test to ensure that page refresh doesn't affect url bar focus (#2749)
Task/Issue URL: https://app.asana.com/0/0/1207004088983506/f Tech Design URL: CC: Description: Add test to ensure URL bar doesn't lose focus on site refresh.
- Loading branch information
Showing
2 changed files
with
69 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# search_bar.yaml | ||
appId: com.duckduckgo.mobile.ios | ||
tags: | ||
- release | ||
|
||
--- | ||
|
||
# Set up | ||
- clearState | ||
- launchApp | ||
- runFlow: | ||
when: | ||
visible: | ||
text: "Let’s Do It!" | ||
index: 0 | ||
file: ../shared/onboarding.yaml | ||
|
||
# Load Site | ||
- assertVisible: | ||
id: "searchEntry" | ||
- tapOn: | ||
id: "searchEntry" | ||
- inputText: "https://privacy-test-pages.site/features/auto-refresh.html" | ||
- pressKey: Enter | ||
|
||
# Manage onboarding | ||
- runFlow: | ||
when: | ||
visible: | ||
text: "Got It" | ||
index: 0 | ||
file: ../shared/onboarding_browsing.yaml | ||
|
||
- assertVisible: "Website that refreshes every 3 seconds." | ||
|
||
# Start typing | ||
- tapOn: | ||
id: "searchEntry" | ||
- inputText: "abcd" | ||
- assertVisible: "abcd" | ||
|
||
# Delay execution and let page refresh | ||
- runFlow: | ||
file: ../shared/delay.yaml | ||
|
||
# More text to append | ||
- inputText: "efgh" | ||
- assertVisible: "abcdefgh" | ||
|
||
# Delay execution and let page refresh | ||
- runFlow: | ||
file: ../shared/delay.yaml | ||
|
||
- inputText: "ijkl" | ||
- assertVisible: "abcdefghijkl" | ||
|
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,13 @@ | ||
# delay.yaml | ||
|
||
appId: com.duckduckgo.mobile.ios | ||
--- | ||
|
||
- runFlow: | ||
when: | ||
visible: | ||
text: "This is just a text that will be never matched so this invocation will cause 5s delay" | ||
index: 0 | ||
commands: | ||
- stopApp | ||
|