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

E2E: Fix failing tests on account_settings specs #3029

Merged
merged 1 commit into from
Jun 28, 2019
Merged

E2E: Fix failing tests on account_settings specs #3029

merged 1 commit into from
Jun 28, 2019

Conversation

saturninoabril
Copy link
Member

Summary

Fix failing tests on account_settings specs

Ticket Link

none

@saturninoabril saturninoabril added the 2: Dev Review Requires review by a core commiter label Jun 28, 2019
@@ -18,7 +18,7 @@ describe('Account Settings > Display > Message Display', () => {

after(() => {
// Revert setting so it does not impact other tests
cy.changeMessageDisplaySetting('STANDARD');
cy.apiSaveMessageDisplayPreference('clean');
Copy link
Member Author

Choose a reason for hiding this comment

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

Just use the API to reset preference.

@@ -117,9 +117,6 @@ describe('AS14318 Theme Colors - Color Picker', () => {

describe('Custom - Sidebar styles target output change', () => {
it('should take effect each custom color in Channel View', () => {
// * Check Sidebar Header Text color change after saving
cy.get('#accountSettingsModalLabel').should('have.css', 'color', 'rgb(129, 65, 65)');
Copy link
Member Author

Choose a reason for hiding this comment

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

The preceding test already tested this. It's failing since the preceding also closes the account settings modal.

@@ -14,7 +14,4 @@ import 'cypress-plugin-retries';
// Add login cookies to whitelist to preserve it
beforeEach(() => {
Cypress.Cookies.preserveOnce('MMAUTHTOKEN', 'MMUSERID', 'MMCSRF');

cy.apiUpdateConfig({TeamSettings: {MaxUsersPerTeam: 500}});
Copy link
Member Author

Choose a reason for hiding this comment

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

This is causing to conflict whenever the spec file is logging in as another user since cy.apiUpdateConfig logged in as sysadmin.

@thekiiingbob thekiiingbob merged commit 545c1c6 into mattermost:master Jun 28, 2019
@saturninoabril saturninoabril deleted the fix-e2e-4 branch June 28, 2019 12:59
@amyblais amyblais added Changelog/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation and removed 2: Dev Review Requires review by a core commiter labels Jun 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Changelog/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation
Projects
None yet
4 participants