Simplify the screen templates

This commit is contained in:
Stefan Ceriu
2023-08-02 13:24:57 +03:00
committed by Stefan Ceriu
parent 28c2490910
commit 6e5854abf9
8 changed files with 60 additions and 160 deletions
@@ -19,25 +19,12 @@ import XCTest
@MainActor
class TemplateScreenUITests: XCTestCase {
func testRegularScreen() async throws {
let app = Application.launch(.simpleRegular)
func testScreen() async throws {
let app = Application.launch(.templateScreen)
let title = app.staticTexts["title"]
let title = app.staticTexts["Template title"]
XCTAssert(title.exists)
XCTAssertEqual(title.label, "Make this chat public?")
try await app.assertScreenshot(.simpleRegular)
}
func testUpgradeScreen() async throws {
let app = Application.launch(.simpleUpgrade)
let title = app.staticTexts["title"]
XCTAssert(title.exists)
XCTAssertEqual(title.label, "Privacy warning")
try await app.assertScreenshot(.simpleUpgrade)
try await app.assertScreenshot(.templateScreen)
}
}