Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test to ensure that page refresh doesn't affect url bar focus #2749

Merged
merged 2 commits into from
Apr 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions .maestro/browser_features/search_bar.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# search_bar.yaml
appId: com.duckduckgo.mobile.ios
tags:
- release
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The initial plan was to keep tags aligned to folders to make it clearer what was running at any point. It looks like we've already lost this over time, so this is likely fine at this point.


---

# 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"

13 changes: 13 additions & 0 deletions .maestro/shared/delay.yaml
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

Loading