Skip to content

Commit

Permalink
Fix renamed time attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverguenther committed Apr 3, 2024
1 parent 8cca210 commit bf1017b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion modules/meeting/spec/features/meetings_copy_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
start_of_meeting = start_time.strftime(twelve_hour_format)
end_of_meeting = (start_time + meeting.duration.hours).strftime(twelve_hour_format)

"Time: #{date} #{start_of_meeting} - #{end_of_meeting} (GMT+00:00) UTC"
"Start time: #{date} #{start_of_meeting} - #{end_of_meeting} (GMT+00:00) UTC"
end

before do
Expand Down
18 changes: 9 additions & 9 deletions modules/meeting/spec/features/meetings_index_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -274,11 +274,11 @@ def setup_meeting_involvement
other_project_meeting)
end

aggregate_failures "Sorting by Time" do
meetings_page.click_to_sort_by("Time")
aggregate_failures "Sorting by Start time" do
meetings_page.click_to_sort_by("Start time")
meetings_page.expect_meetings_listed_in_order(meeting,
other_project_meeting)
meetings_page.click_to_sort_by("Time")
meetings_page.click_to_sort_by("Start time")
meetings_page.expect_meetings_listed_in_order(other_project_meeting,
meeting)
end
Expand Down Expand Up @@ -400,20 +400,20 @@ def setup_meeting_involvement
meeting)
end

aggregate_failures "Sorting by Time" do
meetings_page.click_to_sort_by("Time")
aggregate_failures "Sorting by Start time" do
meetings_page.click_to_sort_by("Start time")
meetings_page.expect_meetings_listed_in_order(meeting,
tomorrows_meeting)
meetings_page.click_to_sort_by("Time")
meetings_page.click_to_sort_by("Start time")
meetings_page.expect_meetings_listed_in_order(tomorrows_meeting,
meeting)
end

aggregate_failures "Sorting by Time" do
meetings_page.click_to_sort_by("Time")
aggregate_failures "Sorting by Start time" do
meetings_page.click_to_sort_by("Start time")
meetings_page.expect_meetings_listed_in_order(meeting,
tomorrows_meeting)
meetings_page.click_to_sort_by("Time")
meetings_page.click_to_sort_by("Start time")
meetings_page.expect_meetings_listed_in_order(tomorrows_meeting,
meeting)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@

show_page.add_agenda_item do
fill_in "Title", with: "My agenda item"
fill_in "Duration in minutes", with: "25"
fill_in "Duration (min)", with: "25"
end

show_page.expect_agenda_item title: "My agenda item"
Expand Down
2 changes: 1 addition & 1 deletion modules/meeting/spec/support/pages/meetings/show.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def expect_uninvited(*users)

def expect_date_time(expected)
expect(page)
.to have_content("Time: #{expected}")
.to have_content("Start time: #{expected}")
end

def expect_link_to_location(location)
Expand Down

0 comments on commit bf1017b

Please sign in to comment.