Skip to content

Conversation

@diti0-dot
Copy link
Contributor

What is the goal of this PR and why is this important?

Adds system tests for workshop idea submission flow. Tests form access, submission, and cancellation.

How did you approach the change?

Followed existing test patterns using FactoryBot for data.

Anything else to add?

First time writing tests - feedback welcome! Happy New Year!🎉🥳

describe "Navigate to Workshop Idea page" do
context "When Facilitator is logged in" do
before do
create(:windows_type, :adult)
Copy link
Collaborator

Choose a reason for hiding this comment

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

@diti0-dot we used to have to do this bc of a callback dependency, but we've removed that, so your tests should still pass even if you remove these create(:windows_type) statements

Copy link
Collaborator

@maebeale maebeale left a comment

Choose a reason for hiding this comment

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

This is great @diti0-dot !!!

It's probably worth a follow-up in another PR to add some additional tests for the non-happy-path that ensure the required fields show validation errors when missing (or when wrong file type in the case of the attachments).

@maebeale maebeale merged commit f48d9fc into rubyforgood:main Jan 5, 2026
3 checks passed
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