Skip to content

Commit

Permalink
test(update): commit changes working locally
Browse files Browse the repository at this point in the history
  • Loading branch information
luisecm committed Dec 21, 2023
1 parent 87d8932 commit 6050eb0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 25 deletions.
1 change: 0 additions & 1 deletion tests/specs/reusable-accounts/02-chat-replies.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ export default async function repliesTests() {
// Switch control to User A
await launchFirstApplication();
await loginWithTestUser();
await closeSecondApplication();

// With User A - Validate that reply message is received
await messageRemoteFirstUser.chatMessageReply.waitForExist();
Expand Down
13 changes: 0 additions & 13 deletions tests/specs/reusable-accounts/03-message-context-menu.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ require("module-alias/register");
import {
launchFirstApplication,
launchSecondApplication,
closeFirstApplication,
closeSecondApplication,
getClipboardValue,
loginWithTestUser,
} from "@helpers/commands";
import ContextMenu from "@screenobjects/chats/ContextMenu";
import InputBar from "@screenobjects/chats/InputBar";
Expand Down Expand Up @@ -46,8 +43,6 @@ export default async function messageContextMenuTests() {
it("Chat User B - Receive two messages from Chat User B", async () => {
// Assert messages received from Chat User B
await launchSecondApplication();
await loginWithTestUser();
await closeFirstApplication();
await messageRemoteFirstUser.waitForReceivingMessage("Two...");
await messageRemoteFirstUser.waitForReceivingMessage("Three...");
});
Expand All @@ -65,8 +60,6 @@ export default async function messageContextMenuTests() {
it("Chat User A - Context Menu - Delete Message", async () => {
// Open context menu on last message sent and select option for deleting
await launchFirstApplication();
await loginWithTestUser();
await closeSecondApplication();
await messageLocalFirstUser.openContextMenuOnLastSent();
await chatsContextMenuFirstUser.validateContextMenuIsOpen();
await chatsContextMenuFirstUser.selectContextOptionDelete();
Expand All @@ -79,8 +72,6 @@ export default async function messageContextMenuTests() {
it("Chat User B - Validate Message was deleted and is no longer visible in remote chat", async () => {
// Switch to Chat User B window
await launchSecondApplication();
await loginWithTestUser();
await closeFirstApplication();

// With User B - Validate that last message is "Two..."
await messageRemoteFirstUser.waitForReceivingMessage("Two...");
Expand All @@ -92,8 +83,6 @@ export default async function messageContextMenuTests() {
it("Chat User A - React to sent message and multiple reactions in a message", async () => {
// React with 😂 emoji
await launchFirstApplication();
await loginWithTestUser();
await closeSecondApplication();
await messageLocalFirstUser.openContextMenuOnLastSent();
await chatsContextMenuFirstUser.validateContextMenuIsOpen();
await chatsContextMenuFirstUser.clickOnFirstReaction();
Expand Down Expand Up @@ -131,8 +120,6 @@ export default async function messageContextMenuTests() {
it("Chat User B - Receive reaction in sent message", async () => {
// Return to Chat User B window
await launchSecondApplication();
await loginWithTestUser();
await closeFirstApplication();
await chatsInputFirstUser.clickOnInputBar();
await chatsInputFirstUser.typeMessageOnInput("Hello");
await chatsInputFirstUser.clearInputBar();
Expand Down
22 changes: 11 additions & 11 deletions tests/suites/Chats/01-Chats.suite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ import sidebarChatsTests from "@specs/reusable-accounts/08-sidebar-chats.spec";
describe("Create Accounts and Chat Tests", createChatAccountsTests.bind(this));
describe("Chat Replies Tests", repliesTests.bind(this));
describe("Message Context Menu Tests", messageContextMenuTests.bind(this));
/*describe("Message Input Tests", messageInputTests.bind(this));
describe("Message Attachments Tests", messageAttachmentsTests.bind(this));
describe("Chat Topbar Tests", chatTopbarTests.bind(this));
describe("Quick Profile Tests", quickProfileTests.bind(this));
describe("Sidebar Chats Tests", sidebarChatsTests.bind(this));
describe("Group Chats Tests", groupChatTests.bind(this));
describe("Group Chats Edit Tests", groupChatEditTests.bind(this));
describe(
"Group Chats Favorites and Sidebar Tests",
groupChatSidebarTests.bind(this),
);*/
xdescribe("Message Input Tests", messageInputTests.bind(this));
xdescribe("Message Attachments Tests", messageAttachmentsTests.bind(this));
xdescribe("Chat Topbar Tests", chatTopbarTests.bind(this));
xdescribe("Quick Profile Tests", quickProfileTests.bind(this));
xdescribe("Sidebar Chats Tests", sidebarChatsTests.bind(this));
xdescribe("Group Chats Tests", groupChatTests.bind(this));
xdescribe("Group Chats Edit Tests", groupChatEditTests.bind(this));
xdescribe(
"Group Chats Favorites and Sidebar Tests",
groupChatSidebarTests.bind(this),
);

0 comments on commit 6050eb0

Please sign in to comment.