Skip to content

Commit

Permalink
test(update): adjust chats tests to two GH runners
Browse files Browse the repository at this point in the history
  • Loading branch information
luisecm committed Nov 6, 2023
1 parent 3505d19 commit 9a55fa1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
3 changes: 1 addition & 2 deletions tests/screenobjects/chats/ChatsLayout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ const SELECTORS_WINDOWS = {

const SELECTORS_MACOS = {
ENCRYPTED_MESSAGES: "~messages-secured-alert",
ENCRYPTED_MESSAGES_TEXT:
"-ios class chain:**/XCUIElementTypeGroup/XCUIElementTypeStaticText",
ENCRYPTED_MESSAGES_TEXT: "-ios class chain:**/XCUIElementTypeStaticText",
TYPING_INDICATOR: "~message-typing-indicator",
TYPING_INDICATOR_TEXT: "~typing-message",
TYPING_INDICATOR_TEXT_VALUE: "-ios class chain:**/XCUIElementTypeStaticText",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,14 @@ export default async function mainChatsTestsUserB() {
// Validate friend request appears on pending list
await friendsScreenFirstUser.hoverOnPendingListButton();
await friendsScreenFirstUser.goToPendingFriendsList();
await friendsScreenFirstUser.validateOutgoingListIsShown();
await friendsScreenFirstUser.validateOutgoingListIsNotEmpty();

await friendsScreenFirstUser.goToAllFriendsList();
await friendsScreenFirstUser.validateAllFriendsListIsShown();
});

it("Chat User B - Validate friend request was accepted", async () => {
// With User A - Go to pending requests list, wait for receiving the friend request and accept it
await friendsScreenFirstUser.goToAllFriendsList();
await friendsScreenFirstUser.waitUntilUserAcceptedFriendRequest();

// Validate friend is now on all friends list
await friendsScreenFirstUser.goToAllFriendsList();
await friendsScreenFirstUser.validateAllFriendsListIsShown();
await friendsScreenFirstUser.validateAllFriendsListIsNotEmpty();
});
Expand Down

0 comments on commit 9a55fa1

Please sign in to comment.