-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
25abd7e
commit 8128aca
Showing
8 changed files
with
129 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import SnapshotTesting | ||
import SwiftUI | ||
@testable import Web3ModalUI | ||
import XCTest | ||
|
||
final class W3MActionEntrySnapshotTests: XCTestCase { | ||
|
||
func test_snapshots() throws { | ||
let view = W3MActionEntryStylePreviewView() | ||
assertSnapshot(matching: view, as: .image(layout: .device(config: .iPhone13), traits: .init(userInterfaceStyle: .dark))) | ||
assertSnapshot(matching: view, as: .image(layout: .device(config: .iPhone13), traits: .init(userInterfaceStyle: .light))) | ||
} | ||
} | ||
//import SnapshotTesting | ||
//import SwiftUI | ||
//@testable import Web3ModalUI | ||
//import XCTest | ||
// | ||
//final class W3MActionEntrySnapshotTests: XCTestCase { | ||
// | ||
// func test_snapshots() throws { | ||
// let view = W3MActionEntryStylePreviewView() | ||
// assertSnapshot(matching: view, as: .image(layout: .device(config: .iPhone13), traits: .init(userInterfaceStyle: .dark))) | ||
// assertSnapshot(matching: view, as: .image(layout: .device(config: .iPhone13), traits: .init(userInterfaceStyle: .light))) | ||
// } | ||
//} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import SnapshotTesting | ||
import SwiftUI | ||
@testable import Web3ModalUI | ||
import XCTest | ||
|
||
final class W3MButtonSnapshotTests: XCTestCase { | ||
|
||
func test_snapshots() throws { | ||
let view = W3MButtonStylePreviewView() | ||
assertSnapshot(matching: view, as: .image(layout: .device(config: .iPhone13), traits: .init(userInterfaceStyle: .dark))) | ||
assertSnapshot(matching: view, as: .image(layout: .device(config: .iPhone13), traits: .init(userInterfaceStyle: .light))) | ||
} | ||
} | ||
//import SnapshotTesting | ||
//import SwiftUI | ||
//@testable import Web3ModalUI | ||
//import XCTest | ||
// | ||
//final class W3MButtonSnapshotTests: XCTestCase { | ||
// | ||
// func test_snapshots() throws { | ||
// let view = W3MButtonStylePreviewView() | ||
// assertSnapshot(matching: view, as: .image(layout: .device(config: .iPhone13), traits: .init(userInterfaceStyle: .dark))) | ||
// assertSnapshot(matching: view, as: .image(layout: .device(config: .iPhone13), traits: .init(userInterfaceStyle: .light))) | ||
// } | ||
//} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import SnapshotTesting | ||
import SwiftUI | ||
@testable import Web3ModalUI | ||
import XCTest | ||
|
||
final class W3MCardSelectSnapshotTests: XCTestCase { | ||
|
||
func test_snapshots() throws { | ||
let view = W3MCardSelectStylePreviewView() | ||
assertSnapshot(matching: view, as: .image(traits: .init(userInterfaceStyle: .dark))) | ||
assertSnapshot(matching: view, as: .image(traits: .init(userInterfaceStyle: .light))) | ||
} | ||
} | ||
//import SnapshotTesting | ||
//import SwiftUI | ||
//@testable import Web3ModalUI | ||
//import XCTest | ||
// | ||
//final class W3MCardSelectSnapshotTests: XCTestCase { | ||
// | ||
// func test_snapshots() throws { | ||
// let view = W3MCardSelectStylePreviewView() | ||
// assertSnapshot(matching: view, as: .image(traits: .init(userInterfaceStyle: .dark))) | ||
// assertSnapshot(matching: view, as: .image(traits: .init(userInterfaceStyle: .light))) | ||
// } | ||
//} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import SnapshotTesting | ||
import SwiftUI | ||
@testable import Web3ModalUI | ||
import XCTest | ||
|
||
final class W3MChipButtonSnapshotTests: XCTestCase { | ||
|
||
func test_snapshots() throws { | ||
let view = W3MChipButtonStylePreviewView() | ||
assertSnapshot(matching: view, as: .image(layout: .fixed(width: 800, height: 800), traits: .init(userInterfaceStyle: .dark))) | ||
assertSnapshot(matching: view, as: .image(layout: .fixed(width: 800, height: 800), traits: .init(userInterfaceStyle: .light))) | ||
} | ||
} | ||
//import SnapshotTesting | ||
//import SwiftUI | ||
//@testable import Web3ModalUI | ||
//import XCTest | ||
// | ||
//final class W3MChipButtonSnapshotTests: XCTestCase { | ||
// | ||
// func test_snapshots() throws { | ||
// let view = W3MChipButtonStylePreviewView() | ||
// assertSnapshot(matching: view, as: .image(layout: .fixed(width: 800, height: 800), traits: .init(userInterfaceStyle: .dark))) | ||
// assertSnapshot(matching: view, as: .image(layout: .fixed(width: 800, height: 800), traits: .init(userInterfaceStyle: .light))) | ||
// } | ||
//} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
import SnapshotTesting | ||
import SwiftUI | ||
@testable import Web3ModalUI | ||
import XCTest | ||
|
||
final class W3MListItemSnapshotTests: XCTestCase { | ||
func test_snapshots() throws { | ||
let view = W3MListItemButtonStylePreviewView() | ||
|
||
assertSnapshot(matching: view, as: .image(layout: .device(config: .iPhone13), traits: .init(userInterfaceStyle: .dark))) | ||
assertSnapshot(matching: view, as: .image(layout: .device(config: .iPhone13), traits: .init(userInterfaceStyle: .light))) | ||
|
||
assertSnapshot( | ||
matching: view, | ||
as: .image( | ||
layout: .device(config: .iPhone13), | ||
traits: UITraitCollection( | ||
traitsFrom: [ | ||
.init(userInterfaceStyle: .dark), | ||
.init(preferredContentSizeCategory: .accessibilityExtraExtraLarge) | ||
] | ||
) | ||
) | ||
) | ||
} | ||
} | ||
//import SnapshotTesting | ||
//import SwiftUI | ||
//@testable import Web3ModalUI | ||
//import XCTest | ||
// | ||
//final class W3MListItemSnapshotTests: XCTestCase { | ||
// func test_snapshots() throws { | ||
// let view = W3MListItemButtonStylePreviewView() | ||
// | ||
// assertSnapshot(matching: view, as: .image(layout: .device(config: .iPhone13), traits: .init(userInterfaceStyle: .dark))) | ||
// assertSnapshot(matching: view, as: .image(layout: .device(config: .iPhone13), traits: .init(userInterfaceStyle: .light))) | ||
// | ||
// assertSnapshot( | ||
// matching: view, | ||
// as: .image( | ||
// layout: .device(config: .iPhone13), | ||
// traits: UITraitCollection( | ||
// traitsFrom: [ | ||
// .init(userInterfaceStyle: .dark), | ||
// .init(preferredContentSizeCategory: .accessibilityExtraExtraLarge) | ||
// ] | ||
// ) | ||
// ) | ||
// ) | ||
// } | ||
//} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
import SnapshotTesting | ||
import SwiftUI | ||
@testable import Web3ModalUI | ||
import XCTest | ||
|
||
final class W3MListSelectSnapshotTests: XCTestCase { | ||
func test_snapshots() throws { | ||
let view = W3MListSelectStylePreviewView() | ||
assertSnapshot(matching: view, as: .image(layout: .device(config: .iPhone13), traits: .init(userInterfaceStyle: .dark))) | ||
assertSnapshot(matching: view, as: .image(layout: .device(config: .iPhone13), traits: .init(userInterfaceStyle: .light))) | ||
|
||
assertSnapshot( | ||
matching: view, | ||
as: .image( | ||
layout: .device(config: .iPhone13), | ||
traits: UITraitCollection( | ||
traitsFrom: [ | ||
.init(userInterfaceStyle: .dark), | ||
.init(preferredContentSizeCategory: .accessibilityExtraExtraLarge) | ||
] | ||
) | ||
) | ||
) | ||
} | ||
} | ||
//import SnapshotTesting | ||
//import SwiftUI | ||
//@testable import Web3ModalUI | ||
//import XCTest | ||
// | ||
//final class W3MListSelectSnapshotTests: XCTestCase { | ||
// func test_snapshots() throws { | ||
// let view = W3MListSelectStylePreviewView() | ||
// assertSnapshot(matching: view, as: .image(layout: .device(config: .iPhone13), traits: .init(userInterfaceStyle: .dark))) | ||
// assertSnapshot(matching: view, as: .image(layout: .device(config: .iPhone13), traits: .init(userInterfaceStyle: .light))) | ||
// | ||
// assertSnapshot( | ||
// matching: view, | ||
// as: .image( | ||
// layout: .device(config: .iPhone13), | ||
// traits: UITraitCollection( | ||
// traitsFrom: [ | ||
// .init(userInterfaceStyle: .dark), | ||
// .init(preferredContentSizeCategory: .accessibilityExtraExtraLarge) | ||
// ] | ||
// ) | ||
// ) | ||
// ) | ||
// } | ||
//} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import SnapshotTesting | ||
import SwiftUI | ||
@testable import Web3ModalUI | ||
import XCTest | ||
|
||
final class W3MTagSnapshotTests: XCTestCase { | ||
|
||
func test_snapshots() throws { | ||
let view = W3MTagPreviewView() | ||
assertSnapshot(matching: view, as: .image(layout: .fixed(width: 150, height: 250), traits: .init(userInterfaceStyle: .dark))) | ||
assertSnapshot(matching: view, as: .image(layout: .fixed(width: 150, height: 250), traits: .init(userInterfaceStyle: .light))) | ||
} | ||
} | ||
//import SnapshotTesting | ||
//import SwiftUI | ||
//@testable import Web3ModalUI | ||
//import XCTest | ||
// | ||
//final class W3MTagSnapshotTests: XCTestCase { | ||
// | ||
// func test_snapshots() throws { | ||
// let view = W3MTagPreviewView() | ||
// assertSnapshot(matching: view, as: .image(layout: .fixed(width: 150, height: 250), traits: .init(userInterfaceStyle: .dark))) | ||
// assertSnapshot(matching: view, as: .image(layout: .fixed(width: 150, height: 250), traits: .init(userInterfaceStyle: .light))) | ||
// } | ||
//} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import SnapshotTesting | ||
import SwiftUI | ||
@testable import Web3ModalUI | ||
import XCTest | ||
|
||
final class W3MToastSnapshotTests: XCTestCase { | ||
|
||
func test_snapshots() throws { | ||
let view = ToastViewPreviewView() | ||
assertSnapshot(matching: view, as: .image(layout: .fixed(width: 250, height: 250), traits: .init(userInterfaceStyle: .dark))) | ||
assertSnapshot(matching: view, as: .image(layout: .fixed(width: 250, height: 250), traits: .init(userInterfaceStyle: .light))) | ||
} | ||
} | ||
//import SnapshotTesting | ||
//import SwiftUI | ||
//@testable import Web3ModalUI | ||
//import XCTest | ||
// | ||
//final class W3MToastSnapshotTests: XCTestCase { | ||
// | ||
// func test_snapshots() throws { | ||
// let view = ToastViewPreviewView() | ||
// assertSnapshot(matching: view, as: .image(layout: .fixed(width: 250, height: 250), traits: .init(userInterfaceStyle: .dark))) | ||
// assertSnapshot(matching: view, as: .image(layout: .fixed(width: 250, height: 250), traits: .init(userInterfaceStyle: .light))) | ||
// } | ||
//} |