mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Add Block user to Report Content screen. (#742)
This commit is contained in:
@@ -20,6 +20,21 @@ import XCTest
|
||||
class ReportContentScreenUITests: XCTestCase {
|
||||
func testInitialStateComponents() {
|
||||
let app = Application.launch(.reportContent)
|
||||
app.assertScreenshot(.reportContent)
|
||||
app.assertScreenshot(.reportContent, step: 0)
|
||||
}
|
||||
|
||||
func testToggleIgnoreUser() {
|
||||
let app = Application.launch(.reportContent)
|
||||
|
||||
// Don't know why, but there's an issue on CI where the toggle is tapped but doesn't respond. Waiting for
|
||||
// it fixes this (even it it already exists). Reproducible by running the test after quitting the simulator.
|
||||
let sendingLogsToggle = app.switches[A11yIdentifiers.reportContent.ignoreUser]
|
||||
XCTAssertTrue(sendingLogsToggle.waitForExistence(timeout: 1))
|
||||
XCTAssertFalse(sendingLogsToggle.isOn)
|
||||
|
||||
sendingLogsToggle.tap()
|
||||
|
||||
XCTAssertTrue(sendingLogsToggle.isOn)
|
||||
app.assertScreenshot(.reportContent, step: 1)
|
||||
}
|
||||
}
|
||||
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c5e16b7b56132cb5c7c30d502911dcb29b41efe3228c10053576fe4b34e5178e
|
||||
size 94846
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:06d95ccd192c2c9550e4a405b76352d8f75d86a1d72cbc42dfab15743bcac2de
|
||||
size 96766
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:71b413b0ec66b086cbcb077defbf5890332f56d2c865fb0ddc2ec251224a7000
|
||||
size 102265
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:5a330b8acd8f2a4ebdda45d125c29c17e21f6cd8fb2397443d7527988ff5a943
|
||||
size 117146
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:63627788babeceb6940989acf8e07c7244d50b4ab84c97bc74b4e19b9ee6ce47
|
||||
size 120785
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8c816fa74f027b401c84513b2c4d8f912fb91e3229e4b4fa1cdda17db2d88be4
|
||||
size 131307
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c253c4c823104c55bf916c9d112ad87e4de3db24fd324a61350a834584edf275
|
||||
size 116667
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:324756300a6ca0abca19892b5ff4fea9bcd1718fb9375ed87de8e9e981a06908
|
||||
size 118557
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a5f69a58df0557ef1e1adb04a1dbe9b245a003684f0b96228a7a438da168ec25
|
||||
size 133827
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4781fa334f9c08adf7ba7e3b0885e9b04a7f28c7e1e407553a74171570775a41
|
||||
size 162791
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b4120dca6e5eb55094f9e301bb3fa6e538b6f9a1226f29a2ab4832886661b429
|
||||
size 163825
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c47eb8afbde353f625bb0d70712a62df83e769284a4c1a7d0918f27369414d65
|
||||
size 193082
|
||||
Reference in New Issue
Block a user