mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Use the new notification sound. (#4572)
* Use the new notification sound. * Add a banner informing the user of the new notification sound.
This commit is contained in:
@@ -362,6 +362,19 @@ class HomeScreenViewModelTests: XCTestCase {
|
||||
try await deferredAction.fulfill()
|
||||
}
|
||||
|
||||
func testNewSoundBanner() {
|
||||
appSettings.hasSeenNewSoundBanner = false
|
||||
|
||||
setupViewModel()
|
||||
XCTAssertTrue(context.viewState.shouldShowBanner)
|
||||
XCTAssertTrue(context.viewState.shouldShowNewSoundBanner)
|
||||
|
||||
context.send(viewAction: .dismissNewSoundBanner)
|
||||
XCTAssertFalse(context.viewState.shouldShowBanner)
|
||||
XCTAssertFalse(context.viewState.shouldShowNewSoundBanner)
|
||||
XCTAssertTrue(appSettings.hasSeenNewSoundBanner)
|
||||
}
|
||||
|
||||
// MARK: - Helpers
|
||||
|
||||
enum InviteType { case rooms, spaces }
|
||||
|
||||
Reference in New Issue
Block a user