Edit the room Notification setting (#1394)

This commit is contained in:
Nicolas Mauri
2023-07-26 11:27:14 +02:00
committed by GitHub
parent ed28bc5d02
commit ed68ed1c91
28 changed files with 836 additions and 22 deletions
@@ -0,0 +1,33 @@
//
// Copyright 2022 New Vector Ltd
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
import ElementX
import XCTest
@MainActor
class RoomNotificationSettingsScreenUITests: XCTestCase {
func testDefaultSetting() async throws {
let app = Application.launch(.roomNotificationSettingsDefaultSetting)
XCTAssertFalse(app.switches[A11yIdentifiers.roomNotificationSettingsScreen.allowCustomSetting].isOn)
try await app.assertScreenshot(.roomNotificationSettingsDefaultSetting)
}
func testCustomSettings() async throws {
let app = Application.launch(.roomNotificationSettingsCustomSetting)
XCTAssert(app.switches[A11yIdentifiers.roomNotificationSettingsScreen.allowCustomSetting].isOn)
try await app.assertScreenshot(.roomNotificationSettingsCustomSetting)
}
}
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:31971d8da2139d035c3dd59c595ea887ecd33a11c496464a4798dabb04503ab1
size 91579
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6360b213d0c017f9dcf7747e621887c4dab3995e4603e87440bcfa7f1b9661be
size 89003
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1ec5118beb0691f8df57b51c372d0df418c63dc1b73233efea058da41291e9e3
size 107915
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:aabd8e46d32b82e9a69081de0ba2d6ea505fb1f1c9bd649b87695b33556112dd
size 101243
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f68bab9b84c6747f8ea4610da46c3c79b138bfb95d75216a62e05c28c9ce2373
size 99103
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:911c455aadd9bb40c83b7f759cd51f03c2d091855274550de31f35a0a9001d9a
size 99273
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5bcf4fd1f00368481f8688abdb60bffe8aa65234d64f6bf44d9ff9dfe0421b25
size 141085
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fe711a53de7a85957694d9f19ef81f99ec3e51dddcda0f6537d4fcfd7ceb9906
size 126350