mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +00:00
#2380 - Add simple call screen UI test
This commit is contained in:
committed by
Stefan Ceriu
parent
da298938cb
commit
119fa09617
@@ -58,4 +58,19 @@ class UserSessionScreenTests: XCTestCase {
|
||||
app.buttons[A11yIdentifiers.roomScreen.attachmentPickerTextFormatting].tap()
|
||||
try await app.assertScreenshot(.userSessionScreenRTE, step: 2)
|
||||
}
|
||||
|
||||
func testElementCall() async throws {
|
||||
let app = Application.launch(.userSessionScreen)
|
||||
|
||||
app.buttons[A11yIdentifiers.homeScreen.roomName(firstRoomName)].tap()
|
||||
XCTAssert(app.staticTexts[firstRoomName].waitForExistence(timeout: 5.0))
|
||||
|
||||
app.buttons[A11yIdentifiers.roomScreen.joinCall].tap()
|
||||
|
||||
let textField = app.textFields["Display name"]
|
||||
XCTAssert(textField.waitForExistence(timeout: 10))
|
||||
|
||||
let joinButton = app.buttons["Join call now"]
|
||||
XCTAssert(joinButton.waitForExistence(timeout: 10))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user