-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5cbe049
commit c70ea4d
Showing
24 changed files
with
246 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
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 @@ | ||
appId: org.wikipedia | ||
tags: | ||
- android | ||
- passing | ||
- advanced | ||
--- | ||
- runFlow: subflows/onboarding-android.yaml | ||
- tapOn: | ||
id: "org.wikipedia:id/search_container" | ||
- runScript: scripts/getSearchQuery.js | ||
- inputText: ${output.result} | ||
- assertVisible: ${output.result} | ||
- runFlow: subflows/launch-clearstate-android.yaml |
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,6 @@ | ||
appId: org.wikipedia | ||
tags: | ||
- android | ||
- passing | ||
--- | ||
- launchApp |
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,23 @@ | ||
appId: org.wikimedia.wikipedia | ||
tags: | ||
- ios | ||
- passing | ||
- advanced | ||
--- | ||
- runFlow: subflows/onboarding-ios.yaml | ||
|
||
# Dismiss the auth modal if visible | ||
- runFlow: | ||
when: | ||
visible: "You have been logged out" | ||
commands: | ||
- tapOn: | ||
text: "Continue without logging in" | ||
|
||
- tapOn: Buscar en Wikipedia | ||
- runScript: scripts/getSearchQuery.js | ||
- inputText: ${output.result} | ||
- eraseText | ||
- inputText: qwerty | ||
- assertVisible: ${output.result} | ||
- runFlow: subflows/launch-clearstate-ios.yaml |
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,6 @@ | ||
appId: org.wikimedia.wikipedia | ||
tags: | ||
- ios | ||
- passing | ||
--- | ||
- launchApp |
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 @@ | ||
output.result = 'qwerty'; |
6 changes: 6 additions & 0 deletions
6
e2e/workspaces/wikipedia_es_ES/subflows/launch-clearstate-android.yaml
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,6 @@ | ||
appId: org.wikipedia | ||
--- | ||
- launchApp: | ||
clearState: true | ||
- assertVisible: "Saltar" | ||
- assertVisible: "CONTINUAR" |
6 changes: 6 additions & 0 deletions
6
e2e/workspaces/wikipedia_es_ES/subflows/launch-clearstate-ios.yaml
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,6 @@ | ||
appId: org.wikimedia.wikipedia | ||
--- | ||
- launchApp: | ||
clearState: true | ||
- assertVisible: "Siguiente" | ||
- assertVisible: "Omitir" |
12 changes: 12 additions & 0 deletions
12
e2e/workspaces/wikipedia_es_ES/subflows/onboarding-android.yaml
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,12 @@ | ||
appId: org.wikipedia | ||
--- | ||
- launchApp: | ||
clearState: true | ||
- tapOn: | ||
id: "org.wikipedia:id/fragment_onboarding_forward_button" | ||
- tapOn: | ||
id: "org.wikipedia:id/fragment_onboarding_forward_button" | ||
- tapOn: | ||
id: "org.wikipedia:id/fragment_onboarding_forward_button" | ||
- tapOn: | ||
id: "org.wikipedia:id/fragment_onboarding_done_button" |
12 changes: 12 additions & 0 deletions
12
e2e/workspaces/wikipedia_es_ES/subflows/onboarding-ios.yaml
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,12 @@ | ||
appId: org.wikimedia.wikipedia | ||
--- | ||
- launchApp: | ||
clearState: true | ||
- repeat: | ||
times: 3 | ||
commands: | ||
- swipe: | ||
direction: LEFT | ||
duration: 400 | ||
- waitForAnimationToEnd | ||
- tapOn: Empezar |
14 changes: 14 additions & 0 deletions
14
e2e/workspaces/wikipedia_es_ES/wikipedia-android-advanced/auth/login.yml
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,14 @@ | ||
appId: org.wikipedia | ||
--- | ||
- tapOn: "More" | ||
- tapOn: "LOG IN.*" | ||
- tapOn: | ||
id: ".*create_account_login_button" | ||
- runScript: "../scripts/fetchTestUser.js" | ||
- tapOn: "Username" | ||
- inputText: "${output.test_user.username}" | ||
- tapOn: "Password" | ||
- inputText: "No provided" | ||
- tapOn: "LOG IN" | ||
- back | ||
- back |
17 changes: 17 additions & 0 deletions
17
e2e/workspaces/wikipedia_es_ES/wikipedia-android-advanced/auth/signup.yml
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,17 @@ | ||
appId: org.wikipedia | ||
--- | ||
- tapOn: "More" | ||
- tapOn: "LOG IN.*" | ||
- runScript: "../scripts/generateCredentials.js" | ||
- tapOn: "Username" | ||
- inputText: "${output.credentials.username}" | ||
- tapOn: "Password" | ||
- inputText: "${output.credentials.password}" | ||
- tapOn: "Repeat password" | ||
- inputText: "${output.credentials.password}" | ||
- tapOn: "Email.*" | ||
- inputText: "${output.credentials.email}" | ||
|
||
# We won't actually create the account | ||
- back | ||
- back |
13 changes: 13 additions & 0 deletions
13
e2e/workspaces/wikipedia_es_ES/wikipedia-android-advanced/dashboard/copy-paste.yml
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 @@ | ||
appId: org.wikipedia | ||
--- | ||
- tapOn: "Explore" | ||
- scrollUntilVisible: | ||
element: "Top read" | ||
- copyTextFrom: | ||
id: ".*view_list_card_item_title" | ||
index: 0 | ||
- tapOn: "Explore" | ||
- tapOn: "Search Wikipedia" | ||
- inputText: "${maestro.copiedText}" | ||
- back | ||
- back |
7 changes: 7 additions & 0 deletions
7
e2e/workspaces/wikipedia_es_ES/wikipedia-android-advanced/dashboard/feed.yml
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 @@ | ||
appId: org.wikipedia | ||
--- | ||
- tapOn: "Explore" | ||
- scrollUntilVisible: | ||
element: "Today on Wikipedia.*" | ||
- tapOn: "Today on Wikipedia.*" | ||
- back |
6 changes: 6 additions & 0 deletions
6
e2e/workspaces/wikipedia_es_ES/wikipedia-android-advanced/dashboard/main.yml
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,6 @@ | ||
appId: org.wikipedia | ||
--- | ||
- runFlow: "search.yml" | ||
- runFlow: "saved.yml" | ||
- runFlow: "feed.yml" | ||
- runFlow: "copy-paste.yml" |
7 changes: 7 additions & 0 deletions
7
e2e/workspaces/wikipedia_es_ES/wikipedia-android-advanced/dashboard/saved.yml
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 @@ | ||
appId: org.wikipedia | ||
--- | ||
- tapOn: "Saved" | ||
- tapOn: "Default list for your saved articles" | ||
- assertVisible: "Sun" | ||
- assertVisible: "Star at the center of the Solar System" | ||
- back |
12 changes: 12 additions & 0 deletions
12
e2e/workspaces/wikipedia_es_ES/wikipedia-android-advanced/dashboard/search.yml
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,12 @@ | ||
appId: org.wikipedia | ||
--- | ||
- tapOn: "Search Wikipedia" | ||
- inputText: "Sun" | ||
- assertVisible: "Star at the center of the Solar System" | ||
- tapOn: | ||
id: ".*page_list_item_title" | ||
- tapOn: | ||
id: ".*page_save" | ||
- back | ||
- back | ||
- back |
10 changes: 10 additions & 0 deletions
10
e2e/workspaces/wikipedia_es_ES/wikipedia-android-advanced/onboarding/add-language.yml
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,10 @@ | ||
appId: org.wikipedia | ||
--- | ||
- tapOn: "ADD OR EDIT.*" | ||
- tapOn: "ADD LANGUAGE" | ||
- tapOn: | ||
id: ".*menu_search_language" | ||
- inputText: "Greek" | ||
- assertVisible: "Ελληνικά" | ||
- tapOn: "Ελληνικά" | ||
- tapOn: "Navigate up" |
11 changes: 11 additions & 0 deletions
11
e2e/workspaces/wikipedia_es_ES/wikipedia-android-advanced/onboarding/main.yml
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,11 @@ | ||
appId: org.wikipedia | ||
--- | ||
- runFlow: "add-language.yml" | ||
- runFlow: "remove-language.yml" | ||
- tapOn: "Continue" | ||
- assertVisible: "New ways to explore" | ||
- tapOn: "Continue" | ||
- assertVisible: "Reading lists with sync" | ||
- tapOn: "Continue" | ||
- assertVisible: "Send anonymous data" | ||
- tapOn: "Get started" |
13 changes: 13 additions & 0 deletions
13
e2e/workspaces/wikipedia_es_ES/wikipedia-android-advanced/onboarding/remove-language.yml
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 @@ | ||
appId: org.wikipedia | ||
--- | ||
- tapOn: "ADD OR EDIT.*" | ||
- tapOn: "More options" | ||
- tapOn: "Remove language" | ||
- tapOn: | ||
id: ".*wiki_language_checkbox" | ||
index: 1 | ||
- tapOn: | ||
id: ".*menu_delete_selected" | ||
- tapOn: "OK" | ||
- assertNotVisible: "Ελληνικά" | ||
- tapOn: "Navigate up" |
11 changes: 11 additions & 0 deletions
11
e2e/workspaces/wikipedia_es_ES/wikipedia-android-advanced/run-test.yml
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,11 @@ | ||
appId: org.wikipedia | ||
tags: | ||
- android | ||
- passing | ||
--- | ||
- launchApp: | ||
clearState: true | ||
- runFlow: "onboarding/main.yml" | ||
- runFlow: "dashboard/main.yml" | ||
- runFlow: "auth/signup.yml" | ||
- runFlow: "auth/login.yml" |
13 changes: 13 additions & 0 deletions
13
e2e/workspaces/wikipedia_es_ES/wikipedia-android-advanced/scripts/fetchTestUser.js
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 @@ | ||
// Fetches test user from API | ||
function getTestUserFromApi() { | ||
const url = `https://jsonplaceholder.typicode.com/users/1`; | ||
var response = http.get(url); | ||
var data = json(response.body); | ||
|
||
return { | ||
username: data.username, | ||
email: data.email, | ||
}; | ||
} | ||
|
||
output.test_user = getTestUserFromApi(); |
23 changes: 23 additions & 0 deletions
23
e2e/workspaces/wikipedia_es_ES/wikipedia-android-advanced/scripts/generateCredentials.js
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,23 @@ | ||
function username() { | ||
var date = new Date().getTime().toString(); | ||
var username = `test_user_placeholder`.replace("placeholder", date); | ||
return username; | ||
} | ||
|
||
function email() { | ||
var date = new Date().getTime().toString(); | ||
var email = `[email protected]`.replace("placeholder", date); | ||
return email; | ||
} | ||
|
||
function password() { | ||
var date = new Date().getTime().toString(); | ||
var password = `test-user-password-placeholder`.replace("placeholder", date); | ||
return password; | ||
} | ||
|
||
output.credentials = { | ||
email: email(), | ||
password: password(), | ||
username: username(), | ||
}; |
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