Ignore User UI (#737)

* generated files

* Revert "generated files"

This reverts commit f62c1dbcd9e505083ad4ff17532e2c054e253187.

* renaming files to RoomMembersList

* completed the renaming of the list files

* added generated files

* basic setup of the view and the mock

* added a new mock with a avatar

* share/copy link

* copyUserLink implemented

* removed unimplemented tests

* block user UI

* navigation to room member details added

* implemented but we require a sync from the Rust side

* adjusted some UI test screens

* alert for unblocking

* completed

* some tests

* changelog

* ignore user ui enabled

* loader inside the button when the request is fetching

* removed unused code

* blocking the button while loading

* improved the code

* changelog

* UI tests

* unit tests

* added collection concurrency kit

* Revert "added collection concurrency kit"

This reverts commit 499fbe129f73a75e903d9f4952fe2ad672930f04.

* replaced the asyncMap with a @MainActor builder function

* pr comments

* added localazy to setup

* sdk bump to 1.0.49
This commit is contained in:
Mauro
2023-03-28 11:00:40 +02:00
committed by GitHub
parent 2b753b1135
commit e1df5310b7
23 changed files with 187 additions and 58 deletions
@@ -20,6 +20,25 @@ import XCTest
class RoomMemberDetailsScreenUITests: XCTestCase {
func testInitialStateComponentsForAccountOwner() {
let app = Application.launch(.roomMemberDetailsAccountOwner)
XCTAssertFalse(app.buttons[A11yIdentifiers.roomMemberDetailsScreen.ignore].exists)
XCTAssertFalse(app.buttons[A11yIdentifiers.roomMemberDetailsScreen.unignore].exists)
app.assertScreenshot(.roomMemberDetailsAccountOwner)
}
func testInitialStateComponents() {
let app = Application.launch(.roomMemberDetails)
XCTAssert(app.buttons[A11yIdentifiers.roomMemberDetailsScreen.ignore].waitForExistence(timeout: 1))
XCTAssertFalse(app.buttons[A11yIdentifiers.roomMemberDetailsScreen.unignore].exists)
app.assertScreenshot(.roomMemberDetails)
}
func testInitialStateComponentsForIgnoredUser() {
let app = Application.launch(.roomMemberDetailsIgnoredUser)
XCTAssertFalse(app.buttons[A11yIdentifiers.roomMemberDetailsScreen.ignore].exists)
XCTAssert(app.buttons[A11yIdentifiers.roomMemberDetailsScreen.unignore].waitForExistence(timeout: 1))
app.assertScreenshot(.roomMemberDetailsIgnoredUser)
}
}
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fa29d51f482c87a93da7fd8c059215fcc3da9ef6c980a301e9507ed1f7c3c7a5
size 79947
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:20e6382f3e6befa47d6a343b63fd5e5094e66e216b50853d35555b1e1b9e86ba
size 81051
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9718639645f9d3d1c198a8c3322e7c52c23722d1020a8ee9d1009fc6312d965e
size 92445
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f698182d7eb30b43799b99e49f59422c601387ac4ddc675feecb939ff32e099d
size 94597
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fa29d51f482c87a93da7fd8c059215fcc3da9ef6c980a301e9507ed1f7c3c7a5
size 79947
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:20e6382f3e6befa47d6a343b63fd5e5094e66e216b50853d35555b1e1b9e86ba
size 81051
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9718639645f9d3d1c198a8c3322e7c52c23722d1020a8ee9d1009fc6312d965e
size 92445
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f698182d7eb30b43799b99e49f59422c601387ac4ddc675feecb939ff32e099d
size 94597