Skip to content
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
2 changes: 2 additions & 0 deletions apps/meteor/tests/e2e/e2e-encryption.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -884,6 +884,8 @@ test.describe.serial('e2ee room setup', () => {

await page.goto('/home');

await page.waitForSelector('.main-content');

await expect(poHomeChannel.bannerSaveEncryptionPassword).toBeVisible();

const channelName = faker.string.uuid();
Expand Down
13 changes: 13 additions & 0 deletions apps/meteor/tests/e2e/omnichannel/omnichannel-agents.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,21 @@ test.describe.serial('OC - Manage Agents', () => {

await poOmnichannelAgents.btnEdit.click();
await poOmnichannelAgents.selectDepartment(department.data.name);
const reg = new RegExp(`/api/v1/method.call/${encodeURIComponent('livechat:saveAgentInfo')}`);
const response = page.waitForResponse(reg);
await poOmnichannelAgents.btnSave.click();

/**
* between saving and opening the agent info again it is necessary to
* wait for the agent to be saved, since after successfully saving
* the contextual bar is closed
* otherwise content will be closed even if the current one is not the editing one
*/

await response;

await expect(poOmnichannelAgents.editCtxBar).not.toBeVisible();

await test.step('expect the selected department is visible', async () => {
await poOmnichannelAgents.findRowByUsername('user1').click();

Expand Down
Loading