Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

[MM-28408]Add e2e to test disabling textbox in archived channel MM-T1716 #6289

Merged
merged 6 commits into from
Sep 16, 2020

Conversation

sudheerDev
Copy link
Contributor

@sudheerDev sudheerDev commented Aug 27, 2020

Summary

Add e2e tests for check if textboxes are disabled for archived channels
Add a utility for archiving channels
Add a folder for organizing archive channel tests

PS: Ticket MM-27211 has multiple TM4J tests but this PR is for the first one alone MM-T1716

Ticket Link

Story: https://mattermost.atlassian.net/browse/MM-27211
Subtask: https://mattermost.atlassian.net/browse/MM-28408

@sudheerDev sudheerDev added 2: Dev Review Requires review by a core commiter 3: QA Review Requires review by a QA tester labels Aug 27, 2020
Copy link
Contributor

@srkgupta srkgupta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @sudheerDev. Overall the test looks great. Suggested some minor changes.

// Stage: @prod
// Group: @channel

import {testWithConfig} from '../../../support/hooks';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct path:
import {testWithConfig} from '../../support/hooks';

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on the folder structure this is actually right from this folder. I am not a fan of relative URLs when it exceeds more than ../ but as I mostly saw the usage with the relative path I went with it.

Copy link
Contributor

@srkgupta srkgupta Sep 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sudheerDev the Cypress test does not runs as the path is not correct. Can you please fix the correct path. It should be ../../support/hooks. Only then the test works fine. Else we see this error.

Screenshot 2020-09-11 at 4 50 43 PM

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wierd it was working for me earlier.

@jgilliam17 jgilliam17 changed the title MM-27211 [MM-T1716] Add e2e to test disabling textbox in archived channel [MM-28408]Add e2e to test disabling textbox in archived channel MM-T1716 Sep 7, 2020
Copy link
Contributor

@jgilliam17 jgilliam17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @sudheerDev
Looks good to merge.

  • Test case, steps, details and links updated.

@jgilliam17 jgilliam17 added QA Review Done and removed 3: QA Review Requires review by a QA tester labels Sep 9, 2020
@@ -432,3 +432,10 @@ Cypress.Commands.add('checkRunLDAPSync', () => {
}
});
});

Cypress.Commands.add('archiveCurrentChannel', () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh! I think we both have a ui command for archive current channel, we might need to remove one at some point (but they are almost the same, different placement though)
/cc @saturninoabril

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I think the one you have is what we'll use moving forward. So if it gets merged first, then I'd suggest to update and use it in this PR 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed it to use the other method

Copy link
Contributor

@srkgupta srkgupta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see my above comments regarding the import path. It's causing test to error

Copy link
Contributor

@srkgupta srkgupta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @sudheerDev. Tested and passed. Changes LGTM

@srkgupta srkgupta added 4: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core commiter QA Review Done labels Sep 16, 2020
@srkgupta srkgupta merged commit 8373a71 into mattermost:master Sep 16, 2020
@amyblais amyblais added Changelog/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation labels Sep 16, 2020
jfrerich pushed a commit that referenced this pull request Oct 23, 2020
…716 (#6289)

* MM-27211 Add e2e to test disabling textbox in archived channel

* Address review comments

* Change title for test case

* Fix path

* Use alternate ui command for archiving
calebroseland pushed a commit that referenced this pull request Oct 27, 2020
…716 (#6289)

* MM-27211 Add e2e to test disabling textbox in archived channel

* Address review comments

* Change title for test case

* Fix path

* Use alternate ui command for archiving
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
4: Reviews Complete All reviewers have approved the pull request Changelog/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants