Skip to content
Snippets Groups Projects
Unverified Commit 6733d15c authored by Martin Schoeler's avatar Martin Schoeler Committed by GitHub
Browse files

test(Omnichannel): fix Livechat Appearance Flaky (#32181)

parent 19d9b0b8
No related branches found
No related tags found
No related merge requests found
......@@ -25,16 +25,16 @@ test.describe.serial('OC - Livechat Appearance', () => {
test('OC - Livechat Appearance - Hide system messages', async ({ page }) => {
await test.step('expect to have default values', async () => {
// 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.inputHideSystemMessages.locator('.rcx-icon--name-chevron-down').click();
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({ position: { x: 0, y: 0 } });
await poLivechatAppearance.inputHideSystemMessages.locator('.rcx-icon--name-chevron-up').click();
});
await test.step('expect to change values', async () => {
// 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.inputHideSystemMessages.locator('.rcx-icon--name-chevron-down').click();
await poLivechatAppearance.findHideSystemMessageOption('livechat_transfer_history').click();
await poLivechatAppearance.findHideSystemMessageOption('livechat-close').click();
await poLivechatAppearance.btnSave.click();
......@@ -43,7 +43,7 @@ test.describe.serial('OC - Livechat Appearance', () => {
await test.step('expect to have saved changes', async () => {
await page.reload();
// 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.inputHideSystemMessages.locator('.rcx-icon--name-chevron-down').click();
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');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment