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

Prod test fixes #7918

Merged
merged 2 commits into from
Apr 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ describe('Incoming webhook', () => {
cy.postIncomingWebhook({url: incomingWebhook.url, data: payload});

// # Click test channel on sidebar
cy.get(`#sidebarItem_${testChannel.name}`).should('be.visible').click();
cy.get(`#sidebarItem_${testChannel.name}`).should('be.visible').click({force: true});

// # Wait for the webhook message to get posted
cy.waitUntil(() => cy.getLastPost().then((el) => {
Expand All @@ -82,7 +82,7 @@ describe('Incoming webhook', () => {
cy.postIncomingWebhook({url: incomingWebhook.url, data: payload});

// # Click test channel on sidebar
cy.get(`#sidebarItem_${testChannel.name}`).should('be.visible').click();
cy.get(`#sidebarItem_${testChannel.name}`).should('be.visible').click({force: true});

// # Wait for the webhook message to get posted
cy.waitUntil(() => cy.getLastPost().then((el) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ describe('Incoming webhook', () => {

function switchToChannel(teamName, channelName) {
cy.visit(`/${teamName}/channels/town-square`);
cy.get(`#sidebarItem_${channelName}`, {timeout: TIMEOUTS.ONE_MIN}).should('be.visible').click();
cy.get(`#sidebarItem_${channelName}`, {timeout: TIMEOUTS.ONE_MIN}).should('be.visible').click({force: true});
}

function editIncomingWebhook(incomingWebhookId, teamName, lockToChannel) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ describe('Incoming webhook', () => {
cy.postIncomingWebhook({url: incomingWebhook.url, data: payload});

cy.get(`#sidebarItem_${testChannel.name}`).find('#unreadMentions').should('have.text', '1');
cy.get(`#sidebarItem_${testChannel.name}`).click();
cy.get(`#sidebarItem_${testChannel.name}`).click({force: true});

cy.getLastPost().within(() => {
cy.get('.attachment__thumb-pretext').should('contain', id);
Expand Down Expand Up @@ -209,7 +209,7 @@ describe('Incoming webhook', () => {
cy.postIncomingWebhook({url: incomingWebhook.url, data: payload});

cy.get(`#sidebarItem_${testChannel.name}`).find('#unreadMentions').should('have.text', '1');
cy.get(`#sidebarItem_${testChannel.name}`).click();
cy.get(`#sidebarItem_${testChannel.name}`).click({force: true});

cy.getLastPost().within(() => {
cy.get('.attachment__thumb-pretext').should('contain', id);
Expand Down
2 changes: 2 additions & 0 deletions e2e/cypress/integration/messaging/message_reply_gm_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
// Group: @messaging

import {getRandomId} from '../../utils';
import * as TIMEOUTS from '../../fixtures/timeouts';

describe('Reply in existing GM', () => {
let testUser;
Expand Down Expand Up @@ -69,6 +70,7 @@ describe('Reply in existing GM', () => {
cy.postMessageReplyInRHS(replyMessage);
cy.getLastPostId().then((replyId) => {
// * Verify that the reply is in the RHS with matching text
cy.wait(TIMEOUTS.TWO_SEC);
cy.get(`#rhsPostMessageText_${replyId}`).should('be.visible').and('have.text', replyMessage);

// * Verify that the reply is in the center channel with matching text
Expand Down