Skip to content

Commit

Permalink
fix/update failed E2E tests (mattermost#7430)
Browse files Browse the repository at this point in the history
  • Loading branch information
saturninoabril committed Feb 2, 2021
1 parent 6f644c3 commit bfe4909
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,9 @@ describe('Account Settings -> General -> Email', () => {
cy.get('#confirmEmail').should('be.visible').type(`user-${randomId}@example.com`);
cy.get('#currentPassword').should('be.visible').type(testUser.password);

// # Save the settings
// # Save the settings and close
cy.get('#saveSetting').click().wait(TIMEOUTS.HALF_SEC);
cy.uiClose();

// * Verify the announcement bar
cy.get('.announcement-bar').should('be.visible').should('contain.text', 'Check your email inbox to verify the address.');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ describe('System Console - Enterprise', () => {
url: 'admin_console/authentication/saml',
},
{
header: 'OAuth 2.0',
sidebar: 'OAuth 2.0',
url: 'admin_console/authentication/oauth',
header: 'OpenID Connect',
sidebar: 'OpenID Connect',
url: 'admin_console/authentication/openid',
},
{
header: 'Guest Access (Beta)',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ describe('System Console - Authentication', () => {
},
{
section: 'Authentication',
header: 'OAuth 2.0',
sidebar: 'OAuth 2.0',
url: 'admin_console/authentication/oauth',
header: 'OpenID Connect',
sidebar: 'OpenID Connect',
url: 'admin_console/authentication/openid',
},
{
section: 'Authentication',
Expand Down
7 changes: 1 addition & 6 deletions e2e/cypress/integration/search/clear_input_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ describe('Search', () => {
});

it('QuickInput clear X', () => {
// # Wait for the page to be completely loaded
cy.wait(TIMEOUTS.FIVE_SEC);

// * X should not be visible on empty input
cy.get('#searchFormContainer').find('.input-clear-x').should('not.be.visible');

Expand Down Expand Up @@ -56,9 +53,7 @@ describe('Search', () => {
cy.get('@searchInput').click().wait(TIMEOUTS.HALF_SEC).type(searchText);

// # Click on the pinned post button from the header
cy.get('#channel-header').within(() => {
cy.findByLabelText('Pin Icon').should('be.visible').and('exist').click();
});
cy.findByRole('button', {name: 'Pinned posts'}).should('be.visible').click();

// * Verify the pinned post RHS is open
cy.get('#sidebar-right').should('be.visible').and('contain', 'Pinned Posts');
Expand Down

0 comments on commit bfe4909

Please sign in to comment.