From 0a9b18299a620b53a1455142373ae4d4ab1589cd Mon Sep 17 00:00:00 2001 From: Thomas von Deyen Date: Fri, 18 Oct 2024 21:22:37 +0200 Subject: [PATCH] Dismiss toast component later in test env We need more time to make checks of flash notices in admin tests. --- admin/app/components/solidus_admin/ui/toast/component.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/app/components/solidus_admin/ui/toast/component.html.erb b/admin/app/components/solidus_admin/ui/toast/component.html.erb index 4cca3b3b03e..6c382e18292 100644 --- a/admin/app/components/solidus_admin/ui/toast/component.html.erb +++ b/admin/app/components/solidus_admin/ui/toast/component.html.erb @@ -8,7 +8,7 @@ " data-controller="<%= stimulus_id %>" data-<%= stimulus_id %>-animation-class="translate-y-full opacity-0" - data-<%= stimulus_id %>-transition-value="500" + data-<%= stimulus_id %>-transition-value="<%= Rails.env.test? ? 1000 : 500 %>" role="dialog" aria-label="<%= t(".#{@scheme}_label") %>" aria-live="polite"