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

(PC-32377) fix(a11y): new delete profile deletion #7070

Merged
merged 1 commit into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ exports[`DeleteProfileAccountNotDeletable should render correctly 1`] = `

<View>
<View
accessibilityLabel="consultant cette page"
accessibilityLabel="consultant cette page."
accessibilityRole="link"
accessibilityState={
{
Expand Down Expand Up @@ -171,7 +171,7 @@ exports[`DeleteProfileAccountNotDeletable should render correctly 1`] = `
},
]
}
testID="consultant cette page"
testID="consultant cette page."
>
<View
paddingForIcon={0}
Expand Down Expand Up @@ -218,12 +218,11 @@ exports[`DeleteProfileAccountNotDeletable should render correctly 1`] = `
}
typography="ButtonText"
>
consultant cette page
consultant cette page.
</Text>
</View>
</View>
</View>
.
</Text>
<Text
style={
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ describe('DeleteProfileAccountNotDeletable', () => {
it('should open FAQ link when clicking on "consultant cette page" button', () => {
render(<DeleteProfileAccountNotDeletable />)

const faqButton = screen.getByText('consultant cette page')
const faqButton = screen.getByText('consultant cette page.')
fireEvent.press(faqButton)

expect(openUrl).toHaveBeenNthCalledWith(1, env.FAQ_LINK_RIGHT_TO_ERASURE, undefined, true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,10 @@ export const DeleteProfileAccountNotDeletable: FC = () => {
anonymiser tes données. Tu peux en savoir plus en{SPACE}
<ExternalTouchableLink
as={StyledButtonInsideText}
wording="consultant cette page"
wording="consultant cette page."
icon={ExternalSiteFilled}
externalNav={{ url: env.FAQ_LINK_RIGHT_TO_ERASURE }}
/>
.
</TypoDS.BodyS>
<TypoDS.BodyS>
Pour ne plus recevoir de communications du pass Culture, tu peux désactiver tes
Expand Down
Loading