Chore(cypress): Review and Fix tests failing on master (#26954)

Этот коммит содержится в:
yasserfaraazkhan
2024-05-06 15:48:19 +05:30
коммит произвёл GitHub
родитель a1ed780a86
Коммит 03c930daa0
42 изменённых файлов: 120 добавлений и 134 удалений

Просмотреть файл

@@ -141,7 +141,7 @@ function goToMessageDisplaySetting() {
// # Go to Settings modal - Display section - Message Display
cy.uiOpenSettingsModal('Display').within(() => {
cy.get('#displayButton').scrollIntoView().click();
cy.get('#message_displayEdit').should('be.visible');
cy.get('#message_displayEdit').scrollIntoView().should('be.visible');
cy.get('#message_displayEdit').click();
});
}

Просмотреть файл

@@ -38,7 +38,7 @@ describe('Settings > Display > Theme > Custom Theme Colors', () => {
cy.get('#centerChannelStyles').click({force: true}).wait(TIMEOUTS.ONE_HUNDRED_MILLIS);
// # Select custom code theme
cy.get('#codeThemeSelect').scrollIntoView().should('be.visible').select(theme.name);
cy.get('#codeThemeSelect').should('be.visible').scrollIntoView().select(theme.name);
// * Verify that the setting changes in the background?
verifyLastPostStyle(theme);

Просмотреть файл

@@ -36,10 +36,10 @@ function verifyMinDisplayView() {
cy.get('#clockTitle').should('be.visible', 'contain', 'Clock Display');
cy.get('#clockEdit').should('be.visible', 'contain', 'Edit');
cy.get('#name_formatTitle').should('be.visible', 'contain', 'Teammate Name Display');
cy.get('#name_formatTitle').scrollIntoView().should('be.visible', 'contain', 'Teammate Name Display');
cy.get('#name_formatEdit').should('be.visible', 'contain', 'Edit');
cy.get('#collapseTitle').should('be.visible', 'contain', 'Default appearance of image previews');
cy.get('#collapseTitle').scrollIntoView().should('be.visible', 'contain', 'Default appearance of image previews');
cy.get('#collapseEdit').should('be.visible', 'contain', 'Edit');
cy.get('#message_displayTitle').scrollIntoView().should('be.visible', 'contain', 'Message Display');