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

Commit

Permalink
fix failing tests on account_settings specs (#3029)
Browse files Browse the repository at this point in the history
  • Loading branch information
saturninoabril authored and Bob Lubecker committed Jun 28, 2019
1 parent 3dcadd6 commit 545c1c6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});

it('M14283 Compact view: Line breaks remain intact after editing', () => {
Expand All @@ -36,10 +36,10 @@ describe('Account Settings > Display > Message Display', () => {
cy.get(postMessageTextId).should('have.html', '<p>First line</p>\n<p>Text after</p>');

// # click dot menu button
cy.clickPostDotMenu();
cy.clickPostDotMenu(postId);

// # click edit post
cy.get(`#edit_post_${postId}`).click();
cy.get(`#edit_post_${postId}`).should('be.visible').click();

// # Add ",edited" to the text
cy.get('#edit_textbox').type(',edited');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)');

// * Check Sidebar Unread Text
cy.get('.sidebar-item.unread-title').should('have.css', 'color', 'rgb(129, 65, 65)');

Expand Down
3 changes: 0 additions & 3 deletions cypress/support/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}});
});

0 comments on commit 545c1c6

Please sign in to comment.