From 35803b479d7c63c53def5fd9c4c5693302ceecaa Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Tue, 7 May 2024 16:00:44 +0300 Subject: [PATCH] Fix integration tests - remove the invites flow as the button visibility depends on the number of invites and invites are moving to the room list anyway --- IntegrationTests/Sources/Application.swift | 2 +- IntegrationTests/Sources/UserFlowTests.swift | 14 +------------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/IntegrationTests/Sources/Application.swift b/IntegrationTests/Sources/Application.swift index 05a8aa9a5..b7084ffa9 100644 --- a/IntegrationTests/Sources/Application.swift +++ b/IntegrationTests/Sources/Application.swift @@ -20,7 +20,7 @@ enum Application { @discardableResult static func launch() -> XCUIApplication { let app = XCUIApplication() - var launchEnvironment = [ + let launchEnvironment = [ "IS_RUNNING_INTEGRATION_TESTS": "1" ] diff --git a/IntegrationTests/Sources/UserFlowTests.swift b/IntegrationTests/Sources/UserFlowTests.swift index 667e893be..2b4ff790d 100644 --- a/IntegrationTests/Sources/UserFlowTests.swift +++ b/IntegrationTests/Sources/UserFlowTests.swift @@ -27,8 +27,6 @@ class UserFlowTests: XCTestCase { func testUserFlow() { checkSettings() - checkInvites() - checkRoomCreation() // Open the first room in the list. @@ -48,17 +46,7 @@ class UserFlowTests: XCTestCase { app.logout() } - - private func checkInvites() { - // Open invites - let invitesButton = app.buttons[A11yIdentifiers.homeScreen.invites] - XCTAssertTrue(invitesButton.waitForExistence(timeout: 10.0)) - invitesButton.tap() - // Go back to the room list - tapOnBackButton("Chats") - } - private func checkPhotoSharing() { // Open attachments picker tapOnMenu(A11yIdentifiers.roomScreen.composerToolbar.openComposeOptions) @@ -159,7 +147,7 @@ class UserFlowTests: XCTestCase { tapOnBackButton("Room info") // Go back to the room - tapOnBackButton("Room") + tapOnBackButton("Chat") // Go back to the room list tapOnBackButton("Chats")