Skip to content

IMT-180 Optimize batch_actions system spec#375

Merged
sensei100 merged 2 commits intomainfrom
IMT-180-batch-actions
May 7, 2026
Merged

IMT-180 Optimize batch_actions system spec#375
sensei100 merged 2 commits intomainfrom
IMT-180-batch-actions

Conversation

@nomadicoder
Copy link
Copy Markdown
Contributor

  • Tighten setup and example scope
  • Reduce eager test setup by converting shared fixtures from let! to lazy let
  • Remove unused factory setup from the spec
  • Scope record creation to the examples that actually need assets, statuses, and collections
  • Replace repeated inline selection-change JavaScript with a shared helper
  • Centralize page setup in a helper that waits for the batch-actions Stimulus controller
  • Eliminate fixed sleep calls in favor of condition-based assertions
  • Run the initial hidden-button example without JS via rack_test to avoid unnecessary browser overhead
  • Keep the change scoped to spec/system/batch_actions_spec.rb

- Tighten setup and example scope
- reduce eager test setup by converting shared fixtures from `let!` to lazy `let`
- remove unused factory setup from the spec
- scope record creation to the examples that actually need assets, statuses, and collections
- replace repeated inline selection-change JavaScript with a shared helper
- centralize page setup in a helper that waits for the batch-actions Stimulus controller
- eliminate fixed `sleep` calls in favor of condition-based assertions
- run the initial hidden-button example without JS via `rack_test` to avoid unnecessary browser overhead
- keep the change scoped to `spec/system/batch_actions_spec.rb`
@nomadicoder nomadicoder changed the title Optimize batch_actions system spec IMT-180 Optimize batch_actions system spec May 6, 2026
@nomadicoder nomadicoder marked this pull request as ready for review May 6, 2026 21:37
Comment thread spec/system/batch_actions_spec.rb
Copy link
Copy Markdown
Contributor

@sensei100 sensei100 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer that we keep our JS tests driven by cuprite.

@nomadicoder nomadicoder requested a review from sensei100 May 7, 2026 17:22
@sensei100 sensei100 merged commit d8e4b52 into main May 7, 2026
5 checks passed
@sensei100 sensei100 deleted the IMT-180-batch-actions branch May 7, 2026 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants