diff --git a/test/controllers/events_controller_test.rb b/test/controllers/events_controller_test.rb index 06d7897a3..494fcc7e7 100644 --- a/test/controllers/events_controller_test.rb +++ b/test/controllers/events_controller_test.rb @@ -3,12 +3,14 @@ require "test_helper" class EventsControllerTest < ActionDispatch::IntegrationTest setup do sign_in_as :kevin + + events(:layout_assignment_jz).update!(created_at: Time.current.beginning_of_day + 8.hours) end test "index" do get events_url - assert_select "div.event__wrapper[style='grid-area: 9/1']" do + assert_select "div.event__wrapper[style='grid-area: 17/1']" do assert_select "strong", text: "Layout is broken" end end @@ -18,7 +20,7 @@ class EventsControllerTest < ActionDispatch::IntegrationTest get events_url - assert_select "div.event__wrapper[style='grid-area: 14/1']" do + assert_select "div.event__wrapper[style='grid-area: 22/1']" do assert_select "strong", text: "Layout is broken" end end