mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 01:40:12 +01:00
FIX: Changes
This commit is contained in:
parent
d89c8d7602
commit
964d46a8aa
@ -13,7 +13,7 @@ package io.bluewallet.bluewallet;
|
||||
|
||||
@RunWith(AndroidJUnit4.class)
|
||||
@LargeTest
|
||||
public class DetoxTest {
|
||||
public class DetoxTest {
|
||||
// Replace 'MainActivity' with the value of android:name entry in
|
||||
// <activity> in AndroidManifest.xml
|
||||
@Rule
|
||||
|
@ -172,8 +172,6 @@
|
||||
B4EFF73B2C3F6C5E0095D655 /* MockData.swift in Sources */ = {isa = PBXBuildFile; fileRef = B4EFF73A2C3F6C5E0095D655 /* MockData.swift */; };
|
||||
B4EFF73C2C3F6C5E0095D655 /* MockData.swift in Sources */ = {isa = PBXBuildFile; fileRef = B4EFF73A2C3F6C5E0095D655 /* MockData.swift */; };
|
||||
B4EFF73D2C3F6C6C0095D655 /* MarketData.swift in Sources */ = {isa = PBXBuildFile; fileRef = B44033E82BCC371A00162242 /* MarketData.swift */; };
|
||||
B4EFF73F2C3F6C870095D655 /* PriceViewTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = B4EFF73E2C3F6C870095D655 /* PriceViewTests.swift */; };
|
||||
B4EFF7402C3F6C870095D655 /* PriceViewTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = B4EFF73E2C3F6C870095D655 /* PriceViewTests.swift */; };
|
||||
B4EFF7412C3F6C960095D655 /* PriceWidget.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6D6CA4BC255872E3009312A5 /* PriceWidget.swift */; };
|
||||
B4EFF7422C3F6C990095D655 /* PriceView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6D6CA5272558EC52009312A5 /* PriceView.swift */; };
|
||||
B4EFF7432C3F6F650095D655 /* Currency.swift in Sources */ = {isa = PBXBuildFile; fileRef = B44033C92BCC350A00162242 /* Currency.swift */; };
|
||||
@ -475,7 +473,6 @@
|
||||
B4D0B2672C1DED67006B6B1B /* ReceiveMethod.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ReceiveMethod.swift; sourceTree = "<group>"; };
|
||||
B4D3235A177F4580BA52F2F9 /* libRNCSlider.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libRNCSlider.a; sourceTree = "<group>"; };
|
||||
B4EFF73A2C3F6C5E0095D655 /* MockData.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MockData.swift; sourceTree = "<group>"; };
|
||||
B4EFF73E2C3F6C870095D655 /* PriceViewTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PriceViewTests.swift; sourceTree = "<group>"; };
|
||||
B642AFB13483418CAB6FF25E /* libRCTQRCodeLocalImage.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libRCTQRCodeLocalImage.a; sourceTree = "<group>"; };
|
||||
B68F8552DD4428F64B11DCFB /* Pods-BlueWallet.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-BlueWallet.debug.xcconfig"; path = "Target Support Files/Pods-BlueWallet/Pods-BlueWallet.debug.xcconfig"; sourceTree = "<group>"; };
|
||||
B9D9B3A7B2CB4255876B67AF /* libz.tbd */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libz.tbd; path = usr/lib/libz.tbd; sourceTree = SDKROOT; };
|
||||
@ -566,7 +563,6 @@
|
||||
00E356F01AD99517003FC87E /* Supporting Files */,
|
||||
B49038D82B8FBAD300A8164A /* BlueWalletUITest.swift */,
|
||||
B4EFF73A2C3F6C5E0095D655 /* MockData.swift */,
|
||||
B4EFF73E2C3F6C870095D655 /* PriceViewTests.swift */,
|
||||
);
|
||||
path = BlueWalletTests;
|
||||
sourceTree = "<group>";
|
||||
@ -1649,7 +1645,6 @@
|
||||
B44033E52BCC36FF00162242 /* WalletData.swift in Sources */,
|
||||
B44033EF2BCC374500162242 /* Numeric+abbreviated.swift in Sources */,
|
||||
B4D0B2622C1DEA11006B6B1B /* ReceivePageInterfaceController.swift in Sources */,
|
||||
B4EFF73F2C3F6C870095D655 /* PriceViewTests.swift in Sources */,
|
||||
B44033D02BCC352F00162242 /* UserDefaultsGroup.swift in Sources */,
|
||||
B44033C52BCC332400162242 /* Balance.swift in Sources */,
|
||||
6D4AF18425D215D1009DD853 /* UserDefaultsExtension.swift in Sources */,
|
||||
@ -1672,7 +1667,6 @@
|
||||
B4EFF7432C3F6F650095D655 /* Currency.swift in Sources */,
|
||||
B4EFF7412C3F6C960095D655 /* PriceWidget.swift in Sources */,
|
||||
B4EFF7462C3F6FF90095D655 /* WalletData.swift in Sources */,
|
||||
B4EFF7402C3F6C870095D655 /* PriceViewTests.swift in Sources */,
|
||||
B4EFF7452C3F6FF30095D655 /* Placeholders.swift in Sources */,
|
||||
B4EFF7442C3F6F6A0095D655 /* FiatUnit.swift in Sources */,
|
||||
B47B21EC2B2128B8001F6690 /* BlueWalletUITests.swift in Sources */,
|
||||
|
@ -0,0 +1,42 @@
|
||||
{
|
||||
"originHash" : "52530e6b1e3a85c8854952ef703a6d1bbe1acd82713be2b3166476b9b277db23",
|
||||
"pins" : [
|
||||
{
|
||||
"identity" : "bugsnag-cocoa",
|
||||
"kind" : "remoteSourceControl",
|
||||
"location" : "https://github.com/bugsnag/bugsnag-cocoa",
|
||||
"state" : {
|
||||
"revision" : "16b9145fc66e5296f16e733f6feb5d0e450574e8",
|
||||
"version" : "6.28.1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"identity" : "efqrcode",
|
||||
"kind" : "remoteSourceControl",
|
||||
"location" : "https://github.com/EFPrefix/EFQRCode.git",
|
||||
"state" : {
|
||||
"revision" : "2991c2f318ad9529d93b2a73a382a3f9c72c64ce",
|
||||
"version" : "6.2.2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"identity" : "keychain-swift",
|
||||
"kind" : "remoteSourceControl",
|
||||
"location" : "https://github.com/evgenyneu/keychain-swift.git",
|
||||
"state" : {
|
||||
"revision" : "5e1b02b6a9dac2a759a1d5dbc175c86bd192a608",
|
||||
"version" : "24.0.0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"identity" : "swift_qrcodejs",
|
||||
"kind" : "remoteSourceControl",
|
||||
"location" : "https://github.com/ApolloZhu/swift_qrcodejs.git",
|
||||
"state" : {
|
||||
"revision" : "374dc7f7b9e76c6aeb393f6a84590c6d387e1ecb",
|
||||
"version" : "2.2.2"
|
||||
}
|
||||
}
|
||||
],
|
||||
"version" : 3
|
||||
}
|
@ -1,75 +0,0 @@
|
||||
//
|
||||
// PriceViewTests.swift
|
||||
// BlueWallet
|
||||
//
|
||||
// Created by Marcos Rodriguez on 7/10/24.
|
||||
// Copyright © 2024 BlueWallet. All rights reserved.
|
||||
//
|
||||
|
||||
import XCTest
|
||||
import SwiftUI
|
||||
import WidgetKit
|
||||
|
||||
@testable import BlueWallet
|
||||
|
||||
class PriceViewTests: XCTestCase {
|
||||
|
||||
func testAccessoryCircularView() {
|
||||
guard #available(iOS 16.0, *) else { return }
|
||||
let entry = PriceWidgetEntry(date: Date(), family: .accessoryCircular, currentMarketData: MockData.currentMarketData, previousMarketData: MockData.previousMarketData)
|
||||
let view = PriceView(entry: entry)
|
||||
let exp = expectation(description: "Test Circular View")
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 5.0) {
|
||||
XCTAssertNotNil(view.body)
|
||||
exp.fulfill()
|
||||
}
|
||||
waitForExpectations(timeout: 10.0, handler: nil)
|
||||
}
|
||||
|
||||
func testAccessoryInlineView() {
|
||||
guard #available(iOS 16.0, *) else { return }
|
||||
let entry = PriceWidgetEntry(date: Date(), family: .accessoryInline, currentMarketData: MockData.currentMarketData, previousMarketData: MockData.previousMarketData)
|
||||
let view = PriceView(entry: entry)
|
||||
let exp = expectation(description: "Test Inline View")
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 5.0) {
|
||||
XCTAssertNotNil(view.body)
|
||||
exp.fulfill()
|
||||
}
|
||||
waitForExpectations(timeout: 10.0, handler: nil)
|
||||
}
|
||||
|
||||
func testAccessoryRectangularView() {
|
||||
guard #available(iOS 16.0, *) else { return }
|
||||
let entry = PriceWidgetEntry(date: Date(), family: .accessoryRectangular, currentMarketData: MockData.currentMarketData, previousMarketData: MockData.previousMarketData)
|
||||
let view = PriceView(entry: entry)
|
||||
let exp = expectation(description: "Test Rectangular View")
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 5.0) {
|
||||
XCTAssertNotNil(view.body)
|
||||
exp.fulfill()
|
||||
}
|
||||
waitForExpectations(timeout: 10.0, handler: nil)
|
||||
}
|
||||
|
||||
func testDefaultView() {
|
||||
let entry = PriceWidgetEntry(date: Date(), family: .systemSmall, currentMarketData: MockData.currentMarketData, previousMarketData: MockData.previousMarketData)
|
||||
let view = PriceView(entry: entry)
|
||||
let exp = expectation(description: "Test Default View")
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 5.0) {
|
||||
XCTAssertNotNil(view.body)
|
||||
exp.fulfill()
|
||||
}
|
||||
waitForExpectations(timeout: 10.0, handler: nil)
|
||||
}
|
||||
|
||||
func testNoChangeCircularView() {
|
||||
guard #available(iOS 16.0, *) else { return }
|
||||
let entry = PriceWidgetEntry(date: Date(), family: .accessoryCircular, currentMarketData: MockData.noChangeMarketData, previousMarketData: MockData.noChangeMarketData)
|
||||
let view = PriceView(entry: entry)
|
||||
let exp = expectation(description: "Test No Change Circular View")
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 5.0) {
|
||||
XCTAssertNotNil(view.body)
|
||||
exp.fulfill()
|
||||
}
|
||||
waitForExpectations(timeout: 10.0, handler: nil)
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user