Repository navigation
Move the rooms and time slots controller specs into system specs - #1301
Merged
Merged
Conversation
Both files tested turbo_stream destroy and update requests directly. The same actions now run from the schedule pages as an organizer: - spec/system/staff/rooms_spec.rb (new): removing a room from the rooms page takes its row away and deletes it - spec/system/staff/time_slots_spec.rb: removing a time slot, moving one to another day through the edit dialog, and scheduling a program session into one through the edit dialog Co-Authored-By: Claude Fable 5.1 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two small schedule-area controller specs in one PR. Both tested turbo_stream destroy and update requests directly; the same actions now run from the schedule pages as an organizer.
spec/system/staff/rooms_spec.rb: removing a room from the rooms page takes its row away and deletes ittime_slots_spec: "removes it"time_slots_spec: "moves it to another day" through the edit dialogtime_slots_spec: "schedules a program session into it" through the edit dialogThe edited slot uses round times (10:00 to 11:00) so the dialog's five-minute time selects can show its current values; the factory default of 10:41 is not an option and would make the form invalid.
Test
Full suite locally: 695 examples, 0 failures.
🤖 Generated with Claude Code