Skip to content

Commit

Permalink
another test
Browse files Browse the repository at this point in the history
  • Loading branch information
KevLehman committed May 13, 2024
1 parent ba6312c commit eafab32
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions apps/meteor/tests/e2e/omnichannel/omnichannel-units.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,23 @@ test.describe('OC - Manage Units', () => {
await expect(poOmnichannelUnits.inputMonitors).toHaveText(/user3/);
});

await test.step('expect unit to remove one of the two monitors', async () => {
await expect(poOmnichannelUnits.inputSearch).toBeVisible();
await poOmnichannelUnits.search(editedUnitName);
await expect(poOmnichannelUnits.findRowByName(editedUnitName)).toBeVisible();
await poOmnichannelUnits.findRowByName(editedUnitName).click();
await expect(poOmnichannelUnits.contextualBar).toBeVisible();
await poOmnichannelUnits.selectMonitor('user2');
await poOmnichannelUnits.btnSave.click();

await expect(poOmnichannelUnits.inputSearch).toBeVisible();
await poOmnichannelUnits.search(editedUnitName);
await expect(poOmnichannelUnits.findRowByName(editedUnitName)).toBeVisible();
await poOmnichannelUnits.findRowByName(editedUnitName).click();
await expect(poOmnichannelUnits.inputMonitors).toHaveText(/user3/);
await expect(poOmnichannelUnits.inputMonitors).not.toHaveText(/user2/);
});

await test.step('expect to delete unit', async () => {
await poOmnichannelUnits.findRowByName(editedUnitName).click();
await expect(poOmnichannelUnits.contextualBar).toBeVisible();
Expand Down

0 comments on commit eafab32

Please sign in to comment.