-
Notifications
You must be signed in to change notification settings - Fork 226
Ensure the CI is marked as failed when Maestro test is failing #4700
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
Changes from all commits
4439f89
8de0cd1
fc0bf25
99f00e3
6dbdf29
5aab0d8
d400644
5c09a3c
f7240ca
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,22 +7,24 @@ appId: ${MAESTRO_APP_ID} | |
- runFlow: ../assertions/assertLoginDisplayed.yaml | ||
- tapOn: | ||
id: "login-continue" | ||
## MAS page | ||
## Conditional workflow to pass the Chrome first launch welcome page. | ||
- runFlow: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe add a comment to specify this is a workaround for Chrome's onboarding screen. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
when: | ||
visible: 'Use without an account' | ||
commands: | ||
- tapOn: "Use without an account" | ||
## Working when running Maestro locally, but not on the CI yet. | ||
- tapOn: | ||
id: "login-email_username" | ||
id: "form-1" | ||
- inputText: ${MAESTRO_USERNAME} | ||
- pressKey: Enter | ||
- tapOn: | ||
id: "login-password" | ||
- inputText: "wrong-password" | ||
- pressKey: Enter | ||
- tapOn: "Continue" | ||
- tapOn: "OK" | ||
- tapOn: | ||
id: "login-password" | ||
- eraseText: 20 | ||
id: "form-3" | ||
- inputText: ${MAESTRO_PASSWORD} | ||
- pressKey: Enter | ||
- tapOn: "Continue" | ||
## Back to native world | ||
- runFlow: ../assertions/assertSessionVerificationDisplayed.yaml | ||
- runFlow: ./verifySession.yaml | ||
- runFlow: ../assertions/assertAnalyticsDisplayed.yaml | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
appId: ${MAESTRO_APP_ID} | ||
--- | ||
- tapOn: "Start a call" | ||
- takeScreenshot: build/maestro/700-Call | ||
- extendedWaitUntil: | ||
visible: "maestroelement" | ||
timeout: 10000 | ||
- takeScreenshot: build/maestro/710-Call | ||
# Hangup | ||
- tapOn: "End call" | ||
- extendedWaitUntil: | ||
visible: "MyRoom" | ||
timeout: 10000 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,7 +53,7 @@ fun Activity.openUrlInChromeCustomTab( | |
// Disable download button | ||
intent.putExtra("org.chromium.chrome.browser.customtabs.EXTRA_DISABLE_DOWNLOAD_BUTTON", true) | ||
// Disable bookmark button | ||
intent.putExtra("org.chromium.chrome.browser.customtabs.EXTRA_DISABLE_START_BUTTON", true) | ||
intent.putExtra("org.chromium.chrome.browser.customtabs.EXTRA_DISABLE_STAR_BUTTON", true) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
intent.putExtra(Browser.EXTRA_HEADERS, Bundle().apply { | ||
putString("Accept-Language", Locale.getDefault().toLanguageTag()) | ||
}) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we maybe add some comments here to remind us this is not working at the moment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
f7240ca