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

refactor: fix failing e2e test for all places referencing a full name #1164

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

Siyasanga
Copy link
Collaborator

Fix e2e tests after introducing a way to allow countries to customise the order of a full name. turns out there were alot of other screens that use a full name so the changes to the formatName() broke a lot of e2e tests. Instead of fixing the tests we've put temporary logic fullNameWithFirstNameFirst() helper function which will get removed once all the screens use the formatName() function.

opencrvs/opencrvs-core#6830

SInce we introduced the ability to allow countries to customise the order for a full name and the default being {surname} {middlename} {firstname} the tests need to conform to that

opencrvs/opencrvs-core#6830

This comment has been minimized.

@Siyasanga Siyasanga changed the title Ocrvs 6830 human name constant refactor: fix failing e2e test for all places referencing a full name Nov 15, 2024
@Siyasanga Siyasanga self-assigned this Nov 15, 2024
@Siyasanga Siyasanga added this to the v1.7.0 milestone Nov 15, 2024
@ocrvs-bot
Copy link

Your environment is deployed to https://ocrvs-6830-human-name-constant.opencrvs.dev.

There were some screens that were not using the new customised formatName() so the refactor to formatName broke thier e2e tests, the temporary solution is to add a new function formatNameWithFirstNameFirst() which uses the old logic until the screen are updated

opencrvs/opencrvs-core#6830
@Siyasanga Siyasanga force-pushed the ocrvs-6830-human-name-constant branch from 3b80c0c to a886c0f Compare November 15, 2024 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Code Review
2 participants