mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-05 11:58:32 +00:00
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
This commit is contained in:
committed by
Stefan Ceriu
parent
bb58f3840d
commit
35803b479d
@@ -20,7 +20,7 @@ enum Application {
|
|||||||
@discardableResult static func launch() -> XCUIApplication {
|
@discardableResult static func launch() -> XCUIApplication {
|
||||||
let app = XCUIApplication()
|
let app = XCUIApplication()
|
||||||
|
|
||||||
var launchEnvironment = [
|
let launchEnvironment = [
|
||||||
"IS_RUNNING_INTEGRATION_TESTS": "1"
|
"IS_RUNNING_INTEGRATION_TESTS": "1"
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
@@ -27,8 +27,6 @@ class UserFlowTests: XCTestCase {
|
|||||||
func testUserFlow() {
|
func testUserFlow() {
|
||||||
checkSettings()
|
checkSettings()
|
||||||
|
|
||||||
checkInvites()
|
|
||||||
|
|
||||||
checkRoomCreation()
|
checkRoomCreation()
|
||||||
|
|
||||||
// Open the first room in the list.
|
// Open the first room in the list.
|
||||||
@@ -48,17 +46,7 @@ class UserFlowTests: XCTestCase {
|
|||||||
|
|
||||||
app.logout()
|
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() {
|
private func checkPhotoSharing() {
|
||||||
// Open attachments picker
|
// Open attachments picker
|
||||||
tapOnMenu(A11yIdentifiers.roomScreen.composerToolbar.openComposeOptions)
|
tapOnMenu(A11yIdentifiers.roomScreen.composerToolbar.openComposeOptions)
|
||||||
@@ -159,7 +147,7 @@ class UserFlowTests: XCTestCase {
|
|||||||
tapOnBackButton("Room info")
|
tapOnBackButton("Room info")
|
||||||
|
|
||||||
// Go back to the room
|
// Go back to the room
|
||||||
tapOnBackButton("Room")
|
tapOnBackButton("Chat")
|
||||||
|
|
||||||
// Go back to the room list
|
// Go back to the room list
|
||||||
tapOnBackButton("Chats")
|
tapOnBackButton("Chats")
|
||||||
|
|||||||
Reference in New Issue
Block a user