-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Conversation
Hello @chetanyakan, Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here. |
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.
Thanks for the PR @chetanyakan!
I've added some comments for you to review.
Added cypress tests for status dropdown and custom status modal Added two support functions in cypress with documentation Added some more tests in status dropdown Added some more tests in custom status modal Added documentation above the custom status modal file and moved it to match the group Refactored and added 3 major tests for the custom status tests Added some classes in custom status modal Refactored and removed some tests from the status dropdown spec
Co-authored-by: Harrison Healey <[email protected]>
- MM-T3851 Custom status CTAs for new users - MM-T3850 Verifying where the custom status appears - MM-T3852 Custom Status slash commands - Reverted changes of package-lock.json - Changed className to id in custom status modal and profile popover
Rebased to HEAD of master. |
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.
Thanks again @chetanyakan, this is looking good.
Just one more comment before I approve.
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.
Looks good now, thanks @chetanyakan!
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.
Hi @chetanyakan ! Thanks for your contribution !! Here are some initial change requests.
The test file is huge and we want to try to minimize the number of tests in a file. Please break up the tests into several files as suggested below and don't include the // Stage: @prod
into the new files.
Also, I'm getting several failures locally. Not sure which is causing which. Please make sure to run each separated test locally, grab a snapshot of each successful run and please include the snapshots in the PR description.
Here's a sample snapshot of a successful run you can take:
Thanks! I'll re-review once the above changes are committed.
Co-authored-by: Joseph Baylon <[email protected]>
Co-authored-by: Joseph Baylon <[email protected]>
@josephbaylon Test case 4 has a weird behaviour. It runs fine from the terminal, but fails when running from the cypress desktop app. |
Strangely, I get different results using different version of Cypress. @josephbaylon Can you verify on your end if any of the custom status E2E tests are failing? |
Fixed post header CSS which does not work in Electron Fixed issue with the recent custom statuses tests
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.
Hi @chetanyakan I retested locally and all tests pass for me locally! Thanks.
However, given that this is behind a feature flag, we cannot merge this until we set the value to true by default.
@ogi-m I'll approve the PR but I'll set the DO NOT MERGE
label for now. We can revisit once the feature flag is enabled by default.
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.
@josephbaylon The feature flag is now enabled on master by default, can it be merged now?
/update-branch |
We don't have permissions to update this PR, please contact the submitter to apply the update. |
@hmhealey It seems like I lost rights to sync and merge. Please sync and merge. Thanks! |
/update-branch |
We don't have permissions to update this PR, please contact the submitter to apply the update. |
/update-branch |
We don't have permissions to update this PR, please contact the submitter to apply the update. |
@chetanyakan Reviews complete. Please update so we can merge. Thank you for your contribution! |
… cs-e2e * 'master' of github.com:mattermost/mattermost-webapp: (26 commits) MM-33791 - add openId to check for account types (mattermost#7693) use theme variable for disabled select background (mattermost#7684) Fixed prod test cases (mattermost#7676) The pdf zoom level is store independently per file preview (mattermost#7635) fix broken test (mattermost#7694) Feature/MM 25430 show online status in channel switcher (mattermost#6609) [MM-31132] components/admin_console: enable metrics settings for TE (mattermost#7659) Added Guest account test cases (mattermost#7677) [MM-20397] Migrated the ChannelSelect component to TypeScript (mattermost#7436) [MM-33374] - Adding cloud license to dev environment causes sidebar menu to break (mattermost#7665) fixing group to channel modal (mattermost#7669) MM-33581 Fix off-by-one error in wrapEmojis (mattermost#7647) only apply theme variable in context of main app (mattermost#7649) MM-33661 Spurious "join private channel" warning fix (mattermost#7672) Translations update from Weblate (mattermost#7655) MM-23040: remove teamType prop from ChannelController (mattermost#7601) MM-3295 - remove no longer necessary validation (mattermost#7646) Disable check-deps ci step (mattermost#7657) fix group modal tests (mattermost#7513) [MM-33033] Use box-shadow for create post border instead of border (mattermost#7627) ...
@saturninoabril @josephbaylon Updated the branch. |
Summary
Related Links
Setting a default custom status, setting own custom status, clearing statuses and recent statuses:
https://automation-test-cases.vercel.app/test/MM-T3836
https://automation-test-cases.vercel.app/test/MM-T3846
https://automation-test-cases.vercel.app/test/MM-T3847
Verifies the status appears in the right places when set, a status access point for new users:
https://automation-test-cases.vercel.app/test/MM-T3850
https://automation-test-cases.vercel.app/test/MM-T3851
https://automation-test-cases.vercel.app/test/MM-T3852
Related Pull Requests
Screenshots
cypress/integration/custom_status/custom_status_1_spec.js
cypress/integration/custom_status/custom_status_2_spec.js
cypress/integration/custom_status/custom_status_3_spec.js
cypress/integration/custom_status/custom_status_4_spec.js
cypress/integration/custom_status/custom_status_5_spec.js
cypress/integration/custom_status/custom_status_6_spec.js