mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
General tidy-up related to QR codes. (#4865)
* Tidy-up Rust to Swift mapping. * Refactor out a dedicated QRCodeErrorView. * Use the new QRCodeErrorView for most error state snapshots. * Simplify QRCodeErrorView structure. Also updates the background to match the designs. * Fix a small compile error in the unit tests.
This commit is contained in:
@@ -629,6 +629,12 @@ extension PreviewTests {
|
||||
}
|
||||
}
|
||||
|
||||
func testQRCodeErrorView() async throws {
|
||||
for (index, preview) in QRCodeErrorView_Previews._allPreviews.enumerated() {
|
||||
try await assertSnapshots(matching: preview, step: index)
|
||||
}
|
||||
}
|
||||
|
||||
func testQRCodeLoginScreen() async throws {
|
||||
for (index, preview) in QRCodeLoginScreen_Previews._allPreviews.enumerated() {
|
||||
try await assertSnapshots(matching: preview, step: index)
|
||||
|
||||
Reference in New Issue
Block a user