This repository was archived by the owner on Mar 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
[GH-21322] - Migrate /enterprise/guest_accounts Tests to TS #11327
Closed
Closed
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
e23ff31
fix types in prepartion for test TS migration
davidtaing 987899c
add explicit createPrivateChannel export
davidtaing 835501a
migrate /enterprise/guest_accounts tests to TS
davidtaing d947096
migrate guest_feature_spec to TS
davidtaing c9a60a5
Merge branch 'master' into GH-21322
davidtaing 8cdae27
fix: broken types from merge
davidtaing cbf6ba0
refactor: convert helpers to TS
davidtaing 53d5432
refactor: add types to e2e test variables
davidtaing 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
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
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
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
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
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 |
|---|---|---|
|
|
@@ -13,6 +13,9 @@ | |
| /** | ||
| * Note: This test requires Enterprise license to be uploaded | ||
| */ | ||
| import {Team} from '@mattermost/types/lib/teams'; | ||
| import {UserProfile} from '@mattermost/types/lib/users'; | ||
|
|
||
| import * as TIMEOUTS from '../../../fixtures/timeouts'; | ||
|
|
||
| function removeUserFromAllChannels(verifyAlert, user) { | ||
|
|
@@ -38,22 +41,19 @@ function removeUserFromAllChannels(verifyAlert, user) { | |
| } | ||
|
|
||
| describe('Guest Account - Guest User Removal Experience', () => { | ||
| let team1; | ||
| let team2; | ||
| let guest; | ||
| let team1: Team; | ||
| let team2: Team; | ||
| let guest: UserProfile; | ||
|
|
||
| before(() => { | ||
| // * Check if server has license for Guest Accounts | ||
| cy.apiRequireLicenseForFeature('GuestAccounts'); | ||
|
|
||
| cy.apiInitSetup().then(({team}) => { | ||
| team1 = team; | ||
|
|
||
| cy.apiInitSetup().then(({team: team1}) => { | ||
| // # Create new team and visit its URL | ||
| cy.apiCreateTeam('test-team2', 'Test Team2').then(({team: teamTwo}) => { | ||
| cy.apiCreateTeam('test-team2', 'Test Team2').then(({team: team2}) => { | ||
| cy.apiCreateUser().then(({user}) => { | ||
| guest = user; | ||
| team2 = teamTwo; | ||
|
Comment on lines
-49
to
-56
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Test failed due to this change. |
||
| cy.apiAddUserToTeam(team1.id, guest.id); | ||
| cy.apiAddUserToTeam(team2.id, guest.id).then(() => { | ||
| cy.apiLogin(guest); | ||
|
|
||
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
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.
Uh oh!
There was an error while loading. Please reload this page.