Skip to content

Commit

Permalink
test(update): use launch instead of activate app
Browse files Browse the repository at this point in the history
  • Loading branch information
luisecm committed Feb 13, 2024
1 parent 5541327 commit b325ed1
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
require("module-alias/register");
import {
activateFirstApplication,
activateSecondApplication,
createNewUser,
getUserKey,
launchFirstApplication,
launchSecondApplication,
saveTestKeys,
} from "@helpers/commands";
Expand Down Expand Up @@ -148,7 +147,7 @@ export default async function createChatAccountsTests() {

it("Chat User A - Accept friend request from User A and go to chat button", async () => {
// Switch control to User A
await activateFirstApplication();
await launchFirstApplication();

// With User A - Go to pending requests list, wait for receiving the friend request and accept it
await friendsScreen.hoverOnPendingListButton();
Expand All @@ -168,7 +167,7 @@ export default async function createChatAccountsTests() {

it("Chat User B - Validate friend request was accepted", async () => {
// Switch control to User B
await activateSecondApplication();
await launchSecondApplication();

// With User B - Go to pending requests list, wait for receiving the friend request and accept it
await friendsScreen.waitUntilUserAcceptedFriendRequest();
Expand All @@ -181,7 +180,7 @@ export default async function createChatAccountsTests() {

it("Chat User A - Chat screen displays Messages secured text displayed on top of conversation", async () => {
// Switch control to User A
await activateFirstApplication();
await launchFirstApplication();
await chatsTopbar.validateTopbarExists();

// Validate E2E message is displayed on top of chat
Expand Down Expand Up @@ -281,7 +280,7 @@ export default async function createChatAccountsTests() {

it("Chat User B - Wait until the other user is connected", async () => {
// Switch control to User B
await activateSecondApplication();
await launchSecondApplication();

// Go to the current list of All friends and then open a Chat conversation with ChatUserA
await friendsScreen.chatWithFriendButton.waitForExist();
Expand Down

0 comments on commit b325ed1

Please sign in to comment.