Skip to content

Commit 8924fa5

Browse files
committed
Dismiss toast component later in test env
We need more time to make checks of flash notices in admin tests.
1 parent a7293f2 commit 8924fa5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

admin/app/components/solidus_admin/ui/toast/component.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"
99
data-controller="<%= stimulus_id %>"
1010
data-<%= stimulus_id %>-animation-class="translate-y-full opacity-0"
11-
data-<%= stimulus_id %>-transition-value="500"
11+
data-<%= stimulus_id %>-transition-value="<%= Rails.env.test? ? 1000 : 500 %>"
1212
role="dialog"
1313
aria-label="<%= t(".#{@scheme}_label") %>"
1414
aria-live="polite"

0 commit comments

Comments
 (0)