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

MM-T402 - Finish Tutorial #6288

Merged
merged 7 commits into from
Sep 1, 2020

Conversation

josephk96
Copy link
Contributor

This e2e test does the following -

  1. Using the sysadmin account, create a team and make sure that anyone can join the team
  2. Logout from the sysadmin account and create a new account/user
  3. Finish the initial tutorial
  4. Complete the following three tutorials by clicking on the pulsating tooltips - Message box, Town Square, Main Menu
  5. Reload the page without cache
  6. Ensure that when the page is reloaded, the tutorial does not appear

I disabled LDAP (not sure if necessary, but just in case) for this test. After clicking the pulsating tooltip(s), I initially attempted to verify that the correct text was being shown via Testing Library's findByText method, but it was failing either due to ambiguous text being displayed or because the text was being displayed in many html sub-elements, so I used contains and checked for a part of each tutorial paragraph.

I did not save the text I tested in variables because they were not being reused, but let me know if you think that I should :)

Test case: https://automation-test-cases.vercel.app/test/MM-T402

@saturninoabril saturninoabril added 2: Dev Review Requires review by a core commiter 3: QA Review Requires review by a QA tester labels Aug 28, 2020
Copy link
Member

@saturninoabril saturninoabril left a comment

Choose a reason for hiding this comment

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

Thanks @josephk96! Tested and passed. LGTM, except for last comment. Approving the PR.

e2e/cypress/integration/onboarding/finish_tutorial_spec.js Outdated Show resolved Hide resolved
@saturninoabril saturninoabril removed the 2: Dev Review Requires review by a core commiter label Aug 28, 2020
Copy link
Contributor

@josephbaylon josephbaylon left a comment

Choose a reason for hiding this comment

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

Thanks @josephk96 !! Test passed locally. Please resolve conflicts before I retest and approve.

@josephbaylon
Copy link
Contributor

/update-branch

@mattermod
Copy link
Contributor

Error trying to update the PR.
Please do it manually.

@josephbaylon
Copy link
Contributor

/update-branch

@josephbaylon josephbaylon self-requested a review September 1, 2020 18:27
Copy link
Contributor

@josephbaylon josephbaylon left a comment

Choose a reason for hiding this comment

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

LGTM. @josephk96 I resolved the conflicts and will merge PR

@josephbaylon josephbaylon added 4: Reviews Complete All reviewers have approved the pull request and removed 3: QA Review Requires review by a QA tester labels Sep 1, 2020
@josephbaylon josephbaylon merged commit 096efd4 into mattermost:master Sep 1, 2020
@amyblais amyblais added Changelog/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation labels Sep 6, 2020
jfrerich pushed a commit that referenced this pull request Oct 23, 2020
* Initial commit for MM-T402

* Complete e2e test functionality for MM-T402

* Refactor MM-T402 to use imported generateRandomUser function

* Disable LDAP in MM-T402

* Destructure user properties directly from generateRandomUser function

Co-authored-by: Joseph Baylon <[email protected]>
Co-authored-by: Mattermod <[email protected]>
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 Hackfest
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants