Skip to content

Commit

Permalink
tests: Fix PermissionPrompt button selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
devinbileck committed Feb 10, 2024
1 parent fc01599 commit 117f2b6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ class PermissionPrompt {
private val textElement
get() = device.findObject(UiSelector().index(1))
private val grantPermissionButton
get() = device.findObject(UiSelector().text("Allow"))
get() = device.findObject(UiSelector().textMatches("(?:Allow|ALLOW)"))
private val denyPermissionButton
get() = device.findObject(UiSelector().text("Don’t allow"))
get() = device.findObject(UiSelector().textMatches("(?:Don’t allow|DON’T ALLOW)"))

fun isDisplayed(): Boolean {
return grantPermissionButton.exists() && denyPermissionButton.exists()
Expand Down

0 comments on commit 117f2b6

Please sign in to comment.