Skip to content

Commit

Permalink
change external_events_spec
Browse files Browse the repository at this point in the history
  • Loading branch information
ElviaBth committed May 13, 2024
1 parent 78f8ef3 commit f0f8ae7
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions spec/system/admin/external_events_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,12 @@
end
end


it "create a new external event" do
start_time = Time.current
end_time = 2.days.from_now

fill_in "external_event[start_at]", with: start_time.strftime("%m/%d/%Y, %I:%M %p")
fill_in "external_event[end_at]", with: end_time.strftime("%m/%d/%Y, %I:%M %p")
fill_in "external_event[start_at]", with: start_time.strftime("%Y-%m-%dT%H:%M")
fill_in "external_event[end_at]", with: end_time.strftime("%Y-%m-%dT%H:%M")

within ".new_event" do
fill_in_i18n(
Expand All @@ -41,8 +40,6 @@
find("*[type=submit]").click
end

puts start_time.strftime("%m/%d/%Y, %I:%M %p")
puts end_time.strftime("%m/%d/%Y, %I:%M %p")
expect(page).to have_admin_callout("successfully")

within ".table-list" do
Expand Down

0 comments on commit f0f8ae7

Please sign in to comment.