Add test for events controller

This commit is contained in:
Kevin McConnell
2025-01-28 17:40:03 +00:00
parent 13080a5c36
commit 5b1a774b52
@@ -0,0 +1,25 @@
require "test_helper"
class EventsControllerTest < ActionDispatch::IntegrationTest
setup do
sign_in_as :kevin
end
test "index" do
get events_url
assert_select "div.event--cluster[style='grid-area: 9/1']" do
assert_select "strong", text: "Layout is broken"
end
end
test "index with a specific timezone" do
cookies[:timezone] = "America/New_York"
get events_url
assert_select "div.event--cluster[style='grid-area: 14/1']" do
assert_select "strong", text: "Layout is broken"
end
end
end