Skip to content

Commit

Permalink
Merge pull request #1583 from nextcloud/adjust-create-conversation-test
Browse files Browse the repository at this point in the history
Adjust create conversation test
  • Loading branch information
SystemKeeper authored Mar 19, 2024
2 parents e7567ea + 87c7859 commit b959a1c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions NextcloudTalkTests/UI/UIRoomTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,15 @@ final class UIRoomTest: XCTestCase {

func createConversation(for app: XCUIApplication, with newConversationName: String) {
app.navigationBars["Nextcloud Talk"].buttons["Create or join a conversation"].tap()
app.buttons["Create a new conversation"].tap()

let createNewConversationButton = app.buttons["Create a new conversation"]
XCTAssert(createNewConversationButton.waitForExistence(timeout: TestConstants.timeoutShort))
createNewConversationButton.tap()

let newConversationNavBar = app.navigationBars["New conversation"]
XCTAssert(newConversationNavBar.waitForExistence(timeout: TestConstants.timeoutShort))
app.typeText(newConversationName)
app.navigationBars["New conversation"].buttons["Create"].tap()
newConversationNavBar.buttons["Create"].tap()
}

func testCreateConversation() {
Expand Down

0 comments on commit b959a1c

Please sign in to comment.