Skip to content

Commit

Permalink
Merge branch 'develop' into revert-32086-fix/api-login
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo authored Apr 9, 2024
2 parents 3535407 + 87ad98f commit 86e68b4
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions apps/meteor/tests/e2e/omnichannel/omnichannel-appearance.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,26 @@ test.describe.serial('OC - Livechat Appearance', () => {

test('OC - Livechat Appearance - Hide system messages', async ({ page }) => {
await test.step('expect to have default values', async () => {
await poLivechatAppearance.inputHideSystemMessages.click();
// Clicking at the edge of the element to prevent playwright from clicking a chip by mistake
await poLivechatAppearance.inputHideSystemMessages.click({ position: { x: 0, y: 0 } });
await expect(poLivechatAppearance.findHideSystemMessageOption('uj')).toHaveAttribute('aria-selected', 'true');
await expect(poLivechatAppearance.findHideSystemMessageOption('ul')).toHaveAttribute('aria-selected', 'true');
await expect(poLivechatAppearance.findHideSystemMessageOption('livechat-close')).toHaveAttribute('aria-selected', 'true');
await poLivechatAppearance.inputHideSystemMessages.click();
await poLivechatAppearance.inputHideSystemMessages.click({ position: { x: 0, y: 0 } });
});

await test.step('expect to change values', async () => {
await poLivechatAppearance.inputHideSystemMessages.click();
// Clicking at the edge of the element to prevent playwright from clicking a chip by mistake
await poLivechatAppearance.inputHideSystemMessages.click({ position: { x: 0, y: 0 } });
await poLivechatAppearance.findHideSystemMessageOption('livechat_transfer_history').click();
await poLivechatAppearance.findHideSystemMessageOption('livechat-close').click();
await poLivechatAppearance.btnSave.click();
});

await test.step('expect to have saved changes', async () => {
await page.reload();
await poLivechatAppearance.inputHideSystemMessages.click();
// Clicking at the edge of the element to prevent playwright from clicking a chip by mistake
await poLivechatAppearance.inputHideSystemMessages.click({ position: { x: 0, y: 0 } });
await expect(poLivechatAppearance.findHideSystemMessageOption('uj')).toHaveAttribute('aria-selected', 'true');
await expect(poLivechatAppearance.findHideSystemMessageOption('ul')).toHaveAttribute('aria-selected', 'true');
await expect(poLivechatAppearance.findHideSystemMessageOption('livechat_transfer_history')).toHaveAttribute('aria-selected', 'true');
Expand Down

0 comments on commit 86e68b4

Please sign in to comment.