Skip to content

Commit

Permalink
Screenshot test for multiple accounts
Browse files Browse the repository at this point in the history
- remove account

Signed-off-by: ZetaTom <[email protected]>
  • Loading branch information
ZetaTom authored and AndyScherzinger committed Jul 3, 2023
1 parent b264a86 commit a273b6a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/src/androidTest/java/com/owncloud/android/AbstractIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -458,8 +458,8 @@ protected static Account createAccount(String name) {
return account;
}

protected static boolean removeUser(User user) {
return UserAccountManagerImpl.fromContext(targetContext).removeUser(user);
protected static boolean removeAccount(Account account) {
return AccountManager.get(targetContext).removeAccountExplicitly(account);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ class ReceiveExternalFilesActivityIT : AbstractIT() {
@Test
@ScreenshotTest
fun openMultiAccount() {
val secondUser = getUser(createAccount("secondtest@https://nextcloud.localhost"))
val secondAccount = createAccount("secondtest@https://nextcloud.localhost")
open()
removeUser(secondUser)
removeAccount(secondAccount)
}
}

0 comments on commit a273b6a

Please sign in to comment.