-
Notifications
You must be signed in to change notification settings - Fork 1.5k
test: cover messages received while the device is offline #7596
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
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
ac1435c
test: cover messages received while the device is offline
diegolmello 8a9621a
test: drop the maestro readme section
diegolmello 87e8d4a
test: settle before asserting the offline backlog is undelivered
diegolmello 691b9d6
test: point the offline flow at the reconnect backfill code
diegolmello ac3970f
test: select the offline flow on subscribeRooms changes
diegolmello 7d53416
test: keep the sleep helper name
diegolmello e60fade
Merge branch 'new-sdk' into test/messages-received-while-offline
diegolmello 03ac9b3
test: include the offline flow shard in the rooms saga fan-out scenario
diegolmello File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -263,5 +263,6 @@ output.utils = { | |
| post, | ||
| login, | ||
| getDeepLink, | ||
| createDM | ||
| createDM, | ||
| sleep | ||
| }; | ||
This file contains hidden or 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,55 @@ | ||
| appId: ${APP_ID} | ||
| name: Messages received while device is offline | ||
| onFlowStart: | ||
| - runFlow: '../../helpers/setup.yaml' | ||
| onFlowComplete: | ||
| - setAirplaneMode: disabled | ||
| - stopApp: ${APP_ID} | ||
| - evalScript: ${output.utils.deleteCreatedUsers()} | ||
| tags: | ||
| - test-3 | ||
| - android-only | ||
|
|
||
| --- | ||
| - evalScript: ${output.user = output.utils.createUser()} | ||
| - evalScript: ${output.sender = output.utils.createUser()} | ||
| - evalScript: ${output.tag = 'offline-' + output.random(6)} | ||
| - evalScript: ${output.utils.sendMessage(output.sender.username, output.sender.password, '@' + output.user.username, output.tag + '-baseline')} | ||
|
|
||
| - runFlow: | ||
| file: '../../helpers/login-with-deeplink.yaml' | ||
| env: | ||
| USERNAME: ${output.user.username} | ||
| PASSWORD: ${output.user.password} | ||
| CLEAR_STATE: true | ||
| - runFlow: | ||
| file: '../../helpers/navigate-to-room.yaml' | ||
| env: | ||
| ROOM: ${output.sender.username} | ||
| - extendedWaitUntil: | ||
| visible: | ||
| id: 'message-content-${output.tag}-baseline' | ||
| timeout: 60000 | ||
|
|
||
| # should deliver every message that arrived while the device had no network | ||
| - setAirplaneMode: enabled | ||
| - evalScript: ${output.utils.sendMessage(output.sender.username, output.sender.password, '@' + output.user.username, output.tag + '-1')} | ||
| - evalScript: ${output.utils.sendMessage(output.sender.username, output.sender.password, '@' + output.user.username, output.tag + '-2')} | ||
| - evalScript: ${output.utils.sendMessage(output.sender.username, output.sender.password, '@' + output.user.username, output.tag + '-3')} | ||
| - evalScript: ${output.utils.sleep(5000)} | ||
| - assertNotVisible: | ||
| id: 'message-content-${output.tag}-1' | ||
| - assertNotVisible: | ||
| id: 'message-content-${output.tag}-2' | ||
| - assertNotVisible: | ||
| id: 'message-content-${output.tag}-3' | ||
| - setAirplaneMode: disabled | ||
|
|
||
| - extendedWaitUntil: | ||
| visible: | ||
| id: 'message-content-${output.tag}-3' | ||
| timeout: 120000 | ||
| - assertVisible: | ||
| id: 'message-content-${output.tag}-1' | ||
| - assertVisible: | ||
| id: 'message-content-${output.tag}-2' | ||
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.