Skip to content

Commit

Permalink
debug w/screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
armandofox committed Jan 3, 2024
1 parent 1875e49 commit 79e10d0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions features/season_setup/add_house_seats.feature
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ Feature: designate house seats when adding performances
Then I should see "One performance was successfully added"
And the "Jan 1, 2010, 7pm" performance should have house seats "B1,B2"
When I visit the edit showdate page for Jan 1, 2010, 7pm
Then take a screenshot
Then the "House seats" field should contain "B1, B2"
4 changes: 4 additions & 0 deletions features/step_definitions/debugger_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
save_and_open_page
end

Then /take a screenshot/ do
save_screenshot
end

Then /show me a screenshot/ do
save_and_open_screenshot
end
Expand Down
1 change: 0 additions & 1 deletion features/step_definitions/reserved_seating_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
# assignment confirmation to fail.
allow_any_instance_of(Voucher).to receive(:assign_seat).and_return(nil)
end
save_screenshot
steps %Q{When I choose seats "#{seat_list}" for import customer "#{name}"}
save_screenshot
within(find_import_row_for name) { click_button "Confirm" }
Expand Down

0 comments on commit 79e10d0

Please sign in to comment.