Skip to content

Picklists should be filterable + regression testing#5397

Closed
jonny5 wants to merge 5 commits into
rubyforgood:mainfrom
jonny5:jk-4985
Closed

Picklists should be filterable + regression testing#5397
jonny5 wants to merge 5 commits into
rubyforgood:mainfrom
jonny5:jk-4985

Conversation

@jonny5

@jonny5 jonny5 commented Sep 13, 2025

Copy link
Copy Markdown
Collaborator

Continuation of #5148 (see that PR for full description/discussion)

Resolves #4985

Description

  • Additional work in this PR is to add a regression test for Picklist PDF

joepaolicelli and others added 5 commits September 13, 2025 13:28
- Generate the pdf and add to fixture
- Rename content in PDFComparisonTestFactory to be more domain specific
- Add compare_pdf to spec to compare the file to the
@jonny5 jonny5 changed the title Jk 4985 Picklists should be filterable + regression testing Sep 13, 2025
end

def self.render_pdf_at_year_end(organization, distribution)
def self.render_distribution_pdf_at_year_end(organization, distribution)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I resisted refactoring this class too much and just renamed the relevant places to scope to distribution/picklist

create_distribution_comparison_pdf(storage_creation, :create_profile_with_incomplete_address, file_paths.expected_incomplete_address_file_path, :delivery)
create_distribution_comparison_pdf(storage_creation, :create_profile_no_contact_with_program_address, file_paths.expected_no_contact_file_path, :delivery)

create_picklist_comparison_pdf(storage_creation, :create_partner_with_quota, :create_profile_with_pickup_person, file_paths.expected_picklist_file_path)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Added one PDF with relevant header data, I didn't see so much conditionality in the pdf that it would vary greatly

@jonny5 jonny5 closed this Sep 13, 2025
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.

Picklists should be filterable

2 participants