Add sunset banners guiding users to install Element X when registering against a server with MAS. (#7890)

This commit is contained in:
Doug
2025-01-10 13:22:03 +00:00
committed by GitHub
parent 7da4b1c139
commit ee2073a8e3
33 changed files with 498 additions and 60 deletions
@@ -30,6 +30,9 @@ class AuthenticationServerSelectionUITests: MockScreenTestCase {
let dismissButton = app.buttons["dismissButton"]
XCTAssertTrue(dismissButton.exists, "The dismiss button should be shown during modal presentation.")
let downloadBanner = app.buttons["sunsetBanners"]
XCTAssertFalse(downloadBanner.exists, "The sunset banners should not be shown when registering against a legacy homeserver.")
}
func testLoginState() {
@@ -76,4 +79,15 @@ class AuthenticationServerSelectionUITests: MockScreenTestCase {
let confirmButton = app.buttons["confirmButton"]
XCTAssertEqual(confirmButton.label, VectorL10n.next, "The confirm button should say Next when not in modal presentation.")
}
func testSunsetBanners() {
app.goToScreenWithIdentifier(MockAuthenticationServerSelectionScreenState.mas.title)
let downloadBanner = app.buttons["sunsetBanners"]
XCTAssertTrue(downloadBanner.exists, "The sunset banners should be shown when registering against a homeserver with MAS.")
let confirmButton = app.buttons["confirmButton"]
XCTAssertTrue(confirmButton.exists, "The confirm button should always be shown.")
XCTAssertFalse(confirmButton.isEnabled, "The confirm button should be disabled when there is an error.")
}
}