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

test: add autofill cypress test #4607

Merged
merged 23 commits into from
Jan 31, 2025
Merged

test: add autofill cypress test #4607

merged 23 commits into from
Jan 31, 2025

Conversation

adriencyberspace
Copy link
Collaborator

@adriencyberspace adriencyberspace commented Jan 23, 2025

This PR addresses #3385

  • Addresses the issue in full
  • Addresses only certain aspects of the issue

Description

This PR:

  • Adds an autofill test run to the "Submit" test in submit-application.spec.ts, first applying to Elm Village then applying with autofill to Blue Sky apartments -- the idea here is that it's most likely a user would autofill a different application than the one they initially applied to
  • Removes the minimal application test for Blue Sky Apartments
  • Edits the submitApplication function and the necessary step functions in command.js to take in an autofill boolean arg (if autofill, we skip filling out most fields)
  • Adds mockData autofillBlueSkyApplication, reasons:
    • To fill out fields in Blue Sky that are not in Elm Village
    • To fill out fields removed by Autofill Cleaner
    • Because submitApplication needs this mockData to compare against in the summary step

How Can This Be Tested/Reviewed?

Run yarn test in sites/public and watch the "Submit" test from submit-appication.spec.ts

Author Checklist:

  • Added QA notes to the issue with applicable URLs
  • Reviewed in a desktop view
  • Reviewed in a mobile view
  • Reviewed considering accessibility
  • Added tests covering the changes
  • Made corresponding changes to the documentation
  • Ran yarn generate:client and/or created a migration when required

Review Process:

  • Read and understand the issue
  • Ensure the author has added QA notes
  • Review the code itself from a style point of view
  • Pull the changes down locally and test that the acceptance criteria is met
  • Either (1) explicitly ask a clarifying question, (2) request changes, or (3) approve the PR, even if there are very small remaining changes, if you don't need to re-review after the updates

@adriencyberspace adriencyberspace changed the title 3385/cypress autofill test test: add autofill cypress test Jan 23, 2025
Copy link

netlify bot commented Jan 23, 2025

Deploy Preview for partners-bloom-dev ready!

Name Link
🔨 Latest commit 43099d4
🔍 Latest deploy log https://app.netlify.com/sites/partners-bloom-dev/deploys/6792bed3e7be4100089de10f
😎 Deploy Preview https://deploy-preview-4607--partners-bloom-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Jan 23, 2025

Deploy Preview for bloom-exygy-dev ready!

Name Link
🔨 Latest commit 43099d4
🔍 Latest deploy log https://app.netlify.com/sites/bloom-exygy-dev/deploys/6792bed3e36f620008fc457f
😎 Deploy Preview https://deploy-preview-4607--bloom-exygy-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Jan 23, 2025

Deploy Preview for partners-bloom-dev ready!

Name Link
🔨 Latest commit 28c4e86
🔍 Latest deploy log https://app.netlify.com/sites/partners-bloom-dev/deploys/679d01175280ba000855d9eb
😎 Deploy Preview https://deploy-preview-4607--partners-bloom-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Jan 23, 2025

Deploy Preview for bloom-exygy-dev ready!

Name Link
🔨 Latest commit 28c4e86
🔍 Latest deploy log https://app.netlify.com/sites/bloom-exygy-dev/deploys/679d01172ef6a00008321d37
😎 Deploy Preview https://deploy-preview-4607--bloom-exygy-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@adriencyberspace adriencyberspace added the 1 review needed Requires 1 more review before ready to merge label Jan 28, 2025
@emilyjablonski
Copy link
Collaborator

emilyjablonski commented Jan 29, 2025

Heya @adriencyberspace ! Do you mind filling out the PR template description? With some background on the goal here and any technical choices you made if there's any relevant ones. It doesn't have to be long. The "how can we test this" section is more self-explanatory on this one.

@adriencyberspace
Copy link
Collaborator Author

@emilyjablonski oops! done

Copy link
Collaborator

@ludtkemorgan ludtkemorgan left a comment

Choose a reason for hiding this comment

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

For some reason the test keeps getting stuck locally for me on the blue sky application on the "Do you anticipate any changes in your household in the next 12 months, such as the number of people?" question. This test is passing in circleCI though so maybe it's something strange locally for me

sites/public/cypress/mockData/applicationData.ts Outdated Show resolved Hide resolved
sites/public/cypress/mockData/applicationData.ts Outdated Show resolved Hide resolved
@ludtkemorgan ludtkemorgan added ready to merge Should be applied when a PR has been reviewed and approved and removed 1 review needed Requires 1 more review before ready to merge labels Jan 31, 2025
@adriencyberspace adriencyberspace merged commit cf128ee into main Jan 31, 2025
20 checks passed
@adriencyberspace adriencyberspace deleted the 3385/cypress-autofill branch January 31, 2025 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Should be applied when a PR has been reviewed and approved
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants