Skip to content

Commit 0faaaeb

Browse files
authored
test: fix strict mode violation flake in OC manual selection queue test (RocketChat#41370)
1 parent d371c06 commit 0faaaeb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

apps/meteor/tests/e2e/omnichannel/omnichannel-manual-selection.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ test.describe('OC - Manual Selection', () => {
9292
});
9393

9494
await test.step('expect chat to be back in queue', async () => {
95+
// the returning agent can transiently see the room twice (queued inquiry + not-yet-removed subscription)
96+
await expect(poOmnichannel.sidebar.getSidebarItemByName(room.fname)).toHaveCount(1);
9597
await expect(poOmnichannel.sidebar.getSidebarItemByName(room.fname)).toBeVisible();
9698
await expect(agentB.poHomeOmnichannel.sidebar.getSidebarItemByName(room.fname)).toBeVisible();
9799

0 commit comments

Comments
 (0)