Skip to content

Commit 99e50bc

Browse files
authored
Merge pull request #244 from mattrubin/fix-screenshots
Fix screenshots
2 parents 3e9a51f + cfc3208 commit 99e50bc

File tree

7 files changed

+12
-9
lines changed

7 files changed

+12
-9
lines changed

Authenticator/Source/ProgressRingView.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ class ProgressRingView: UIView {
8484
let animation = CABasicAnimation(keyPath: path)
8585
let now = layer.convertTime(CACurrentMediaTime(), from: nil)
8686
animation.beginTime = now + viewModel.startTime.timeIntervalSinceNow
87+
if CommandLine.isDemo {
88+
animation.beginTime -= DisplayTime.demoTime.date.timeIntervalSinceNow
89+
}
8790
animation.duration = viewModel.duration
8891
animation.fromValue = 0
8992
animation.toValue = 1

AuthenticatorScreenshots/AuthenticatorScreenshots.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class AuthenticatorScreenshots: XCTestCase {
6464
// Take a screenshot of the token scanner.
6565
snapshot("1-ScanToken")
6666

67-
app.navigationBars.buttons["Compose"].tap()
67+
app.navigationBars.buttons["Manual token entry"].tap()
6868
// Wait for the scroll bars to fade.
6969
sleep(1)
7070
// Take a screenshot of the token entry form.

Gemfile.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
CFPropertyList (2.3.5)
4+
CFPropertyList (2.3.6)
55
addressable (2.5.2)
66
public_suffix (>= 2.0.2, < 4.0)
77
babosa (1.0.2)
@@ -24,7 +24,7 @@ GEM
2424
faraday_middleware (0.12.2)
2525
faraday (>= 0.7.4, < 1.0)
2626
fastimage (2.1.0)
27-
fastlane (2.64.0)
27+
fastlane (2.68.2)
2828
CFPropertyList (>= 2.3, < 3.0.0)
2929
addressable (>= 2.3, < 3.0.0)
3030
babosa (>= 1.0.2, < 2.0.0)
@@ -52,9 +52,9 @@ GEM
5252
slack-notifier (>= 1.3, < 2.0.0)
5353
terminal-notifier (>= 1.6.2, < 2.0.0)
5454
terminal-table (>= 1.4.5, < 2.0.0)
55-
tty-screen (~> 0.5.0)
55+
tty-screen (~> 0.6.2)
5656
word_wrap (~> 1.0.0)
57-
xcodeproj (>= 1.5.0, < 2.0.0)
57+
xcodeproj (>= 1.5.2, < 2.0.0)
5858
xcpretty (>= 0.2.4, < 1.0.0)
5959
xcpretty-travis-formatter (>= 0.0.3)
6060
gh_inspector (1.0.3)
@@ -65,15 +65,15 @@ GEM
6565
mime-types (~> 3.0)
6666
representable (~> 3.0)
6767
retriable (>= 2.0, < 4.0)
68-
googleauth (0.6.1)
68+
googleauth (0.6.2)
6969
faraday (~> 0.12)
7070
jwt (>= 1.4, < 3.0)
7171
logging (~> 2.0)
7272
memoist (~> 0.12)
7373
multi_json (~> 1.11)
7474
os (~> 0.9)
7575
signet (~> 0.7)
76-
highline (1.7.8)
76+
highline (1.7.10)
7777
http-cookie (1.0.3)
7878
domain_name (~> 0.5)
7979
httpclient (2.8.3)
@@ -93,7 +93,7 @@ GEM
9393
multipart-post (2.0.0)
9494
nanaimo (0.2.3)
9595
os (0.9.6)
96-
plist (3.3.0)
96+
plist (3.4.0)
9797
public_suffix (2.0.5)
9898
representable (3.0.4)
9999
declarative (< 0.1.0)
@@ -112,7 +112,7 @@ GEM
112112
terminal-notifier (1.8.0)
113113
terminal-table (1.8.0)
114114
unicode-display_width (~> 1.1, >= 1.1.1)
115-
tty-screen (0.5.1)
115+
tty-screen (0.6.3)
116116
uber (0.1.0)
117117
unf (0.1.4)
118118
unf_ext
Loading
Loading
Loading
103 Bytes
Loading

0 commit comments

Comments
 (0)