mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Accept and decline invites (#806)
* Add accept/decline invite api * Fix isDirect logic * Add logic for accepting/decling invites * Add error handling structure * Add decline alert * Add navigation to joined room * Add generic error * Add changelog.d file * Cleanup * Fix failing UTs * Add UTs * Add UI tests * Cleanup * Update ref screenshots * Refactor invitesScreen state * Improve switch handling in UserSessionFlowCoordinator * Fix build error
This commit is contained in:
@@ -28,4 +28,13 @@ class InvitesScreenUITests: XCTestCase {
|
||||
XCTAssertTrue(app.staticTexts[A11yIdentifiers.invitesScreen.noInvites].exists)
|
||||
app.assertScreenshot(.invitesNoInvites)
|
||||
}
|
||||
|
||||
func testDeclineInvite() {
|
||||
let app = Application.launch(.invites)
|
||||
let declineButton = app.buttons[A11yIdentifiers.invitesScreen.decline].firstMatch
|
||||
XCTAssert(declineButton.exists)
|
||||
declineButton.tap()
|
||||
XCTAssertEqual(app.alerts.count, 1)
|
||||
app.assertScreenshot(.invites, step: 1)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:227793880d0425d98c0dbb1d8a5f6439432383d9a9506030b9f4838bf9c0ce4d
|
||||
size 188175
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:da9cae78d8cf7592e20aedd014801c912e0feb90a1a9365b6ed99bea5b11bc1f
|
||||
size 356615
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:3221977873adc6942d96a283f8625a835277201db4897a72fd6942a8191ed221
|
||||
size 233543
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0fe7a52291eb74567927f6da56a533f1dfc616a899d1174e65d36198ca65ca11
|
||||
size 461856
|
||||
Reference in New Issue
Block a user