Commit 546cfb0992

546cfb0992bccc60f35590c4936990ca37ece1d5

parent: dc071b9572

Verified · cmc

cmc <hello@cleberg.net> · 2026-09-22 18:26 UTC

live suite: profile save and the about file actions

Layout: unified · split

gitbayUITests/LiveSmokeUITests.swift +20
@@ -1276,6 +1276,26 @@ extension LiveSmokeUITests {
1276 "org memberships missing") 1276 "org memberships missing")
1277 XCTAssertTrue(app.staticTexts["krz"].firstMatch.exists, "org row missing") 1277 XCTAssertTrue(app.staticTexts["krz"].firstMatch.exists, "org row missing")
1278 1278
1279 // --- saving the profile succeeds: profile set takes no about flags ---
1280 let edit = app.descendants(matching: .any)
1281 .matching(identifier: "profile-edit-button").firstMatch
1282 XCTAssertTrue(edit.waitForExistence(timeout: 10), "own profile offers no edit")
1283 edit.tap()
1284 let save = app.buttons["profile-edit-save"].firstMatch
1285 XCTAssertTrue(save.waitForExistence(timeout: 10), "edit sheet did not open")
1286 XCTAssertFalse(app.descendants(matching: .any)
1287 .matching(identifier: "profile-edit-about").firstMatch.exists,
1288 "the sheet still edits the about text")
1289 save.tap()
1290 XCTAssertTrue(save.waitForNonExistence(timeout: 15),
1291 "profile save did not dismiss the sheet — the server refused it")
1292
1293 // --- the about text is a file: edit it, or offer to create it ---
1294 let aboutAction = app.descendants(matching: .any).matching(NSPredicate(
1295 format: "identifier IN %@", ["profile-about-edit", "profile-about-create"])).firstMatch
1296 XCTAssertTrue(scrollTo(aboutAction),
1297 "own profile offers neither editing nor creating the about file")
1298
1279 // --- an org admin can edit the org's profile --- 1299 // --- an org admin can edit the org's profile ---
1280 app.staticTexts["krz"].firstMatch.tap() 1300 app.staticTexts["krz"].firstMatch.tap()
1281 XCTAssertTrue(app.descendants(matching: .any) 1301 XCTAssertTrue(app.descendants(matching: .any)