mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:12:26 +00:00
Fix various UI test snapshot issues.
This commit is contained in:
@@ -17,20 +17,20 @@ class BugReportTests: XCTestCase {
|
|||||||
try await app.assertScreenshot()
|
try await app.assertScreenshot()
|
||||||
}
|
}
|
||||||
|
|
||||||
func testReportText() async throws {
|
func testReportText() {
|
||||||
let app = Application.launch(.bugReport)
|
let app = Application.launch(.bugReport)
|
||||||
|
|
||||||
// Type 4 characters and the send button should be disabled.
|
// Type 4 characters and the send button should be disabled.
|
||||||
app.textFields[A11yIdentifiers.bugReportScreen.report].clearAndTypeText("Text", app: app)
|
app.textFields[A11yIdentifiers.bugReportScreen.report].clearAndTypeText("Text", app: app)
|
||||||
XCTAssert(app.switches[A11yIdentifiers.bugReportScreen.sendLogs].isOn)
|
XCTAssert(app.switches[A11yIdentifiers.bugReportScreen.sendLogs].isOn)
|
||||||
XCTAssert(!app.switches[A11yIdentifiers.bugReportScreen.canContact].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.
|
// Type more than 4 characters and send the button should become enabled.
|
||||||
app.textFields[A11yIdentifiers.bugReportScreen.report].clearAndTypeText("Longer text", app: app)
|
app.textFields[A11yIdentifiers.bugReportScreen.report].clearAndTypeText("Longer text", app: app)
|
||||||
XCTAssert(app.switches[A11yIdentifiers.bugReportScreen.sendLogs].isOn)
|
XCTAssert(app.switches[A11yIdentifiers.bugReportScreen.sendLogs].isOn)
|
||||||
XCTAssert(!app.switches[A11yIdentifiers.bugReportScreen.canContact].isOn)
|
XCTAssert(!app.switches[A11yIdentifiers.bugReportScreen.canContact].isOn)
|
||||||
try await app.assertScreenshot()
|
XCTAssertTrue(app.buttons["Send"].isEnabled)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ class PollFormScreenUITests: XCTestCase {
|
|||||||
try await app.assertScreenshot()
|
try await app.assertScreenshot()
|
||||||
}
|
}
|
||||||
|
|
||||||
func testFilledPoll() async throws {
|
func testFilledPoll() {
|
||||||
let app = Application.launch(.createPoll)
|
let app = Application.launch(.createPoll)
|
||||||
let questionTextField = app.textFields[A11yIdentifiers.pollFormScreen.question]
|
let questionTextField = app.textFields[A11yIdentifiers.pollFormScreen.question]
|
||||||
questionTextField.tap(.center)
|
questionTextField.tap(.center)
|
||||||
@@ -29,13 +29,8 @@ class PollFormScreenUITests: XCTestCase {
|
|||||||
option2TextField.tap(.center)
|
option2TextField.tap(.center)
|
||||||
option2TextField.typeText("No")
|
option2TextField.typeText("No")
|
||||||
|
|
||||||
// Dismiss the keyboard
|
|
||||||
app.swipeDown()
|
|
||||||
|
|
||||||
let createButton = app.buttons[A11yIdentifiers.pollFormScreen.submit]
|
let createButton = app.buttons[A11yIdentifiers.pollFormScreen.submit]
|
||||||
XCTAssertTrue(createButton.isEnabled)
|
XCTAssertTrue(createButton.isEnabled)
|
||||||
|
|
||||||
try await app.assertScreenshot()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func testMaxOptions() async throws {
|
func testMaxOptions() async throws {
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:89a6fb1d60c964006efd0e9d3fa02257abe386e1cea5165b0c52d17583d8955f
|
|
||||||
size 146867
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:56e2ad288aaa0bcb52d2f0902f08a918b13e5a798a7bcc4e643ac0380212c225
|
|
||||||
size 185887
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:740080b21171a941fc98e68bee3e84b0bfef9a37e161222d80efb0a9eb0fc579
|
|
||||||
size 186398
|
|
||||||
-3
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:ba5c5a3d23dc84febc6b7a92548ab74a4030c547e96bc64443fb5d9eb46c3050
|
|
||||||
size 208498
|
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:1ea6ee065d0d9fbaace3e79207788c8559d6e82a56f6f78cd6b704dcd52c14b2
|
oid sha256:898fb951cf9d784f8beae45dc1719bc482e1b631a0173b2bbb4ee99b65c8d80a
|
||||||
size 126699
|
size 126784
|
||||||
|
|||||||
Reference in New Issue
Block a user