Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pdfjs #774

Merged
merged 15 commits into from
Oct 14, 2023
Merged

Pdfjs #774

merged 15 commits into from
Oct 14, 2023

Conversation

BryceStevenWilley
Copy link
Collaborator

@BryceStevenWilley BryceStevenWilley commented Oct 11, 2023

I added the ability to compare PDFs! It's currently one step, I expect the baseline PDF "something-in-sources.pdf" and the new PDF "downloaded.pdf" to be the same, but happy to add more, depending on what we think would be useful for folks.

Making this a draft to make sure the API is as we want it.

In this PR, I have:

  • Added tests for any new features or bug fixes (if relevant)
  • Added my changes to the CHANGELOG.md at the top, under the "Unreleased" section (still unsure what the final API will look like)
  • Ensured issues that this PR closes will be automatically closed

Links to any solved or related issues

Fix #25.

Any manual testing I have done to ensure my PR is working

Just added the automated tests.

lib/scope.js Outdated Show resolved Hide resolved
@BryceStevenWilley BryceStevenWilley marked this pull request as ready for review October 13, 2023 19:16
@BryceStevenWilley
Copy link
Collaborator Author

Ready for review, addressed all of the comments, and made slight cleanups to the findFiles function, but everything else remained the same!

Copy link
Collaborator

@plocket plocket left a comment

Choose a reason for hiding this comment

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

So psyched for this! A couple things to maybe change and a couple notes. I think the report changes are the main things and the others are dealer's choice. Sorry I didn't catch some of this before.

lib/scope.js Outdated Show resolved Hide resolved
lib/steps.js Show resolved Hide resolved
lib/scope.js Outdated Show resolved Hide resolved
lib/steps.js Show resolved Hide resolved
BryceStevenWilley and others added 3 commits October 14, 2023 15:04
Co-authored-by: plocket <52798256+plocket@users.noreply.github.com>
Co-authored-by: plocket <52798256+plocket@users.noreply.github.com>
Based on the existing accessibility code for checking all of the steps before
now.

Continues either if the PDF to compare couldn't be found (a developer error),
or if the PDFs are different, since it doesn't affect interview progression.

Also corrected a missed `scope.addToReport -> reports.addToReport` refactor.
Copy link
Collaborator

@plocket plocket left a comment

Choose a reason for hiding this comment

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

Great! Thanks for digging into this, it's a fantastic addition 🚀

@plocket
Copy link
Collaborator

plocket commented Oct 14, 2023

Add to the changelog if you have a mo

@BryceStevenWilley BryceStevenWilley merged commit e2e3ce0 into v5 Oct 14, 2023
2 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.

Develop the ability to compare pdfs to each other
2 participants