Skip to content

Commit 7593e05

Browse files
Update screenshots
1 parent 22dd6a9 commit 7593e05

File tree

16 files changed

+663
-234
lines changed

16 files changed

+663
-234
lines changed

ChatSecure.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@
625625
6308D1441CA20762002F5F30 /* Pods-ChatSecureCorePods-ChatSecure-acknowledgements.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = "Pods-ChatSecureCorePods-ChatSecure-acknowledgements.plist"; path = "Pods/Target Support Files/Pods-ChatSecureCorePods-ChatSecure/Pods-ChatSecureCorePods-ChatSecure-acknowledgements.plist"; sourceTree = "<group>"; };
626626
6309E4D51D493B6E002CF8FC /* OTRAccountSignalEncryptionManager.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = OTRAccountSignalEncryptionManager.swift; sourceTree = "<group>"; };
627627
631C79921E56846700B30CB4 /* NSData+ChatSecure.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "NSData+ChatSecure.swift"; sourceTree = "<group>"; };
628-
632157DC1E57D01A00738D4E /* SnapshotHelper.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SnapshotHelper.swift; path = snapshot/SnapshotHelper.swift; sourceTree = SOURCE_ROOT; };
628+
632157DC1E57D01A00738D4E /* SnapshotHelper.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SnapshotHelper.swift; path = fastlane/SnapshotHelper.swift; sourceTree = SOURCE_ROOT; };
629629
63232AC61E37F13C00D84CDF /* OTRAccountDatabaseCount.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = OTRAccountDatabaseCount.swift; sourceTree = "<group>"; };
630630
6323C6FD1E39547200D0FB42 /* OTRImageTest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = OTRImageTest.swift; sourceTree = "<group>"; };
631631
6323C7001E396D3D00D0FB42 /* landscape.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = landscape.jpg; path = TestImages/landscape.jpg; sourceTree = "<group>"; };

ChatSecure.xcodeproj/xcshareddata/xcschemes/ChatSecure.xcscheme

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
buildConfiguration = "Debug"
4141
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
4242
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
43+
disableMainThreadChecker = "YES"
4344
shouldUseLaunchSchemeArgsEnv = "YES">
4445
<Testables>
4546
<TestableReference
@@ -52,16 +53,6 @@
5253
ReferencedContainer = "container:ChatSecure.xcodeproj">
5354
</BuildableReference>
5455
</TestableReference>
55-
<TestableReference
56-
skipped = "NO">
57-
<BuildableReference
58-
BuildableIdentifier = "primary"
59-
BlueprintIdentifier = "D9227C321BA7952100B5E1D0"
60-
BuildableName = "ChatSecureCoreTests.xctest"
61-
BlueprintName = "ChatSecureCoreTests"
62-
ReferencedContainer = "container:ChatSecure.xcodeproj">
63-
</BuildableReference>
64-
</TestableReference>
6556
<TestableReference
6657
skipped = "NO">
6758
<BuildableReference

ChatSecure.xcodeproj/xcshareddata/xcschemes/ChatSecureUITests.xcscheme

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
buildConfiguration = "Debug"
1111
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
1212
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
13+
disableMainThreadChecker = "YES"
1314
shouldUseLaunchSchemeArgsEnv = "YES">
1415
<Testables>
1516
<TestableReference
@@ -39,6 +40,7 @@
3940
buildConfiguration = "Debug"
4041
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
4142
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
43+
disableMainThreadChecker = "YES"
4244
launchStyle = "0"
4345
useCustomWorkingDirectory = "NO"
4446
ignoresPersistentStateOnLaunch = "NO"

ChatSecureUITests/ChatSecureUITests.swift

Lines changed: 48 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ func skipEnablePush(_ app:XCUIApplication) {
3434
}
3535
}
3636

37+
func skipDonatePrompt(_ app:XCUIApplication) {
38+
let maybeLater = app.buttons[localizedString("Maybe Later")]
39+
if (maybeLater.exists) {
40+
maybeLater.tap()
41+
}
42+
}
43+
3744
class ChatSecureUITests: XCTestCase {
3845

3946
override func setUp() {
@@ -48,6 +55,12 @@ class ChatSecureUITests: XCTestCase {
4855
setupSnapshot(app)
4956

5057
// In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this.
58+
59+
if UIDevice.current.userInterfaceIdiom == .pad {
60+
XCUIDevice.shared.orientation = .landscapeLeft
61+
} else {
62+
XCUIDevice.shared.orientation = .portrait
63+
}
5164
}
5265

5366
override func tearDown() {
@@ -60,7 +73,7 @@ class ChatSecureUITests: XCTestCase {
6073
app.launchEnvironment["OTRLaunchMode"] = "ChatSecureUITests"
6174
app.launch()
6275
skipEnablePush(app)
63-
76+
skipDonatePrompt(app)
6477
XCTAssertTrue(app.buttons[localizedString("Skip")].exists, "Skip button exists")
6578
XCTAssertTrue(app.buttons[localizedString("Create New Account")].exists, "Create new Account button exists")
6679
XCTAssertTrue(app.buttons[localizedString("Add Existing Account")].exists, "Add existing account button exists")
@@ -70,18 +83,8 @@ class ChatSecureUITests: XCTestCase {
7083
let tablesQuery = app.tables
7184
tablesQuery.cells.containing(.staticText, identifier:localizedString("Nickname")).children(matching: .textField).element.typeText("Alice")
7285

73-
//This is the done button really
74-
75-
switch UIDevice.current.userInterfaceIdiom {
76-
case .phone:
77-
XCUIApplication().toolbars.buttons.element(boundBy: 2).tap()
78-
break
79-
case .pad:
80-
XCUIApplication().toolbars.buttons.element(boundBy: 3).tap()
81-
break
82-
default:
83-
break
84-
}
86+
let keyboardDismissButton = app.toolbars["Toolbar"].buttons.element(boundBy: 2)
87+
keyboardDismissButton.tap()
8588

8689
tablesQuery.switches[localizedString("Show Advanced Options")].tap()
8790

@@ -91,37 +94,36 @@ class ChatSecureUITests: XCTestCase {
9194
snapshot("01CreateAccountScreen")
9295
}
9396

94-
func testConversationList() {
95-
let app = XCUIApplication()
96-
app.launchEnvironment["OTRLaunchMode"] = "ChatSecureUITestsDemoData"
97-
app.launch()
98-
skipEnablePush(app)
99-
100-
switch UIDevice.current.userInterfaceIdiom {
101-
case .phone:
102-
snapshot("02ConversationListScreen")
103-
break
104-
case .pad:
105-
XCUIDevice.shared().orientation = .landscapeLeft
106-
break
107-
default:
108-
break
109-
}
110-
sleep(2)
111-
skipEnablePush(app)
112-
XCUIApplication().tables["conversationTableView"].children(matching: .any).element(boundBy: 0).tap()
113-
snapshot("03ChatScreen")
114-
XCUIApplication().buttons["profileButton"].tap()
115-
snapshot("04ProfileScreen")
116-
117-
// app.navigationBars["Profile"].buttons["Done"].tap()
118-
//
119-
// let chatsNavigationBar = app.navigationBars["Chats"]
120-
// chatsNavigationBar.buttons["Chats"].tap()
121-
// chatsNavigationBar.childrenMatchingType(.Button).elementBoundByIndex(1).tap()
122-
// app.tables["settingsTableView"].staticTexts["New Account"].tap()
123-
// app.buttons["Create New Account"].tap()
124-
125-
}
126-
97+
// func testConversationList() {
98+
// let app = XCUIApplication()
99+
// app.launchEnvironment["OTRLaunchMode"] = "ChatSecureUITestsDemoData"
100+
// app.launch()
101+
// skipEnablePush(app)
102+
//
103+
// switch UIDevice.current.userInterfaceIdiom {
104+
// case .phone:
105+
// snapshot("02ConversationListScreen")
106+
// break
107+
// case .pad:
108+
// break
109+
// default:
110+
// break
111+
// }
112+
// sleep(2)
113+
// skipEnablePush(app)
114+
// XCUIApplication().tables["conversationTableView"].children(matching: .any).element(boundBy: 0).tap()
115+
// snapshot("03ChatScreen")
116+
// XCUIApplication().buttons["profileButton"].tap()
117+
// snapshot("04ProfileScreen")
118+
//
119+
//// app.navigationBars["Profile"].buttons["Done"].tap()
120+
////
121+
//// let chatsNavigationBar = app.navigationBars["Chats"]
122+
//// chatsNavigationBar.buttons["Chats"].tap()
123+
//// chatsNavigationBar.childrenMatchingType(.Button).elementBoundByIndex(1).tap()
124+
//// app.tables["settingsTableView"].staticTexts["New Account"].tap()
125+
//// app.buttons["Create New Account"].tap()
126+
//
127+
// }
128+
//
127129
}

Gemfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
source "https://rubygems.org"
22

3-
gem 'cocoapods', '~> 1.5.3'
3+
gem 'cocoapods'
4+
gem 'fastlane'

Gemfile.lock

Lines changed: 130 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ GEM
77
minitest (~> 5.1)
88
thread_safe (~> 0.3, >= 0.3.4)
99
tzinfo (~> 1.1)
10+
addressable (2.5.2)
11+
public_suffix (>= 2.0.2, < 4.0)
1012
atomos (0.1.2)
13+
babosa (1.0.2)
1114
claide (1.0.2)
1215
cocoapods (1.5.3)
1316
activesupport (>= 4.0.2, < 5)
@@ -42,35 +45,161 @@ GEM
4245
nap (>= 0.8, < 2.0)
4346
netrc (~> 0.11)
4447
cocoapods-try (1.1.0)
48+
colored (1.2)
4549
colored2 (3.1.2)
50+
commander-fastlane (4.4.6)
51+
highline (~> 1.7.2)
4652
concurrent-ruby (1.0.5)
53+
declarative (0.0.10)
54+
declarative-option (0.1.0)
55+
domain_name (0.5.20180417)
56+
unf (>= 0.0.5, < 1.0.0)
57+
dotenv (2.5.0)
58+
emoji_regex (0.1.1)
4759
escape (0.0.4)
60+
excon (0.62.0)
61+
faraday (0.15.2)
62+
multipart-post (>= 1.2, < 3)
63+
faraday-cookie_jar (0.0.6)
64+
faraday (>= 0.7.4)
65+
http-cookie (~> 1.0.0)
66+
faraday_middleware (0.12.2)
67+
faraday (>= 0.7.4, < 1.0)
68+
fastimage (2.1.3)
69+
fastlane (2.99.0)
70+
CFPropertyList (>= 2.3, < 4.0.0)
71+
addressable (>= 2.3, < 3.0.0)
72+
babosa (>= 1.0.2, < 2.0.0)
73+
bundler (>= 1.12.0, < 2.0.0)
74+
colored
75+
commander-fastlane (>= 4.4.6, < 5.0.0)
76+
dotenv (>= 2.1.1, < 3.0.0)
77+
emoji_regex (~> 0.1)
78+
excon (>= 0.45.0, < 1.0.0)
79+
faraday (~> 0.9)
80+
faraday-cookie_jar (~> 0.0.6)
81+
faraday_middleware (~> 0.9)
82+
fastimage (>= 2.1.0, < 3.0.0)
83+
gh_inspector (>= 1.1.2, < 2.0.0)
84+
google-api-client (>= 0.21.2, < 0.22.0)
85+
highline (>= 1.7.2, < 2.0.0)
86+
json (< 3.0.0)
87+
mini_magick (~> 4.5.1)
88+
multi_json
89+
multi_xml (~> 0.5)
90+
multipart-post (~> 2.0.0)
91+
plist (>= 3.1.0, < 4.0.0)
92+
public_suffix (~> 2.0.0)
93+
rubyzip (>= 1.2.1, < 2.0.0)
94+
security (= 0.1.3)
95+
simctl (~> 1.6.3)
96+
slack-notifier (>= 2.0.0, < 3.0.0)
97+
terminal-notifier (>= 1.6.2, < 2.0.0)
98+
terminal-table (>= 1.4.5, < 2.0.0)
99+
tty-screen (>= 0.6.3, < 1.0.0)
100+
tty-spinner (>= 0.8.0, < 1.0.0)
101+
word_wrap (~> 1.0.0)
102+
xcodeproj (>= 1.5.7, < 2.0.0)
103+
xcpretty (~> 0.2.8)
104+
xcpretty-travis-formatter (>= 0.0.3)
48105
fourflusher (2.0.1)
49106
fuzzy_match (2.0.4)
50107
gh_inspector (1.1.3)
108+
google-api-client (0.21.2)
109+
addressable (~> 2.5, >= 2.5.1)
110+
googleauth (>= 0.5, < 0.7.0)
111+
httpclient (>= 2.8.1, < 3.0)
112+
mime-types (~> 3.0)
113+
representable (~> 3.0)
114+
retriable (>= 2.0, < 4.0)
115+
googleauth (0.6.2)
116+
faraday (~> 0.12)
117+
jwt (>= 1.4, < 3.0)
118+
logging (~> 2.0)
119+
memoist (~> 0.12)
120+
multi_json (~> 1.11)
121+
os (~> 0.9)
122+
signet (~> 0.7)
123+
highline (1.7.10)
124+
http-cookie (1.0.3)
125+
domain_name (~> 0.5)
126+
httpclient (2.8.3)
51127
i18n (0.9.5)
52128
concurrent-ruby (~> 1.0)
129+
json (2.1.0)
130+
jwt (2.1.0)
131+
little-plugger (1.1.4)
132+
logging (2.2.2)
133+
little-plugger (~> 1.1)
134+
multi_json (~> 1.10)
135+
memoist (0.16.0)
136+
mime-types (3.1)
137+
mime-types-data (~> 3.2015)
138+
mime-types-data (3.2016.0521)
139+
mini_magick (4.5.1)
53140
minitest (5.11.3)
54141
molinillo (0.6.5)
142+
multi_json (1.13.1)
143+
multi_xml (0.6.0)
144+
multipart-post (2.0.0)
55145
nanaimo (0.2.6)
56146
nap (1.1.0)
147+
naturally (2.2.0)
57148
netrc (0.11.0)
149+
os (0.9.6)
150+
plist (3.4.0)
151+
public_suffix (2.0.5)
152+
representable (3.0.4)
153+
declarative (< 0.1.0)
154+
declarative-option (< 0.2.0)
155+
uber (< 0.2.0)
156+
retriable (3.1.2)
157+
rouge (2.0.7)
58158
ruby-macho (1.2.0)
159+
rubyzip (1.2.1)
160+
security (0.1.3)
161+
signet (0.8.1)
162+
addressable (~> 2.3)
163+
faraday (~> 0.9)
164+
jwt (>= 1.5, < 3.0)
165+
multi_json (~> 1.10)
166+
simctl (1.6.5)
167+
CFPropertyList
168+
naturally
169+
slack-notifier (2.3.2)
170+
terminal-notifier (1.8.0)
171+
terminal-table (1.8.0)
172+
unicode-display_width (~> 1.1, >= 1.1.1)
59173
thread_safe (0.3.6)
174+
tty-cursor (0.5.0)
175+
tty-screen (0.6.4)
176+
tty-spinner (0.8.0)
177+
tty-cursor (>= 0.5.0)
60178
tzinfo (1.2.5)
61179
thread_safe (~> 0.1)
180+
uber (0.1.0)
181+
unf (0.1.4)
182+
unf_ext
183+
unf_ext (0.0.7.5)
184+
unicode-display_width (1.4.0)
185+
word_wrap (1.0.0)
62186
xcodeproj (1.5.9)
63187
CFPropertyList (>= 2.3.3, < 4.0)
64188
atomos (~> 0.1.2)
65189
claide (>= 1.0.2, < 2.0)
66190
colored2 (~> 3.1)
67191
nanaimo (~> 0.2.5)
192+
xcpretty (0.2.8)
193+
rouge (~> 2.0.7)
194+
xcpretty-travis-formatter (1.0.0)
195+
xcpretty (~> 0.2, >= 0.0.7)
68196

69197
PLATFORMS
70198
ruby
71199

72200
DEPENDENCIES
73-
cocoapods (~> 1.5.3)
201+
cocoapods
202+
fastlane
74203

75204
BUNDLED WITH
76205
1.16.2

fastlane/Appfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
app_identifier("com.chrisballinger.ChatSecure") # The bundle identifier of your app
2+
apple_id("[email protected]") # Your Apple email address
3+
4+
itc_team_id("246936") # App Store Connect Team ID
5+
team_id("4T8JLQR6GR") # Developer Portal Team ID
6+
7+
# For more information about the Appfile, see:
8+
# https://docs.fastlane.tools/advanced/#appfile

0 commit comments

Comments
 (0)