mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 03:06:37 +00:00
Simplify the screen templates
This commit is contained in:
committed by
Stefan Ceriu
parent
28c2490910
commit
6e5854abf9
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user