Skip to content

Commit

Permalink
fix(tests): Edit test skip
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
  • Loading branch information
SystemKeeper committed Feb 12, 2025
1 parent b585723 commit ab9bd39
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions NextcloudTalkTests/UI/UIRoomTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,12 @@ final class UIRoomTest: XCTestCase {
let editExists = editButton.waitForExistence(timeout: TestConstants.timeoutShort)

// Edit might not be supported by the server. Check for reply button to ensure context menu was correctly displayed
if !editExists, !app.buttons["Reply"].exists {
XCTFail("Neither edit, nor reply button exist")
if !editExists {
if !app.buttons["Reply"].exists {
XCTFail("Neither edit, nor reply button exist")
}

return
}

editButton.tap()
Expand Down

0 comments on commit ab9bd39

Please sign in to comment.