summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2020-09-10 18:14:06 +0200
committerAndrej Mihajlov <and@mullvad.net>2020-09-10 18:14:06 +0200
commite9c32c276eb68a6a1ea65214367600f5a47a1418 (patch)
tree928d1a51411753133f5598e5334f32b91fa612d0
parent3c83edbf2027ddf55f7fd36d33ca20b6eef20773 (diff)
parent71a4e10d4e03d81d219a80a05c63fb77346e591a (diff)
downloadmullvadvpn-e9c32c276eb68a6a1ea65214367600f5a47a1418.tar.xz
mullvadvpn-e9c32c276eb68a6a1ea65214367600f5a47a1418.zip
Merge branch 'update-screenshot-script'
-rw-r--r--ios/Gemfile2
-rw-r--r--ios/Gemfile.lock99
-rw-r--r--ios/MullvadVPN.xcodeproj/xcshareddata/xcschemes/MullvadVPNScreenshots.xcscheme38
-rw-r--r--ios/MullvadVPN/ConnectViewController.swift3
-rw-r--r--ios/MullvadVPN/ConsentViewController.xib8
-rw-r--r--ios/MullvadVPN/HeaderBarView.swift1
-rw-r--r--ios/MullvadVPN/SelectLocationCell.swift1
-rw-r--r--ios/MullvadVPN/SettingsViewController.swift1
-rw-r--r--ios/MullvadVPNScreenshots/MullvadVPNScreenshots.swift7
-rw-r--r--ios/MullvadVPNScreenshots/SnapshotHelper.swift53
-rw-r--r--ios/Snapfile3
11 files changed, 83 insertions, 133 deletions
diff --git a/ios/Gemfile b/ios/Gemfile
index 57da52eb57..41ae6bb247 100644
--- a/ios/Gemfile
+++ b/ios/Gemfile
@@ -1,3 +1,3 @@
source "https://rubygems.org"
-gem "fastlane", "~> 2.144.0"
+gem "fastlane", "~> 2.158.0"
diff --git a/ios/Gemfile.lock b/ios/Gemfile.lock
index dc3a499100..7afc6bb070 100644
--- a/ios/Gemfile.lock
+++ b/ios/Gemfile.lock
@@ -5,71 +5,70 @@ GEM
addressable (2.7.0)
public_suffix (>= 2.0.2, < 5.0)
atomos (0.1.3)
- aws-eventstream (1.0.3)
- aws-partitions (1.291.0)
- aws-sdk-core (3.92.0)
- aws-eventstream (~> 1.0, >= 1.0.2)
+ aws-eventstream (1.1.0)
+ aws-partitions (1.365.0)
+ aws-sdk-core (3.105.0)
+ aws-eventstream (~> 1, >= 1.0.2)
aws-partitions (~> 1, >= 1.239.0)
aws-sigv4 (~> 1.1)
jmespath (~> 1.0)
- aws-sdk-kms (1.30.0)
- aws-sdk-core (~> 3, >= 3.71.0)
+ aws-sdk-kms (1.37.0)
+ aws-sdk-core (~> 3, >= 3.99.0)
aws-sigv4 (~> 1.1)
- aws-sdk-s3 (1.61.1)
- aws-sdk-core (~> 3, >= 3.83.0)
+ aws-sdk-s3 (1.79.1)
+ aws-sdk-core (~> 3, >= 3.104.3)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.1)
- aws-sigv4 (1.1.1)
- aws-eventstream (~> 1.0, >= 1.0.2)
+ aws-sigv4 (1.2.2)
+ aws-eventstream (~> 1, >= 1.0.2)
babosa (1.0.3)
claide (1.0.3)
colored (1.2)
colored2 (3.1.2)
commander-fastlane (4.4.6)
highline (~> 1.7.2)
- declarative (0.0.10)
+ declarative (0.0.20)
declarative-option (0.1.0)
- digest-crc (0.5.1)
+ digest-crc (0.6.1)
+ rake (~> 13.0)
domain_name (0.5.20190701)
unf (>= 0.0.5, < 1.0.0)
- dotenv (2.7.5)
- emoji_regex (1.0.1)
- excon (0.73.0)
- faraday (0.17.3)
+ dotenv (2.7.6)
+ emoji_regex (3.0.0)
+ excon (0.76.0)
+ faraday (1.0.1)
multipart-post (>= 1.2, < 3)
- faraday-cookie_jar (0.0.6)
- faraday (>= 0.7.4)
+ faraday-cookie_jar (0.0.7)
+ faraday (>= 0.8.0)
http-cookie (~> 1.0.0)
- faraday_middleware (0.13.1)
- faraday (>= 0.7.4, < 1.0)
- fastimage (2.1.7)
- fastlane (2.144.0)
+ faraday_middleware (1.0.0)
+ faraday (~> 1.0)
+ fastimage (2.2.0)
+ fastlane (2.158.0)
CFPropertyList (>= 2.3, < 4.0.0)
addressable (>= 2.3, < 3.0.0)
aws-sdk-s3 (~> 1.0)
- babosa (>= 1.0.2, < 2.0.0)
+ babosa (>= 1.0.3, < 2.0.0)
bundler (>= 1.12.0, < 3.0.0)
colored
commander-fastlane (>= 4.4.6, < 5.0.0)
dotenv (>= 2.1.1, < 3.0.0)
- emoji_regex (>= 0.1, < 2.0)
+ emoji_regex (>= 0.1, < 4.0)
excon (>= 0.71.0, < 1.0.0)
- faraday (~> 0.17)
+ faraday (~> 1.0)
faraday-cookie_jar (~> 0.0.6)
- faraday_middleware (~> 0.13.1)
+ faraday_middleware (~> 1.0)
fastimage (>= 2.1.0, < 3.0.0)
gh_inspector (>= 1.1.2, < 2.0.0)
- google-api-client (>= 0.29.2, < 0.37.0)
+ google-api-client (>= 0.37.0, < 0.39.0)
google-cloud-storage (>= 1.15.0, < 2.0.0)
highline (>= 1.7.2, < 2.0.0)
json (< 3.0.0)
- jwt (~> 2.1.0)
+ jwt (>= 2.1.0, < 3)
mini_magick (>= 4.9.4, < 5.0.0)
- multi_xml (~> 0.5)
multipart-post (~> 2.0.0)
plist (>= 3.1.0, < 4.0.0)
- public_suffix (~> 2.0.0)
- rubyzip (>= 1.3.0, < 2.0.0)
+ rubyzip (>= 2.0.0, < 3.0.0)
security (= 0.1.3)
simctl (~> 1.6.3)
slack-notifier (>= 2.0.0, < 3.0.0)
@@ -82,7 +81,7 @@ GEM
xcpretty (~> 0.3.0)
xcpretty-travis-formatter (>= 0.0.3)
gh_inspector (1.1.3)
- google-api-client (0.36.4)
+ google-api-client (0.38.0)
addressable (~> 2.5, >= 2.5.1)
googleauth (~> 0.9)
httpclient (>= 2.8.1, < 3.0)
@@ -93,50 +92,50 @@ GEM
google-cloud-core (1.5.0)
google-cloud-env (~> 1.0)
google-cloud-errors (~> 1.0)
- google-cloud-env (1.3.1)
+ google-cloud-env (1.3.3)
faraday (>= 0.17.3, < 2.0)
- google-cloud-errors (1.0.0)
- google-cloud-storage (1.25.1)
+ google-cloud-errors (1.0.1)
+ google-cloud-storage (1.28.0)
addressable (~> 2.5)
digest-crc (~> 0.4)
google-api-client (~> 0.33)
google-cloud-core (~> 1.2)
googleauth (~> 0.9)
mini_mime (~> 1.0)
- googleauth (0.11.0)
+ googleauth (0.13.1)
faraday (>= 0.17.3, < 2.0)
jwt (>= 1.4, < 3.0)
memoist (~> 0.16)
multi_json (~> 1.11)
os (>= 0.9, < 2.0)
- signet (~> 0.12)
+ signet (~> 0.14)
highline (1.7.10)
http-cookie (1.0.3)
domain_name (~> 0.5)
httpclient (2.8.3)
jmespath (1.4.0)
- json (2.3.0)
- jwt (2.1.0)
+ json (2.3.1)
+ jwt (2.2.2)
memoist (0.16.2)
mini_magick (4.10.1)
mini_mime (1.0.2)
- multi_json (1.14.1)
- multi_xml (0.6.0)
+ multi_json (1.15.0)
multipart-post (2.0.0)
- nanaimo (0.2.6)
+ nanaimo (0.3.0)
naturally (2.2.0)
- os (1.1.0)
+ os (1.1.1)
plist (3.5.0)
- public_suffix (2.0.5)
+ public_suffix (4.0.6)
+ rake (13.0.1)
representable (3.0.4)
declarative (< 0.1.0)
declarative-option (< 0.2.0)
uber (< 0.2.0)
retriable (3.1.2)
rouge (2.0.7)
- rubyzip (1.3.0)
+ rubyzip (2.3.0)
security (0.1.3)
- signet (0.13.2)
+ signet (0.14.0)
addressable (~> 2.3)
faraday (>= 0.17.3, < 2.0)
jwt (>= 1.5, < 3.0)
@@ -149,7 +148,7 @@ GEM
terminal-table (1.8.0)
unicode-display_width (~> 1.1, >= 1.1.1)
tty-cursor (0.7.1)
- tty-screen (0.7.1)
+ tty-screen (0.8.1)
tty-spinner (0.9.3)
tty-cursor (~> 0.7)
uber (0.1.0)
@@ -158,12 +157,12 @@ GEM
unf_ext (0.0.7.7)
unicode-display_width (1.7.0)
word_wrap (1.0.0)
- xcodeproj (1.15.0)
+ xcodeproj (1.18.0)
CFPropertyList (>= 2.3.3, < 4.0)
atomos (~> 0.1.3)
claide (>= 1.0.2, < 2.0)
colored2 (~> 3.1)
- nanaimo (~> 0.2.6)
+ nanaimo (~> 0.3.0)
xcpretty (0.3.0)
rouge (~> 2.0.7)
xcpretty-travis-formatter (1.0.0)
@@ -173,7 +172,7 @@ PLATFORMS
ruby
DEPENDENCIES
- fastlane (~> 2.144.0)
+ fastlane (~> 2.158.0)
BUNDLED WITH
1.16.6
diff --git a/ios/MullvadVPN.xcodeproj/xcshareddata/xcschemes/MullvadVPNScreenshots.xcscheme b/ios/MullvadVPN.xcodeproj/xcshareddata/xcschemes/MullvadVPNScreenshots.xcscheme
index 876c131f1f..dafedb1356 100644
--- a/ios/MullvadVPN.xcodeproj/xcshareddata/xcschemes/MullvadVPNScreenshots.xcscheme
+++ b/ios/MullvadVPN.xcodeproj/xcshareddata/xcschemes/MullvadVPNScreenshots.xcscheme
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1130"
- version = "1.7">
+ version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
@@ -28,42 +28,6 @@
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
systemAttachmentLifetime = "keepNever">
- <PreActions>
- <ExecutionAction
- ActionType = "Xcode.IDEStandardExecutionActionsCore.ExecutionActionType.ShellScriptAction">
- <ActionContent
- title = "Run Script"
- scriptText = "xcrun simctl boot &quot;${TARGET_DEVICE_IDENTIFIER}&quot;&#10;xcrun simctl status_bar &quot;${TARGET_DEVICE_IDENTIFIER}&quot; override \&#10; --time &quot;9:41&quot; \&#10; --dataNetwork wifi \&#10; --wifiMode active \&#10; --wifiBars 3 \&#10; --cellularMode notSupported \&#10; --batteryState charged \&#10; --batteryLevel 100&#10;">
- <EnvironmentBuildable>
- <BuildableReference
- BuildableIdentifier = "primary"
- BlueprintIdentifier = "58D0C79223F1CE7000FE9BA7"
- BuildableName = "MullvadVPNScreenshots.xctest"
- BlueprintName = "MullvadVPNScreenshots"
- ReferencedContainer = "container:MullvadVPN.xcodeproj">
- </BuildableReference>
- </EnvironmentBuildable>
- </ActionContent>
- </ExecutionAction>
- </PreActions>
- <PostActions>
- <ExecutionAction
- ActionType = "Xcode.IDEStandardExecutionActionsCore.ExecutionActionType.ShellScriptAction">
- <ActionContent
- title = "Run Script"
- scriptText = "xcrun simctl status_bar &quot;${TARGET_DEVICE_IDENTIFIER}&quot; clear&#10;">
- <EnvironmentBuildable>
- <BuildableReference
- BuildableIdentifier = "primary"
- BlueprintIdentifier = "58D0C79223F1CE7000FE9BA7"
- BuildableName = "MullvadVPNScreenshots.xctest"
- BlueprintName = "MullvadVPNScreenshots"
- ReferencedContainer = "container:MullvadVPN.xcodeproj">
- </BuildableReference>
- </EnvironmentBuildable>
- </ActionContent>
- </ExecutionAction>
- </PostActions>
<Testables>
<TestableReference
skipped = "NO">
diff --git a/ios/MullvadVPN/ConnectViewController.swift b/ios/MullvadVPN/ConnectViewController.swift
index 725b2472da..c78cd57c22 100644
--- a/ios/MullvadVPN/ConnectViewController.swift
+++ b/ios/MullvadVPN/ConnectViewController.swift
@@ -63,6 +63,9 @@ class ConnectViewController: UIViewController, RootContainment, TunnelObserver,
button.titleLabel?.font = UIFont.systemFont(ofSize: 18, weight: .semibold)
}
+ selectLocationButton.accessibilityIdentifier = "SelectLocationButton"
+ splitDisconnectButtonView.primaryButton.accessibilityIdentifier = "DisconnectButton"
+
connectionPanel.collapseButton.addTarget(self, action: #selector(handleConnectionPanelButton(_:)), for: .touchUpInside)
connectButton.addTarget(self, action: #selector(handleConnect(_:)), for: .touchUpInside)
splitDisconnectButtonView.primaryButton.addTarget(self, action: #selector(handleDisconnect(_:)), for: .touchUpInside)
diff --git a/ios/MullvadVPN/ConsentViewController.xib b/ios/MullvadVPN/ConsentViewController.xib
index 331483b9ae..3345552936 100644
--- a/ios/MullvadVPN/ConsentViewController.xib
+++ b/ios/MullvadVPN/ConsentViewController.xib
@@ -20,7 +20,7 @@
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" translatesAutoresizingMaskIntoConstraints="NO" id="fbX-Lo-tij">
- <rect key="frame" x="0.0" y="0.0" width="414" height="793"/>
+ <rect key="frame" x="0.0" y="0.0" width="414" height="792"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="11q-bQ-xwY" userLabel="Content view">
<rect key="frame" x="0.0" y="0.0" width="414" height="558"/>
@@ -59,7 +59,7 @@
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="leading" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="DsZ-mb-iQe" customClass="LinkButton" customModule="MullvadVPN" customModuleProvider="target">
- <rect key="frame" x="20" y="516" width="20" height="22"/>
+ <rect key="frame" x="20" y="516" width="128" height="22"/>
<fontDescription key="fontDescription" name=".AppleSystemUIFont" family=".AppleSystemUIFont" pointSize="18"/>
<color key="tintColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<state key="normal" title="Privacy Policy" image="IconExtlink"/>
@@ -95,10 +95,10 @@
</constraints>
</scrollView>
<view contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" translatesAutoresizingMaskIntoConstraints="NO" id="FYK-e4-iEm" userLabel="Footer">
- <rect key="frame" x="0.0" y="793" width="414" height="103"/>
+ <rect key="frame" x="0.0" y="792" width="414" height="104"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="7rE-vW-Iff" customClass="AppButton" customModule="MullvadVPN" customModuleProvider="target">
- <rect key="frame" x="20" y="24" width="374" height="21"/>
+ <rect key="frame" x="20" y="24" width="374" height="22"/>
<accessibility key="accessibilityConfiguration" identifier="AgreeButton"/>
<state key="normal" title="Agree and continue" backgroundImage="DefaultButton">
<color key="titleColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
diff --git a/ios/MullvadVPN/HeaderBarView.swift b/ios/MullvadVPN/HeaderBarView.swift
index 55e2c16070..ce6cad973f 100644
--- a/ios/MullvadVPN/HeaderBarView.swift
+++ b/ios/MullvadVPN/HeaderBarView.swift
@@ -23,6 +23,7 @@ class HeaderBarView: UIView {
lazy var settingsButton: UIButton = {
let settingsButton = UIButton(type: .custom)
settingsButton.setImage(UIImage(named: "IconSettings"), for: .normal)
+ settingsButton.accessibilityIdentifier = "SettingsButton"
return settingsButton
}()
diff --git a/ios/MullvadVPN/SelectLocationCell.swift b/ios/MullvadVPN/SelectLocationCell.swift
index d7f3c4c1ba..735a42df9c 100644
--- a/ios/MullvadVPN/SelectLocationCell.swift
+++ b/ios/MullvadVPN/SelectLocationCell.swift
@@ -89,6 +89,7 @@ class SelectLocationCell: BasicTableViewCell {
statusIndicator.tintColor = .white
tickImageView.tintColor = .white
+ collapseButton.accessibilityIdentifier = "CollapseButton"
collapseButton.tintColor = .white
collapseButton.setImage(chevronDown, for: .normal)
collapseButton.addTarget(self, action: #selector(handleCollapseButton(_ :)), for: .touchUpInside)
diff --git a/ios/MullvadVPN/SettingsViewController.swift b/ios/MullvadVPN/SettingsViewController.swift
index 201451c09e..cd78c2b282 100644
--- a/ios/MullvadVPN/SettingsViewController.swift
+++ b/ios/MullvadVPN/SettingsViewController.swift
@@ -108,6 +108,7 @@ class SettingsViewController: UITableViewController, AccountViewControllerDelega
cell.titleLabel.text = NSLocalizedString("Account", comment: "")
cell.accountExpiryDate = Account.shared.expiry
+ cell.accessibilityIdentifier = "AccountCell"
cell.accessoryType = .disclosureIndicator
}
diff --git a/ios/MullvadVPNScreenshots/MullvadVPNScreenshots.swift b/ios/MullvadVPNScreenshots/MullvadVPNScreenshots.swift
index 2aa3bc9b29..c584d280a4 100644
--- a/ios/MullvadVPNScreenshots/MullvadVPNScreenshots.swift
+++ b/ios/MullvadVPNScreenshots/MullvadVPNScreenshots.swift
@@ -39,7 +39,6 @@ class MullvadVPNScreenshots: XCTestCase {
// Wait for Login screen
let textField = app.textFields["LoginTextField"]
_ = textField.waitForExistence(timeout: 5)
- snapshot("Login")
// Enter account token
textField.tap()
@@ -60,7 +59,7 @@ class MullvadVPNScreenshots: XCTestCase {
if cityCell.exists {
cityCell.tap()
} else {
- countryCell.buttons["ExpandButton"].tap()
+ countryCell.buttons["CollapseButton"].tap()
cityCell.tap()
}
@@ -70,8 +69,8 @@ class MullvadVPNScreenshots: XCTestCase {
snapshot("MainSecured")
// Re-open Select location controller
- app.buttons["SwitchLocationButton"].tap()
- cityCell.buttons["ExpandButton"].tap()
+ app.buttons["SelectLocationButton"].tap()
+ cityCell.buttons["CollapseButton"].tap()
snapshot("SelectLocation")
// Tap the "Done" button to dismiss the "Select location" controller
diff --git a/ios/MullvadVPNScreenshots/SnapshotHelper.swift b/ios/MullvadVPNScreenshots/SnapshotHelper.swift
index aaa2a9a923..f5b393c2c5 100644
--- a/ios/MullvadVPNScreenshots/SnapshotHelper.swift
+++ b/ios/MullvadVPNScreenshots/SnapshotHelper.swift
@@ -38,22 +38,13 @@ func snapshot(_ name: String, timeWaitingForIdle timeout: TimeInterval = 20) {
}
enum SnapshotError: Error, CustomDebugStringConvertible {
- case cannotDetectUser
- case cannotFindHomeDirectory
case cannotFindSimulatorHomeDirectory
- case cannotAccessSimulatorHomeDirectory(String)
case cannotRunOnPhysicalDevice
var debugDescription: String {
switch self {
- case .cannotDetectUser:
- return "Couldn't find Snapshot configuration files - can't detect current user "
- case .cannotFindHomeDirectory:
- return "Couldn't find Snapshot configuration files - can't detect `Users` dir"
case .cannotFindSimulatorHomeDirectory:
return "Couldn't find simulator home location. Please, check SIMULATOR_HOST_HOME env variable."
- case .cannotAccessSimulatorHomeDirectory(let simulatorHostHome):
- return "Can't prepare environment. Simulator home location is inaccessible. Does \(simulatorHostHome) exist?"
case .cannotRunOnPhysicalDevice:
return "Can't use Snapshot on a physical device."
}
@@ -75,7 +66,7 @@ open class Snapshot: NSObject {
Snapshot.waitForAnimations = waitForAnimations
do {
- let cacheDir = try pathPrefix()
+ let cacheDir = try getCacheDirectory()
Snapshot.cacheDirectory = cacheDir
setLanguage(app)
setLocale(app)
@@ -206,40 +197,28 @@ open class Snapshot: NSObject {
_ = XCTWaiter.wait(for: [networkLoadingIndicatorDisappeared], timeout: timeout)
}
- class func pathPrefix() throws -> URL? {
- let homeDir: URL
+ class func getCacheDirectory() throws -> URL {
+ let cachePath = "Library/Caches/tools.fastlane"
// on OSX config is stored in /Users/<username>/Library
// and on iOS/tvOS/WatchOS it's in simulator's home dir
#if os(OSX)
- guard let user = ProcessInfo().environment["USER"] else {
- throw SnapshotError.cannotDetectUser
+ let homeDir = URL(fileURLWithPath: NSHomeDirectory())
+ return homeDir.appendingPathComponent(cachePath)
+ #elseif arch(i386) || arch(x86_64)
+ guard let simulatorHostHome = ProcessInfo().environment["SIMULATOR_HOST_HOME"] else {
+ throw SnapshotError.cannotFindSimulatorHomeDirectory
}
-
- guard let usersDir = FileManager.default.urls(for: .userDirectory, in: .localDomainMask).first else {
- throw SnapshotError.cannotFindHomeDirectory
- }
-
- homeDir = usersDir.appendingPathComponent(user)
+ let homeDir = URL(fileURLWithPath: simulatorHostHome)
+ return homeDir.appendingPathComponent(cachePath)
#else
- #if arch(i386) || arch(x86_64)
- guard let simulatorHostHome = ProcessInfo().environment["SIMULATOR_HOST_HOME"] else {
- throw SnapshotError.cannotFindSimulatorHomeDirectory
- }
- guard let homeDirUrl = URL(string: simulatorHostHome) else {
- throw SnapshotError.cannotAccessSimulatorHomeDirectory(simulatorHostHome)
- }
- homeDir = URL(fileURLWithPath: homeDirUrl.path)
- #else
- throw SnapshotError.cannotRunOnPhysicalDevice
- #endif
+ throw SnapshotError.cannotRunOnPhysicalDevice
#endif
- return homeDir.appendingPathComponent("Library/Caches/tools.fastlane")
}
}
private extension XCUIElementAttributes {
var isNetworkLoadingIndicator: Bool {
- if hasWhiteListedIdentifier { return false }
+ if hasAllowListedIdentifier { return false }
let hasOldLoadingIndicatorSize = frame.size == CGSize(width: 10, height: 20)
let hasNewLoadingIndicatorSize = frame.size.width.isBetween(46, and: 47) && frame.size.height.isBetween(2, and: 3)
@@ -247,10 +226,10 @@ private extension XCUIElementAttributes {
return hasOldLoadingIndicatorSize || hasNewLoadingIndicatorSize
}
- var hasWhiteListedIdentifier: Bool {
- let whiteListedIdentifiers = ["GeofenceLocationTrackingOn", "StandardLocationTrackingOn"]
+ var hasAllowListedIdentifier: Bool {
+ let allowListedIdentifiers = ["GeofenceLocationTrackingOn", "StandardLocationTrackingOn"]
- return whiteListedIdentifiers.contains(identifier)
+ return allowListedIdentifiers.contains(identifier)
}
func isStatusBar(_ deviceWidth: CGFloat) -> Bool {
@@ -300,4 +279,4 @@ private extension CGFloat {
// Please don't remove the lines below
// They are used to detect outdated configuration files
-// SnapshotHelperVersion [1.21]
+// SnapshotHelperVersion [1.23]
diff --git a/ios/Snapfile b/ios/Snapfile
index 64a28a666e..d73fe87c62 100644
--- a/ios/Snapfile
+++ b/ios/Snapfile
@@ -29,6 +29,9 @@ erase_simulator(true)
# Disable concurrent simulators to prevent too many WireGuard public keys error
concurrent_simulators(false)
+# Clean the device statusbar
+override_status_bar(true)
+
# Arguments to pass to the app on launch. See https://docs.fastlane.tools/actions/snapshot/#launch-arguments
# launch_arguments(["-favColor red"])