mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-10 21:39:12 +00:00
Fix bugReport UI test (#673)
This commit is contained in:
parent
e4117e3205
commit
6d6793e4ed
@ -42,12 +42,12 @@ class BugReportUITests: XCTestCase {
|
||||
|
||||
// Type 4 characters and the send button should be disabled.
|
||||
app.textViews[A11yIdentifiers.bugReportScreen.report].clearAndTypeText("Text")
|
||||
XCTAssertFalse(app.buttons[A11yIdentifiers.bugReportScreen.send].isEnabled)
|
||||
XCTAssert(app.switches[A11yIdentifiers.bugReportScreen.sendLogs].isOn)
|
||||
app.assertScreenshot(.bugReport, step: 2)
|
||||
|
||||
// Type more than 4 characters and send the button should become enabled.
|
||||
app.textViews[A11yIdentifiers.bugReportScreen.report].clearAndTypeText("Longer text")
|
||||
XCTAssert(app.buttons[A11yIdentifiers.bugReportScreen.send].isEnabled)
|
||||
XCTAssert(app.switches[A11yIdentifiers.bugReportScreen.sendLogs].isOn)
|
||||
app.assertScreenshot(.bugReport, step: 3)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user