Fix aria label

This commit is contained in:
MartinBraquet
2026-03-01 22:27:17 +01:00
parent 32e97f9da5
commit 1bf9b83693
2 changed files with 6 additions and 5 deletions

View File

@@ -112,11 +112,11 @@ export class SignUpPage {
this.minAgeOption = page.getByTestId('pref-age-min')
this.maxAgeOption = page.getByTestId('pref-age-max')
this.currentNumberOfKidsField = page.getByTestId('current-number-of-kids')
this.stronglyDisagreeOnWantingKids = page.locator('[id="headlessui-radiogroup-option-:r49:"]')
this.disagreeOnWantingKids = page.locator('[id="headlessui-radiogroup-option-:r4b:"]')
this.neutralOnWantingKids = page.locator('[id="headlessui-radiogroup-option-:r4d:"]')
this.agreeOnWantingKids = page.locator('[id="headlessui-radiogroup-option-:r4f:"]')
this.stronglyAgreeOnWantingKids = page.locator('[id="headlessui-radiogroup-option-:r4h:"]')
this.stronglyDisagreeOnWantingKids = page.getByRole('radio', {name: 'Strongly disagree'})
this.disagreeOnWantingKids = page.getByRole('radio', {name: 'Disagree'})
this.neutralOnWantingKids = page.getByRole('radio', {name: 'Neutral'})
this.agreeOnWantingKids = page.getByRole('radio', {name: 'Agree'})
this.stronglyAgreeOnWantingKids = page.getByRole('radio', {name: 'Strongly agree'})
this.addInterestsField = page.getByRole('textbox', {name: 'Search or add'}).first()
this.addInterestsButton = page.getByRole('button', {name: 'Add'}).first()
this.addCausesField = page.getByRole('textbox', {name: 'Search or add'}).nth(1)

View File

@@ -35,6 +35,7 @@ export function RadioToggleGroup(props: {
setChoice(-1)
}
}}
aria-label={choiceKey}
key={choiceKey}
value={choice}
className={({disabled}) =>