Skip to content

Commit

Permalink
test(update): moving assertion to second spec file
Browse files Browse the repository at this point in the history
  • Loading branch information
luisecm committed Mar 13, 2024
1 parent cfd9704 commit ef03016
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -397,16 +397,6 @@ export default async function createChatAccountsTests() {
await chatsInput.waitForIsShown(true);
});

it("Chat User B - Validate User Status changes are seen in remote side", async () => {
// Switch control to User B
await activateSecondApplication();

// Validate Chat User B is now Idle
const firstRemoteStatus =
await messageGroupRemote.getLastGroupWrapReceivedCurrentStatus();
await expect(firstRemoteStatus).toEqual("indicator-idle");
});

after(async () => {
await closeFirstApplication();
await closeSecondApplication();
Expand Down
7 changes: 7 additions & 0 deletions tests/specs/reusable-accounts/02-chat-replies.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ export default async function repliesTests() {
await launchSecondApplication();
});

it("Chat User B - Validate User Status changes are seen in remote side", async () => {
// Validate Chat User B is now Idle
const firstRemoteStatus =
await messageGroupRemote.getLastGroupWrapReceivedCurrentStatus();
await expect(firstRemoteStatus).toEqual("indicator-idle");
});

it("Chat User B - Reply popup - Validate contents and close it", async () => {
// Open Context Menu on Last Message Received and select Reply
await messageRemote.openContextMenuOnReceivedMessage("Testing...😀");
Expand Down

0 comments on commit ef03016

Please sign in to comment.