mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-05 11:58:32 +00:00
Fix various UI test snapshot issues.
This commit is contained in:
@@ -17,20 +17,20 @@ class BugReportTests: XCTestCase {
|
||||
try await app.assertScreenshot()
|
||||
}
|
||||
|
||||
func testReportText() async throws {
|
||||
func testReportText() {
|
||||
let app = Application.launch(.bugReport)
|
||||
|
||||
// Type 4 characters and the send button should be disabled.
|
||||
app.textFields[A11yIdentifiers.bugReportScreen.report].clearAndTypeText("Text", app: app)
|
||||
XCTAssert(app.switches[A11yIdentifiers.bugReportScreen.sendLogs].isOn)
|
||||
XCTAssert(!app.switches[A11yIdentifiers.bugReportScreen.canContact].isOn)
|
||||
try await app.assertScreenshot()
|
||||
XCTAssertFalse(app.buttons["Send"].isEnabled)
|
||||
|
||||
// Type more than 4 characters and send the button should become enabled.
|
||||
app.textFields[A11yIdentifiers.bugReportScreen.report].clearAndTypeText("Longer text", app: app)
|
||||
XCTAssert(app.switches[A11yIdentifiers.bugReportScreen.sendLogs].isOn)
|
||||
XCTAssert(!app.switches[A11yIdentifiers.bugReportScreen.canContact].isOn)
|
||||
try await app.assertScreenshot()
|
||||
XCTAssertTrue(app.buttons["Send"].isEnabled)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user