Skip to content

Commit

Permalink
Mm 27207 e2e archived channels i 2 (mattermost#6362)
Browse files Browse the repository at this point in the history
Automatic Merge
  • Loading branch information
Willyfrog committed Sep 16, 2020
1 parent 369b923 commit c79366d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions e2e/cypress/integration/channel/archived_channels_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,21 @@ describe('Leave an archived channel', () => {
// * there should be public channels as well
cy.get('#suggestionList').find('.icon-globe').should('be.visible');
});
it('MM-T1675 CTRL/CMD+K list private archived channels you are a member of', () => {
cy.visit(`/${testTeam.name}/channels/off-topic`);

// # Select CTRL/⌘+k) to open the channel switcher
cy.typeCmdOrCtrl().type('K', {release: true});

// # Start typing the name of a private channel on this team that has been archived which the test user belongs to
cy.get('#quickSwitchInput').type('archived-');

// * Suggestion list should be visible
cy.get('#suggestionList').should('be.visible');

// * there should be public channels as well
cy.get('#suggestionList').find('.icon-archive-outline').should('be.visible');
});
});

function createArchivedChannel(channelOptions, messages, memberUsernames) {
Expand Down

0 comments on commit c79366d

Please sign in to comment.