Skip to content

Commit

Permalink
test(update): unskipping attachment chats tests
Browse files Browse the repository at this point in the history
  • Loading branch information
luisecm committed Nov 14, 2023
1 parent ebb8ebd commit 89fdc66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.
19 changes: 3 additions & 16 deletions tests/specs/reusable-accounts/06-chat-topbar.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,9 @@ let chatsTopbarFirstUser = new Topbar(USER_A_INSTANCE);
let pinnedMessagesFirstUser = new PinnedMessages(USER_A_INSTANCE);

export default async function chatTopbarTests() {
it("Chat User B - Send a message to Chat User A", async () => {
// Send a message to Chat User A
await chatsInputFirstUser.typeMessageOnInput("Temp...");
await chatsInputFirstUser.clickOnSendMessage();
await chatsMessagesFirstUser.waitForMessageSentToExist("Temp...");
});

it("Chat User A - Receive message from Chat User B", async () => {
// Assert message received from Chat User A
await activateFirstApplication();
await chatsMessagesFirstUser.waitForReceivingMessage("Temp...");
});

it("Chat User A - Validate Chat Screen tooltips are displayed", async () => {
// Validate Favorites button tooltip
await activateFirstApplication();
await chatsTopbarFirstUser.hoverOnFavoritesButton();
const favoritesAddTooltipText =
await chatsTopbarFirstUser.topbarAddToFavoritesTooltipText;
Expand Down Expand Up @@ -99,11 +87,10 @@ export default async function chatTopbarTests() {
await pinnedMessagesFirstUser.validateFirstPinnedMessageImageProfileIsShown();
await pinnedMessagesFirstUser.validateFirstPinnedMessageTimestampIsShown();
await pinnedMessagesFirstUser.validateFirstPinnedMessageSender("ChatUserB");
await pinnedMessagesFirstUser.validateFirstPinnedMessageText("Temp...");
await pinnedMessagesFirstUser.validateFirstPinnedMessageText("Attached2");
});

// Skipping due to issue with Upload files button
xit("Pinned Messages - Pinned message with attachment shows icon, extension, filename and metadata", async () => {
it("Pinned Messages - Pinned message with attachment shows icon, extension, filename and metadata", async () => {
// Validate attachment elements are shown in pinned message
await pinnedMessagesFirstUser.validateFirstPinnedMessageAttachmentFileIcon();
await pinnedMessagesFirstUser.validateFirstPinnedMessageAttachmentFileIconExtension(
Expand Down
2 changes: 1 addition & 1 deletion tests/suites/Chats/01-Chats.suite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe("MacOS Chats Tests", function () {
describe("Chat Replies Tests", repliesTests.bind(this));
describe("Message Context Menu Tests", messageContextMenuTests.bind(this));
describe("Message Input Tests", messageInputTests.bind(this));
xdescribe("Message Attachments Tests", messageAttachmentsTests.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));
Expand Down

0 comments on commit 89fdc66

Please sign in to comment.