Skip to content

Commit

Permalink
Check for finishing loading
Browse files Browse the repository at this point in the history
  • Loading branch information
corrideat committed Oct 12, 2024
1 parent 61bf861 commit 2ce1c8c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -814,6 +814,9 @@ Cypress.Commands.add('giWaitUntilMessagesLoaded', (isGroupChannel = true) => {
})

Cypress.Commands.add('giSendMessage', (sender, message) => {
// The following `get` is to ensure the chatroom has finished loading (no
// spinner)
cy.get('.infinite-status-prompt .c-greetings .is-title-4').should('be.visible')
cy.getByDT('messageInputWrapper').within(() => {
cy.get('textarea').type(`{selectall}{del}${message}{enter}`, { force: true })
cy.get('textarea').should('be.empty')
Expand Down

0 comments on commit 2ce1c8c

Please sign in to comment.