Skip to content

Commit

Permalink
chore: Fix triggers flaky tests (#30530)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinSchoeler authored Oct 3, 2023
1 parent 3fd0bc4 commit 3bdcf92
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ test.describe.serial('Omnichannel Triggers', () => {

const { page } = await createAuxContext(browser, Users.user1, '/omnichannel/triggers');
agent = { page, poHomeOmnichannel: new HomeOmnichannel(page) };
await page.emulateMedia({ reducedMotion: 'reduce' });
});

test.beforeEach(async ({ page, api }) => {
Expand All @@ -39,6 +40,7 @@ test.describe.serial('Omnichannel Triggers', () => {
await Promise.all([
api.delete('/livechat/users/agent/user1'),
api.delete('/livechat/users/manager/user1'),
api.delete(`/livechat/triggers/${triggersName}`),
api.post('/settings/Livechat_clear_local_storage_when_chat_ended', { value: false }),
]);
await agent.page.close();
Expand Down
6 changes: 6 additions & 0 deletions packages/livechat/src/components/Modal/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ $modal-background-color: $bg-color-white;
line-height: 1.5;
}

@media (prefers-reduced-motion) {
.modal--animated {
animation: none;
}
}

@keyframes fadeInUp {
0% {
transform: translate3d(-50%, 100%, 0);
Expand Down

0 comments on commit 3bdcf92

Please sign in to comment.