Fix Flaky test failing on prod and in master branch (#31407)

Этот коммит содержится в:
yasser khan
2025-06-18 17:22:57 +05:30
коммит произвёл GitHub
родитель df1b278f62
Коммит b784074212
5 изменённых файлов: 7 добавлений и 2 удалений

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

@@ -40,7 +40,7 @@ describe('Leave an archived channel', () => {
});
});
it.skip('MM-T1704 Archived channels appear in channel switcher after refresh', () => {
it('MM-T1704 Archived channels appear in channel switcher after refresh', () => {
// # Archive the channel
cy.apiLogin(testUser);
cy.uiArchiveChannel();

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

@@ -209,6 +209,7 @@ describe('LDAP guest', () => {
// # Save settings
cy.get('#saveSetting').should('be.enabled').click();
cy.get('#genericModalLabel > span').should('be.visible').and('have.text', 'Save and remove 1 user?');
// # Accept confirmation modal
cy.get('#confirmModalButton').should('be.visible').click();
@@ -227,6 +228,7 @@ describe('LDAP guest', () => {
cy.uiOpenTeamMenu('Invite people');
cy.wait(TIMEOUTS.TWO_SEC);
cy.get('#invitation_modal_title').should('be.visible');
// # Option to invite guest should not be visible
cy.findByTestId('inviteGuestLink').should('not.exist');

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

@@ -44,6 +44,8 @@ describe('Keyboard Shortcuts', () => {
// # Press Cmd/Ctrl-K to open "Switch Channels" modal
cy.uiGetPostTextBox().cmdOrCtrlShortcut('K');
cy.waitUntil(() => cy.findAllByTestId('suggestionList').should('be.visible'));
// # Click on the GM link to go to channel
cy.get('.status--group').click();

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

@@ -28,7 +28,7 @@ describe('Notifications', () => {
});
});
it.skip('MM-T562 New message bar - Message posted while scrolled up in same channel', () => {
it('MM-T562 New message bar - Message posted while scrolled up in same channel', () => {
// # Post 30 random messages from the 'otherUser' account in off-topic
Cypress._.times(numberOfPosts, (num) => {
cy.postMessageAs({sender: otherUser, message: `${num} ${getRandomId()}`, channelId: offTopicChannelId});

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

@@ -35,6 +35,7 @@ export default class ThreadsPage {
}
async toNotHaveThreadSelected() {
await this.noThreadSelected.waitFor({state: 'visible'});
await expect(this.noThreadSelected).toBeVisible();
}