-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #679 from Satellite-im/luis/permissions
test(update): fix permissions microphone message displayed on first open
- Loading branch information
Showing
6 changed files
with
73 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
tests/specs/reusable-accounts/00-create-three-instances.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
require("module-alias/register"); | ||
import { createNewUser } from "@helpers/commandsNewUser"; | ||
import { | ||
closeFirstApplication, | ||
closeSecondApplication, | ||
closeThirdApplication, | ||
launchSecondApplication, | ||
launchThirdApplication, | ||
} from "@helpers/commands"; | ||
import CreatePinScreen from "@screenobjects/account-creation/CreatePinScreen"; | ||
import WelcomeScreen from "@screenobjects/welcome-screen/WelcomeScreen"; | ||
|
||
export default async function createChatAccountsTests() { | ||
it("Chats Tests - Create account for first instance", async () => { | ||
// Launch first application and Create a new account to show Welcome Screen | ||
await CreatePinScreen.waitForIsShown(true); | ||
const username = "ChatUserA"; | ||
await createNewUser(username); | ||
await WelcomeScreen.waitForIsShown(true); | ||
|
||
// Close first application | ||
await closeFirstApplication(); | ||
}); | ||
|
||
it("Chats Tests - Create account for second instance", async () => { | ||
// Launch second application and Create a new account to show Welcome Screen | ||
await launchSecondApplication(); | ||
await CreatePinScreen.waitForIsShown(true); | ||
await createNewUser("ChatUserB"); | ||
await WelcomeScreen.waitForIsShown(true); | ||
|
||
// Close second application | ||
await closeSecondApplication(); | ||
}); | ||
|
||
it("Chats Tests - Create account for third instance", async () => { | ||
// Launch third application and Create a new account to show Welcome Screen | ||
await launchThirdApplication(); | ||
await CreatePinScreen.waitForIsShown(true); | ||
await createNewUser("ChatUserC"); | ||
await WelcomeScreen.waitForIsShown(true); | ||
|
||
// Close third application | ||
await closeThirdApplication(); | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters