From 113881500e6de5e417f7cdce5bfa0485f51cb766 Mon Sep 17 00:00:00 2001 From: Marwin Hochfelsner <50826859+hlfan@users.noreply.github.com> Date: Wed, 24 Jun 2026 21:43:10 +0200 Subject: [PATCH] Reorder stubbing calls --- test/system/directions_test.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/system/directions_test.rb b/test/system/directions_test.rb index 5fd9cb899..170398f27 100644 --- a/test/system/directions_test.rb +++ b/test/system/directions_test.rb @@ -5,9 +5,9 @@ require "application_system_test_case" class DirectionsSystemTest < ApplicationSystemTestCase test "updates route output on mode change" do visit directions_path - stub_straight_routing(:start_instruction => "Start popup text") find_by_id("route_from").set("60 30").send_keys :enter + stub_straight_routing(:start_instruction => "Start popup text") find_by_id("route_to").set("61 31").send_keys :enter within "#sidebar" do @@ -23,10 +23,10 @@ class DirectionsSystemTest < ApplicationSystemTestCase test "swaps route endpoints on reverse button click" do visit directions_path - stub_straight_routing(:start_instruction => "Start popup text") - stub_disable_reverse_geocoding find_by_id("route_from").set("60 30").send_keys :enter + stub_straight_routing(:start_instruction => "Start popup text") + stub_disable_reverse_geocoding find_by_id("route_to").set("61 31").send_keys :enter click_on :class => "reverse_directions" @@ -42,9 +42,9 @@ class DirectionsSystemTest < ApplicationSystemTestCase test "removes popup on sidebar close" do visit directions_path - stub_straight_routing(:start_instruction => "Start popup text") find_by_id("route_from").set("60 30").send_keys :enter + stub_straight_routing(:start_instruction => "Start popup text") find_by_id("route_to").set("61 31").send_keys :enter within "#map" do -- 2.47.3