Skip to content

LG-6202: Collapse excess line break for single-line address#6386

Merged
aduth merged 1 commit intomainfrom
aduth-password-confirm-address
May 20, 2022
Merged

LG-6202: Collapse excess line break for single-line address#6386
aduth merged 1 commit intomainfrom
aduth-password-confirm-address

Conversation

@aduth
Copy link
Contributor

@aduth aduth commented May 19, 2022

Why: To match the existing screen.

Before After
localhost_3000_verify_v2_password_confirm (1) localhost_3000_verify_v2_password_confirm

**Why**: To match the existing screen.

changelog: Upcoming Features, Identity Verification, Add password confirmation step
@aduth aduth requested review from a team and peggles2 May 19, 2022 19:30
Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

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

LGTM


rerender(<PersonalInfoSummary pii={{ ...DEFAULT_PII, address2: 'PO BOX 1' }} />);

address = getByText('1 FAKE RDPO BOX 1GREAT FALLS, MT 59010');
Copy link
Contributor

Choose a reason for hiding this comment

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

it's super weird to see the <br /> get hidden so the lines run together :/

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah this was a bit clumsy for me to put together, especially since I didn't realize we previously had an extra space in there as well. After removing that, it makes a bit more sense that the text content is the individual text nodes, joined together with no joiner.

There are some extra options for matching text (getByText((text) => ...), getByText('text', { normalizer: ... })), which could maybe be helpful for this. Or querying the individual slices of text and asserting against its sibling content (e.g. getByText('1 FAKE RD').nextElementSibling.nodeName === 'BR')).

@aduth aduth merged commit 32ff2e9 into main May 20, 2022
@aduth aduth deleted the aduth-password-confirm-address branch May 20, 2022 12:38
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.

2 participants