Skip to content

Commit

Permalink
test: disable animation in confirm-dialog and CRUD tests (#7824)
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan authored Sep 20, 2024
1 parent d930b7c commit 8a8707c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/confirm-dialog/test/not-animated-styles.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';

registerStyles(
'vaadin-dialog-overlay',
'vaadin-confirm-dialog-overlay',
css`
:host([opening]),
:host([closing]),
Expand Down
13 changes: 13 additions & 0 deletions packages/crud/test/not-animated-styles.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';

registerStyles(
'vaadin-crud-dialog-overlay',
css`
:host([opening]),
:host([closing]),
:host([opening]) [part='overlay'],
:host([closing]) [part='overlay'] {
animation: none !important;
}
`,
);
1 change: 1 addition & 0 deletions packages/crud/test/visual/lumo/crud.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { fixtureSync, nextRender } from '@vaadin/testing-helpers';
import { visualDiff } from '@web/test-runner-visual-regression';
import '../../not-animated-styles.js';
import '../../../theme/lumo/vaadin-crud.js';

describe('crud', () => {
Expand Down
1 change: 1 addition & 0 deletions packages/crud/test/visual/material/crud.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { fixtureSync, nextRender } from '@vaadin/testing-helpers';
import { visualDiff } from '@web/test-runner-visual-regression';
import '../../not-animated-styles.js';
import '../../../theme/material/vaadin-crud.js';

describe('crud', () => {
Expand Down

0 comments on commit 8a8707c

Please sign in to comment.