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

[e2e] [Complete user profile - unassociated] Ensure first name / last name have char limits #971

Merged
merged 5 commits into from
Sep 30, 2024

Conversation

tanner-ricks
Copy link
Contributor

Characters limits and unicode character input tolerance need to be validated in an e2e test.

Changes

  • Added unicodeConstants.ts file so that special Unicode Constants have somewhere to go.
  • Updated NonAssociatedUserProfile.spec.ts with a new test for character limit validation

How to test this PR

  1. Pull the branch
  2. Run the e2e tests and verify that the 'Complete User Profile with Bad Unicode -- No Associations -- process' test passes

Copy link
Contributor

@billhimmelsbach billhimmelsbach left a comment

Choose a reason for hiding this comment

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

Looking good!

Could we make a ticket for future work, and then link it here in the code so we don't lose track of it?

I could see in that ticket:

  • adding max lengths to inputs in coordination with the backend team (after the DevChat on Monday)
  • a util function that checks a given input field to see if it passes the check
  • using that util function to check our existing inputs

Future work:

  • right now first name and last name restrict just based on maxLength, but we could make future tests to check that trying to submit data with restricted char sets (after some discussion) throws an error as well

e2e/utils/unicodeConstants.ts Show resolved Hide resolved
Copy link
Contributor

@billhimmelsbach billhimmelsbach left a comment

Choose a reason for hiding this comment

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

Looks great @tanner-ricks! Thanks for adding the TODO comment. Looking forward to chatting about this in DevChat!

A great first PR of many!

341831917-3d0c4c2f-1b58-4686-9f86-8ee1af44a441

@guffee23
Copy link

200-ezgif com-webp-to-gif-converter

@jcadam14
Copy link

giphy-ezgif com-webp-to-gif-converter

Copy link
Contributor

@billhimmelsbach billhimmelsbach left a comment

Choose a reason for hiding this comment

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

Giving you the approval, but I'm hoping some more congrats gifs are coming @tanner-ricks! 🎉

Welcome to the team!

@shindigira
Copy link
Contributor

ezgif-2-af785c2b72

@ojbravo
Copy link
Collaborator

ojbravo commented Sep 30, 2024

Nice work!!!
launch-ezgif com-webp-to-gif-converter

@tanner-ricks tanner-ricks merged commit c6f68dc into main Sep 30, 2024
4 checks passed
@tanner-ricks tanner-ricks deleted the 970-e2e-complete-user-profile-ensure-char-limits branch September 30, 2024 19:50
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.

[e2e] [Complete user profile - unassociated] Ensure first name / last name have char limits
6 participants