Skip to content

Commit

Permalink
test: Switched selector to one that exists on more versons
Browse files Browse the repository at this point in the history
  • Loading branch information
erik-perri committed Oct 7, 2023
1 parent 3f6ba30 commit 718e957
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/utilities/clickPermissionButton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ export default async function clickPermissionButton(
): Promise<void> {
const button = driver.$(
`//*[@text="${dialogText}"]` +
'/ancestor::*[@resource-id="com.android.permissioncontroller:id/grant_dialog"]' +
'/ancestor::*[@resource-id="com.android.permissioncontroller:id/content_container"]' +
'/following-sibling::*' +
`//*[@text="${buttonText}"]`,
);

Expand Down

0 comments on commit 718e957

Please sign in to comment.