Skip to content

Commit

Permalink
fix: e2e test selector
Browse files Browse the repository at this point in the history
  • Loading branch information
jjarvisp committed Feb 11, 2025
1 parent 63575b7 commit 700f2c5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/e2e/detox/integration/common/authenticator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,10 @@ When('I click the {string} button', async (name: string) => {
}
});

When('I click the {string} radio button', async (label: string) => {
await element(by.id('amplify__radio-button__container')).tap();
When('I click the {string} radio button', async (name: string) => {
await element(
by.text(name).withAncestor(by.id('amplify__radio-group__container'))
).tap();
});

Then(
Expand Down

0 comments on commit 700f2c5

Please sign in to comment.