-
Notifications
You must be signed in to change notification settings - Fork 1.4k
test: 2nd set of room test in maestro #6606
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
14 commits
Select commit
Hold shift + click to select a range
a4f78bf
More test
Rohit3523 561ab87
chore: format code with Prettier [skip ci]
Rohit3523 c640f54
ignore user test done
Rohit3523 b14b3b0
chore: format code with Prettier [skip ci]
Rohit3523 94df073
Share message done
Rohit3523 e70c29b
chore: format code with Prettier [skip ci]
Rohit3523 f2e0f1d
Some more changes
Rohit3523 36a1a7d
Merge branch 'develop' of https://github.com/RocketChat/Rocket.Chat.R…
Rohit3523 94d9849
More changes
Rohit3523 137f136
Fix file
Rohit3523 f2847fc
Merge branch 'develop' into chore-maestro-room-test
Rohit3523 59254f0
Merge branch 'develop' into chore-maestro-room-test
Rohit3523 330bcfc
Merge branch 'develop' into chore-maestro-room-test
Rohit3523 c37b345
fix
Rohit3523 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 |
|---|---|---|
| @@ -0,0 +1,242 @@ | ||
| appId: chat.rocket.reactnative | ||
| name: Ignore User | ||
| onFlowStart: | ||
| - runFlow: '../../helpers/setup.yaml' | ||
|
|
||
| --- | ||
| - runFlow: '../../helpers/launch-app.yaml' | ||
|
|
||
| - evalScript: ${output.user = output.utils.createUser()} | ||
| - evalScript: ${output.otherUser = output.utils.createUser()} | ||
| - evalScript: ${output.room = output.utils.createRandomRoom(output.user.username, output.user.password)} | ||
|
|
||
| - runFlow: | ||
| file: '../../helpers/login.yaml' | ||
| env: | ||
| USERNAME: ${output.user.username} | ||
| PASSWORD: ${output.user.password} | ||
|
|
||
| # should go to user info view | ||
| - runFlow: | ||
| file: '../../helpers/search-and-navigate-room.yaml' | ||
| env: | ||
| ROOM: ${output.otherUser.username} | ||
| - runFlow: | ||
| file: './utils/navigate-to-info-view.yaml' | ||
|
|
||
| # should block user | ||
| - extendedWaitUntil: | ||
| visible: | ||
| text: 'Block' | ||
| timeout: 60000 | ||
| - tapOn: 'Block' | ||
| - extendedWaitUntil: | ||
| visible: | ||
| text: 'Unblock' | ||
| timeout: 60000 | ||
| - runFlow: '../../helpers/go-back.yaml' | ||
| - extendedWaitUntil: | ||
| visible: | ||
| id: 'room-actions-view' | ||
| timeout: 60000 | ||
| - runFlow: '../../helpers/go-back.yaml' | ||
| - runFlow: | ||
| file: '../../helpers/navigate-to-room.yaml' | ||
| env: | ||
| ROOM: ${output.otherUser.username} | ||
| - extendedWaitUntil: | ||
| visible: | ||
| text: 'This room is blocked' | ||
| timeout: 60000 | ||
|
|
||
| # should unblock user | ||
| - runFlow: | ||
| file: './utils/navigate-to-info-view.yaml' | ||
| - extendedWaitUntil: | ||
| visible: | ||
| text: 'Unblock' | ||
| timeout: 60000 | ||
| - tapOn: 'Unblock' | ||
| - extendedWaitUntil: | ||
| visible: | ||
| text: 'Block' | ||
| timeout: 60000 | ||
| - runFlow: '../../helpers/go-back.yaml' | ||
| - extendedWaitUntil: | ||
| visible: | ||
| id: 'room-actions-view' | ||
| timeout: 60000 | ||
| - runFlow: '../../helpers/go-back.yaml' | ||
| - runFlow: | ||
| file: '../../helpers/navigate-to-room.yaml' | ||
| env: | ||
| ROOM: ${output.otherUser.username} | ||
| - extendedWaitUntil: | ||
| visible: | ||
| id: 'message-composer' | ||
| timeout: 60000 | ||
| - runFlow: '../../helpers/go-back.yaml' | ||
|
|
||
| # should ignore user from message | ||
| - runFlow: | ||
| file: '../../helpers/search-and-navigate-room.yaml' | ||
| env: | ||
| ROOM: ${output.room.name} | ||
| - evalScript: ${output.utils.sendMessage(output.otherUser.username, output.otherUser.password, output.room._id, 'message-01')} | ||
| - evalScript: ${output.utils.sendMessage(output.otherUser.username, output.otherUser.password, output.room._id, 'message-02')} | ||
| - extendedWaitUntil: | ||
| visible: | ||
| text: ${output.otherUser.username} | ||
| index: 0 | ||
| timeout: 60000 | ||
| - tapOn: ${output.otherUser.username} | ||
| - extendedWaitUntil: | ||
| visible: | ||
| text: 'Ignore' | ||
| childOf: | ||
| id: room-info-view-ignore | ||
| timeout: 60000 | ||
| - tapOn: 'Ignore' | ||
| - extendedWaitUntil: | ||
| visible: | ||
| text: 'Unignore' | ||
| childOf: | ||
| id: room-info-view-ignore | ||
| timeout: 60000 | ||
| - runFlow: '../../helpers/go-back.yaml' | ||
|
|
||
| # should tap to display message | ||
| - runFlow: | ||
| file: '../../helpers/search-and-navigate-room.yaml' | ||
| env: | ||
| ROOM: ${output.room.name} | ||
| - extendedWaitUntil: | ||
| visible: | ||
| text: .*Message ignored. Tap to display it.* | ||
| index: 0 | ||
| timeout: 60000 | ||
| - tapOn: .*Message ignored. Tap to display it.* | ||
| - extendedWaitUntil: | ||
| visible: | ||
| text: ${output.otherUser.username} | ||
| index: 0 | ||
| timeout: 60000 | ||
| - extendedWaitUntil: | ||
| visible: | ||
| text: 'message-02' | ||
| index: 0 | ||
| timeout: 60000 | ||
| - extendedWaitUntil: | ||
| visible: | ||
| text: ${output.otherUser.username} | ||
| index: 0 | ||
| timeout: 60000 | ||
| - tapOn: ${output.otherUser.username} | ||
| - extendedWaitUntil: | ||
| visible: | ||
| text: 'Unignore' | ||
| childOf: | ||
| id: room-info-view-ignore | ||
| timeout: 60000 | ||
| - tapOn: 'Unignore' | ||
| - extendedWaitUntil: | ||
| visible: | ||
| text: 'Ignore' | ||
| childOf: | ||
| id: room-info-view-ignore | ||
| timeout: 60000 | ||
| - runFlow: '../../helpers/go-back.yaml' | ||
| - runFlow: | ||
| file: '../../helpers/search-and-navigate-room.yaml' | ||
| env: | ||
| ROOM: ${output.room.name} | ||
| - extendedWaitUntil: | ||
| visible: | ||
| text: 'message-02' | ||
| index: 0 | ||
| timeout: 60000 | ||
|
|
||
| # should go to user info view from a DM | ||
| - runFlow: '../../helpers/go-back.yaml' | ||
| - runFlow: | ||
| file: '../../helpers/search-and-navigate-room.yaml' | ||
| env: | ||
| ROOM: ${output.otherUser.username} | ||
| - runFlow: './utils/navigate-to-info-view.yaml' | ||
|
|
||
| # should report a user from a DM | ||
| - extendedWaitUntil: | ||
| visible: | ||
| text: 'Report' | ||
| childOf: | ||
| id: room-info-view-warning | ||
| timeout: 60000 | ||
| - tapOn: 'Report' | ||
| - extendedWaitUntil: | ||
| visible: | ||
| id: 'report-user-view' | ||
| timeout: 60000 | ||
| - extendedWaitUntil: | ||
| visible: | ||
| id: 'report-user-view-input' | ||
| timeout: 60000 | ||
| - tapOn: | ||
| id: 'report-user-view-input' | ||
| - inputText: 'e2e test' | ||
| - extendedWaitUntil: | ||
| visible: | ||
| id: 'report-user-view-submit' | ||
| timeout: 60000 | ||
| - hideKeyboard | ||
| - tapOn: | ||
| id: 'report-user-view-submit' | ||
| - extendedWaitUntil: | ||
| visible: | ||
| id: 'room-view-title-${output.otherUser.username}' | ||
| timeout: 60000 | ||
|
|
||
| # should go to user info view from a channel | ||
| - runFlow: '../../helpers/go-back.yaml' | ||
| - runFlow: | ||
| file: '../../helpers/search-and-navigate-room.yaml' | ||
| env: | ||
| ROOM: ${output.room.name} | ||
| - extendedWaitUntil: | ||
| visible: | ||
| text: ${output.otherUser.username} | ||
| timeout: 60000 | ||
| - tapOn: ${output.otherUser.username} | ||
| - extendedWaitUntil: | ||
| visible: | ||
| id: 'room-info-view' | ||
| timeout: 60000 | ||
|
|
||
| # should report a user from a channel | ||
| - extendedWaitUntil: | ||
| visible: | ||
| text: 'Report' | ||
| childOf: | ||
| id: room-info-view-warning | ||
| - tapOn: 'Report' | ||
| - extendedWaitUntil: | ||
| visible: | ||
| id: 'report-user-view' | ||
| timeout: 60000 | ||
| - extendedWaitUntil: | ||
| visible: | ||
| id: 'report-user-view-input' | ||
| timeout: 60000 | ||
| - tapOn: | ||
| id: 'report-user-view-input' | ||
| - inputText: 'e2e test' | ||
| - hideKeyboard | ||
| - extendedWaitUntil: | ||
| visible: | ||
| id: 'report-user-view-submit' | ||
| timeout: 60000 | ||
| - tapOn: | ||
| id: 'report-user-view-submit' | ||
| - extendedWaitUntil: | ||
| visible: | ||
| id: 'room-view-title-${output.room.name}' | ||
| timeout: 60000 |
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,108 @@ | ||
| appId: chat.rocket.reactnative | ||
| name: Share Message | ||
| onFlowStart: | ||
| - runFlow: '../../helpers/setup.yaml' | ||
|
|
||
| --- | ||
| - runFlow: '../../helpers/launch-app.yaml' | ||
|
|
||
| - evalScript: ${output.user = output.utils.createUser()} | ||
| - evalScript: ${output.otherUser = output.utils.createUser()} | ||
| - evalScript: ${output.room = output.utils.createRandomRoom(output.user.username, output.user.password)} | ||
|
|
||
| - runFlow: | ||
| file: '../../helpers/login.yaml' | ||
| env: | ||
| USERNAME: ${output.user.username} | ||
| PASSWORD: ${output.user.password} | ||
|
|
||
| # Start a DM with other user | ||
| - runFlow: | ||
| file: '../../helpers/search-and-navigate-room.yaml' | ||
| env: | ||
| ROOM: ${output.otherUser.username} | ||
| - runFlow: | ||
| file: '../../helpers/send-message.yaml' | ||
| env: | ||
| message: 'Hello user' | ||
| - runFlow: '../../helpers/go-back.yaml' | ||
|
|
||
| # should navigate to room and send a message | ||
| - runFlow: | ||
| file: '../../helpers/search-and-navigate-room.yaml' | ||
| env: | ||
| ROOM: ${output.room.name} | ||
| - runFlow: | ||
| file: '../../helpers/send-message.yaml' | ||
| env: | ||
| message: 'Hello room' | ||
|
|
||
| # should open the action sheet and tap Forward | ||
| - extendedWaitUntil: | ||
| visible: | ||
| text: 'Hello room' | ||
| index: 0 | ||
| timeout: 60000 | ||
| - longPressOn: 'Hello room' | ||
| - extendedWaitUntil: | ||
| visible: | ||
| id: 'action-sheet' | ||
| timeout: 60000 | ||
| - extendedWaitUntil: | ||
| visible: | ||
| text: 'Forward' | ||
| timeout: 60000 | ||
| - tapOn: 'Forward' | ||
|
|
||
| # should forward the message | ||
| - extendedWaitUntil: | ||
| visible: | ||
| id: 'forward-message-view' | ||
| timeout: 60000 | ||
| - tapOn: 'Select' | ||
| - extendedWaitUntil: | ||
| visible: | ||
| id: 'multi-select-search' | ||
| timeout: 60000 | ||
| - tapOn: | ||
| id: 'multi-select-search' | ||
| - inputText: ${output.otherUser.username} | ||
| - hideKeyboard | ||
| - extendedWaitUntil: | ||
| visible: | ||
| id: multi-select-item-${output.otherUser.username.toLowerCase()} | ||
| timeout: 60000 | ||
| - tapOn: | ||
| id: multi-select-item-${output.otherUser.username.toLowerCase()} | ||
| - swipe: | ||
| id: 'action-sheet-handle' | ||
| direction: DOWN | ||
| - extendedWaitUntil: | ||
| notVisible: | ||
| id: 'multi-select-search' | ||
| timeout: 60000 | ||
| - extendedWaitUntil: | ||
| visible: | ||
| id: 'forward-message-view-send' | ||
| timeout: 60000 | ||
| - tapOn: | ||
| id: 'forward-message-view-send' | ||
| - extendedWaitUntil: | ||
| visible: | ||
| id: 'room-view-title-${output.room.name}' | ||
| timeout: 60000 | ||
|
|
||
| # should go to otherUser DM and verify if exist both messages | ||
| - runFlow: '../../helpers/go-back.yaml' | ||
| - runFlow: | ||
| file: '../../helpers/search-and-navigate-room.yaml' | ||
| env: | ||
| ROOM: ${output.otherUser.username} | ||
| - extendedWaitUntil: | ||
| visible: | ||
| text: 'Hello user' | ||
| timeout: 60000 | ||
| - extendedWaitUntil: | ||
| visible: | ||
| text: 'Hello room' | ||
| timeout: 60000 |
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,24 @@ | ||
| appId: chat.rocket.reactnative | ||
| name: Navigate to info view | ||
| tags: | ||
| - 'util' | ||
|
|
||
| --- | ||
| - extendedWaitUntil: | ||
| visible: | ||
| id: room-header | ||
| timeout: 60000 | ||
| - tapOn: | ||
| id: room-header | ||
| - extendedWaitUntil: | ||
| visible: | ||
| id: room-actions-view | ||
| timeout: 60000 | ||
| - assertVisible: | ||
| id: room-actions-info | ||
| - tapOn: | ||
| id: room-actions-info | ||
| - extendedWaitUntil: | ||
| visible: | ||
| id: room-info-view | ||
| timeout: 60000 |
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.
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.
🧩 Analysis chain
Fix YAML doc start to resolve parse errors.
Root mixes a mapping (metadata) and a sequence (steps). Insert the YAML document separator before the first step. This will also fix the Prettier/YAMLlint failures.
Apply:
Run to confirm no syntax errors remain:
🏁 Script executed:
Length of output: 830
🏁 Script executed:
Length of output: 101
🏁 Script executed:
Length of output: 6049
Insert YAML document separator ('---') before the top-level steps
Root mixes a mapping (metadata: appId, name, onFlowStart/onFlowComplete) and a top-level sequence (steps). Insert '---' before line 8 (before "- runFlow: '../../helpers/launch-app.yaml'") to separate documents and fix YAML/Prettier/YAMLLint parse errors.
Apply:
📝 Committable suggestion
🧰 Tools
🪛 YAMLlint (1.37.1)
[error] 8-8: syntax error: expected , but found '-'
(syntax)
🤖 Prompt for AI Agents