Mercurial > public > simoleon
diff Simoleon/Helpers/CurrencySelector.swift @ 93:529feb1fc8d5
Added UI Tests for capture screenshots
author | Dennis Concepción Martín <dennisconcepcionmartin@gmail.com> |
---|---|
date | Tue, 03 Aug 2021 12:33:32 +0100 |
parents | 1069c33d3a42 |
children | 599fe95307f6 |
line wrap: on
line diff
--- a/Simoleon/Helpers/CurrencySelector.swift Tue Aug 03 10:10:14 2021 +0100 +++ b/Simoleon/Helpers/CurrencySelector.swift Tue Aug 03 12:33:32 2021 +0100 @@ -40,6 +40,7 @@ VStack { SearchBar(placeholder: "Search...", text: $searchCurrency) .padding() + .accessibilityIdentifier("SearchBar") if entitlementIsActive { List(searchResults, id: \.self) { currencyPair in @@ -49,6 +50,7 @@ }) { CurrencyRow(currencyPairName: currencyPair.name) } + .accessibilityIdentifier("CurrencyRow") } .listStyle() } else { @@ -96,6 +98,9 @@ // Check if user subscription is active private func checkEntitlement() { + #if DEBUG + entitlementIsActive = true + #else Purchases.shared.purchaserInfo { (purchaserInfo, error) in if purchaserInfo?.entitlements["all"]?.isActive == true { entitlementIsActive = true @@ -107,6 +112,7 @@ showingAlert = true } } + #endif } } extension View {