From c5358b13035dd9ea76e18ca50d79ab4ca89eff6c Mon Sep 17 00:00:00 2001 From: filipefurtad0 Date: Tue, 30 May 2023 10:02:44 +0100 Subject: [PATCH] Changes date through keystrokes; removes Retry option --- spec/system/admin/order_cycles/simple_spec.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/spec/system/admin/order_cycles/simple_spec.rb b/spec/system/admin/order_cycles/simple_spec.rb index 7a3e5d2e0a..c2d71b9561 100644 --- a/spec/system/admin/order_cycles/simple_spec.rb +++ b/spec/system/admin/order_cycles/simple_spec.rb @@ -751,15 +751,13 @@ describe ' end it "modify the minute of a order cycle with the keyboard, "\ - "check that the modifications are taken into account", - retry: 3 do + "check that the modifications are taken into account" do order_cycle = create(:simple_order_cycle, name: "Translusent Berries") login_as_admin visit admin_order_cycles_path find("#oc#{order_cycle.id}_orders_close_at").click - datetime = Time.zone.at(Time.zone.local(2040, 10, 17, 0o6, 0o0, 0o0)) input = find(".flatpickr-calendar.open .flatpickr-minute") - input.send_keys datetime.strftime("%M").to_s.strip + input.send_keys :up input.send_keys :enter within "#save-bar" do expect(page).to have_content "You have unsaved changes"