Skip to content
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
1 change: 1 addition & 0 deletions .maestro/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ executionOrder:
continueOnFailure: true
flowsOrder:
- onboarding
- homeserver-management
- delete-pubky
- create-pubky-and-authorize
- backup-pubky
Expand Down
42 changes: 42 additions & 0 deletions .maestro/flows/create-pubky-and-authorize.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,45 @@ env:
- runFlow: ../shared/close-sheet.yaml
- runFlow: ../shared/signup.yaml
- runFlow: ../shared/authorize.yaml
# Sign out only this pubky's Ring session, then reconnect after restarting the app.
- tapOn:
id: PubkyBox-StagingTestPubky-0-Content
- tapOn:
id: PubkyDetailEditButton
- tapOn:
id: EditPubkyRemoveServerButton
- tapOn: '^Cancel$'
- assertVisible:
id: EditPubkyRemoveServerButton
- tapOn:
id: EditPubkyRemoveServerButton
- tapOn: '^Sign out$'
- extendedWaitUntil:
visible: '^Sign in$'
timeout: 120000
- assertNotVisible:
id: EditPubkyRemoveServerButton
- assertNotVisible:
id: EditPubkyInviteCodeInput
- tapOn:
id: EditPubkyCancelButton
- tapOn:
id: AppHeaderBackButton
- stopApp
- launchApp
- tapOn:
id: PubkyBox-StagingTestPubky-0-ActionButton
- extendedWaitUntil:
visible: '^Sign in$'
timeout: 120000
- assertNotVisible:
id: EditPubkyInviteCodeInput
- tapOn:
id: EditPubkySaveButton
- extendedWaitUntil:
notVisible:
id: EditPubkyNameInput
timeout: 120000
- assertVisible:
id: PubkyBox-StagingTestPubky-0-ActionButton-Text
text: '^Authorize$'
65 changes: 65 additions & 0 deletions .maestro/flows/homeserver-management.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
appId: ${APP_ID}
name: homeserver-management
env:
TEST_HOMESERVER: yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
---
- launchApp:
clearState: true
- runFlow: ../shared/onboarding.yaml
- tapOn:
id: HomeHeaderSettingsButton
- tapOn:
id: ManageHomeserversButton
- tapOn:
id: HomeserversAddButton
- tapOn:
id: AddServerLabelInput
- inputText: Test server
- tapOn:
id: AddServerHomeserverInput
- inputText: ${TEST_HOMESERVER}
- runFlow: ../shared/dismiss-server-form-keyboard.yaml
- tapOn:
id: AddServerSaveButton
- tapOn:
id: HomeserverRename-${TEST_HOMESERVER}
- runFlow:
file: ../shared/clear-input-text.yaml
env:
INPUT_ID: EditServerLabelInput
- inputText: Renamed test server
- runFlow: ../shared/dismiss-server-form-keyboard.yaml
- tapOn:
id: EditServerDefaultCheckbox
- tapOn:
id: EditServerSaveButton
- assertVisible: 'Renamed test server \(default\)'
# Cancelling an edit must leave the saved default unchanged.
- tapOn:
id: HomeserverRename-${TEST_HOMESERVER}
- runFlow: ../shared/dismiss-server-form-keyboard.yaml
- tapOn:
id: EditServerDefaultCheckbox
- tapOn:
id: EditServerCancelButton
- assertVisible: 'Renamed test server \(default\)'
- stopApp
- launchApp
- tapOn:
id: HomeHeaderSettingsButton
- tapOn:
id: ManageHomeserversButton
- assertVisible: 'Renamed test server \(default\)'
- tapOn:
id: HomeserverRename-${TEST_HOMESERVER}
- runFlow: ../shared/dismiss-server-form-keyboard.yaml
- tapOn:
id: EditServerDefaultCheckbox
- tapOn:
id: EditServerSaveButton
- assertVisible: 'Synonym \(default\)'
- tapOn:
id: HomeserverRemove-${TEST_HOMESERVER}
- assertNotVisible:
id: HomeserverRename-${TEST_HOMESERVER}
- assertVisible: 'Synonym \(default\)'
19 changes: 19 additions & 0 deletions .maestro/shared/dismiss-server-form-keyboard.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
appId: ${APP_ID}
---
# Server form inputs have no submit action; Return blurs a single-line input on iOS.
# Maestro's iOS hideKeyboard gesture cannot dismiss the keyboard on this plain View.
- runFlow:
when:
platform: iOS
commands:
# Wait for the form's autofocus/keyboard presentation before sending Return.
- tapOn:
id: '(Add|Edit)ServerLabelInput'
- waitForAnimationToEnd
- pressKey: Enter
- waitForAnimationToEnd
- runFlow:
when:
platform: Android
commands:
- hideKeyboard
39 changes: 33 additions & 6 deletions .maestro/shared/signup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,31 @@ env:
PUBKY_NAME: Staging Test Pubky
---
- runScript: ../scripts/request-invite-code.js
# Release builds seed production, so make staging available through Settings first.
- tapOn:
id: HomeHeaderSettingsButton
- tapOn:
id: ManageHomeserversButton
- runFlow:
when:
notVisible:
id: HomeserverRename-${STAGING_HOMESERVER}
commands:
- tapOn:
id: HomeserversAddButton
- tapOn:
id: AddServerLabelInput
- inputText: Staging
- tapOn:
id: AddServerHomeserverInput
- inputText: ${STAGING_HOMESERVER}
- runFlow: dismiss-server-form-keyboard.yaml
- tapOn:
id: AddServerSaveButton
- tapOn:
id: AppHeaderBackButton
- tapOn:
id: AppHeaderBackButton
- assertVisible:
id: PubkyBox--0-ActionButton
- tapOn:
Expand All @@ -15,15 +40,17 @@ env:
id: EditPubkyNameInput
- inputText: ${PUBKY_NAME}
- assertVisible: ${PUBKY_NAME}
- extendedWaitUntil:
visible:
id: EditPubkySelectServerButton
timeout: 120000
- tapOn:
id: EditPubkySelectServerButton
- tapOn:
id: SelectServer-${STAGING_HOMESERVER}
- tapOn:
id: EditPubkyInviteCodeInput
- inputText: ${output.INVITE_CODE_WITHOUT_HYPHENS}
- runFlow:
file: clear-input-text.yaml
env:
INPUT_ID: EditPubkyHomeserverInput
- setClipboard: ${STAGING_HOMESERVER}
- pasteText
- tapOn:
id: EditPubkyHomeserverLabel
- tapOn:
Expand Down
Loading
Loading