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

[MM-31438] Write Unit Tests For System Roles #7338

Merged

Conversation

hahmadia
Copy link
Contributor

@hahmadia hahmadia commented Jan 18, 2021

Summary

Write the start unit test for System Roles and a unit test for https://mattermost.atlassian.net/browse/MM-31403

Ticket Link

https://mattermost.atlassian.net/browse/MM-31438

expect(wrapper).toMatchSnapshot();
});

test('ensure that when you change a prop and component is re-rendered, SystemRolePermission is not being deleted due to isLicensedForCloud being false (test for bug MM-31403)', () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@sbishel This is unit test for https://mattermost.atlassian.net/browse/MM-31403 which we discussed about writing

@hahmadia hahmadia added 2: Dev Review Requires review by a core commiter 3: QA Review Requires review by a QA tester labels Jan 18, 2021
Copy link
Member

@sbishel sbishel left a comment

Choose a reason for hiding this comment

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

Just a couple typos - including this file name.

add_useres_to_role_modal.test.tsx

@BenCookie95
Copy link
Contributor

Looks good apart from the typos that Scott pointed out!

@hahmadia hahmadia requested a review from sbishel January 19, 2021 14:35
@hahmadia
Copy link
Contributor Author

/update-branch

@hahmadia hahmadia removed the 2: Dev Review Requires review by a core commiter label Jan 21, 2021
@hahmadia
Copy link
Contributor Author

No code change @furqanmlk . Just ensure test run fine and we should be ok. Thanks

@hahmadia hahmadia removed the request for review from furqanmlk January 21, 2021 14:46
@hahmadia hahmadia added 4: Reviews Complete All reviewers have approved the pull request and removed 3: QA Review Requires review by a QA tester labels Jan 21, 2021
@hahmadia
Copy link
Contributor Author

Since these are purely test additions and no actual code change, there is no need for QA.

@hahmadia hahmadia merged commit b681e36 into mattermost:master Jan 21, 2021
@hahmadia hahmadia deleted the MM-31438-WriteUnitTestsSystemRoles branch January 21, 2021 14:47
@amyblais amyblais added the Changelog/Not Needed Does not require a changelog entry label Jan 21, 2021
@amyblais amyblais added the Docs/Not Needed Does not require documentation label Jan 21, 2021
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
5 participants