Skip to content

Commit

Permalink
Add some extra test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
islathehut committed Apr 5, 2024
1 parent 1f82559 commit 9b0be80
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion packages/e2e-tests/src/tests/multipleClients.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,12 @@ describe('Multiple Clients', () => {
await sleep(5000)
const messageIds = await generalChannelUser1.sendMessage(users.user2.messages[0], users.user2.username)
await generalChannelUser1.verifyMessageSentStatus(messageIds, users.user2.username, false)

await generalChannelOwner.getMessageIdsByText(users.user2.messages[0], users.user2.username)
})

it('Owner sees the message the guest sent', async () => {
await generalChannelOwner.getMessageIdsByText(users.user2.messages[0], users.user2.username)
})
})

Expand Down Expand Up @@ -595,10 +601,14 @@ describe('Multiple Clients', () => {
await generalChannelOwner.verifyMessageSentStatus(messageIds, users.owner.username, false)
})

it('Owner sees the connection status element in general channel', async () => {
it("Owner doesn't see the connection status element in general channel", async () => {
const correctConnectionStatusElementPresence = await generalChannelOwner.waitForConnectionStatus(false)
expect(correctConnectionStatusElementPresence).toBe(true)
})

it('Guest sees the message the owner sent', async () => {
await generalChannelUser3.getMessageIdsByText(users.owner.messages[2], users.owner.username)
})
})
})
})

0 comments on commit 9b0be80

Please sign in to comment.