Skip to content

Commit

Permalink
testing: add check to return early if we're missing root permissions
Browse files Browse the repository at this point in the history
mostly here so tests end quickly in CI
  • Loading branch information
Arian04 committed Aug 14, 2024
1 parent 5970fc6 commit 5176263
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,11 @@ class MyInstrumentedTest {
rule.setContent { Entrypoint() }
rule.waitForIdle()

// Trigger Magisk root permissions prompt
Shell.getShell().isRoot

// TODO: automate accepting magisk root prompt. Right now I just click it manually.
// Trigger Magisk root permissions prompt, returning if we don't have root permissions
if (!Shell.getShell().isRoot) {
return
}

// Continue past onboarding screen
val continueButton = rule.onAllClickableNodes().filterToOne(hasText("Continue"))
Expand Down

0 comments on commit 5176263

Please sign in to comment.