Skip to content

Commit

Permalink
feat(BottomSheet): Update screenshoots
Browse files Browse the repository at this point in the history
  • Loading branch information
WanaldinoTelefonica committed Jul 26, 2023
1 parent aac8318 commit 0c75d49
Show file tree
Hide file tree
Showing 81 changed files with 0 additions and 49 deletions.
49 changes: 0 additions & 49 deletions Tests/MisticaTests/UI/SheetTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -212,60 +212,11 @@ final class SheetTests: XCTestCase {
)
)
}

// MARK: SVG compatibility

func testSVGUrl() {
let view = sheetView(
title: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
subtitle: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
description: "Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
content: makeActionContent(url: Constants.svgUrl, urlDark: Constants.svgUrlDark)
)

assertSnapshot(
matching: view,
as: .image
)

view.overrideUserInterfaceStyle = .dark
assertSnapshot(
matching: view,
as: .image
)
}

func testSVGDataUri() {
let view = sheetView(
title: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
subtitle: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
description: "Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
content: makeActionContent(url: Constants.svgUri, urlDark: Constants.svgUriDark)
)

assertSnapshot(
matching: view,
as: .image
)

view.overrideUserInterfaceStyle = .dark
assertSnapshot(
matching: view,
as: .image
)
}
}

// MARK: Utils

private extension SheetTests {
enum Constants {
static let svgUrl = "https://www.svgrepo.com/show/19461/url-link.svg"
static let svgUrlDark = "https://www.svgrepo.com/show/75701/lock.svg"
static let svgUri = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjEiIGlkPSJMYXll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CIgaGVpZ2h0PSI4MDBweCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPg0KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik03LjUgNy4zNzVDNy41IDYuMzM5NDcgOC4zMzk0NyA1LjUgOS4zNzUgNS41QzEwLjQxMDUgNS41IDExLjI1IDYuMzM5NDcgMTEuMjUgNy4zNzVWMTYuNjI1QzExLjI1IDE4LjQ4OSAxMi43NjEgMjAgMTQuNjI1IDIwQzE2LjQ4OSAyMCAxOCAxOC40ODkgMTggMTYuNjI1VjExLjgxMDdMMTkuMjE5NyAxMy4wMzAzTDIwLjI4MDMgMTEuOTY5N0wxNy4yNSA4LjkzOTM0TDE0LjIxOTcgMTEuOTY5N0wxNS4yODAzIDEzLjAzMDNMMTYuNSAxMS44MTA3VjE2LjYyNUMxNi41IDE3LjY2MDUgMTUuNjYwNSAxOC41IDE0LjYyNSAxOC41QzEzLjU4OTUgMTguNSAxMi43NSAxNy42NjA1IDEyLjc1IDE2LjYyNVY3LjM3NUMxMi43NSA1LjUxMTA0IDExLjIzOSA0IDkuMzc1IDRDNy41MTEwNCA0IDYgNS41MTEwNCA2IDcuMzc1VjkuNUg0VjE1SDkuNVY5LjVINy41VjcuMzc1Wk01LjUgMTFWMTMuNUg4VjExSDUuNVoiIGZpbGw9IiMxRjIzMjgiLz4NCjwvc3ZnPg=="
}

var iconPath: String {
guard let url = Bundle.module.url(forResource: "circleRed", withExtension: "png") else {
fatalError("Asset named circleRed not found")
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0c75d49

Please sign in to comment.