File tree 5 files changed +7
-9
lines changed
5 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ public enum AccessibilityIdentifier: Equatable {
181
181
case wireGuardObfuscationOff
182
182
case wireGuardObfuscationUdpOverTcp
183
183
case wireGuardObfuscationShadowsocks
184
- case wireGuardPort
184
+ case wireGuardPort( UInt16 ? )
185
185
case udpOverTcpObfuscationSettings
186
186
187
187
// Custom DNS
Original file line number Diff line number Diff line change @@ -327,7 +327,6 @@ extension LocationCell {
327
327
// Only custom list nodes have more than one location. Therefore checking first
328
328
// location here is fine.
329
329
if let location = item. node. locations. first {
330
- // we can probably replace this with a tagged AccessibilityIdentifier and cut this case statement
331
330
let accessibilityId : AccessibilityIdentifier = switch location {
332
331
case . country: . countryLocationCell
333
332
case . city: . cityLocationCell
Original file line number Diff line number Diff line change @@ -80,8 +80,7 @@ final class VPNSettingsCellFactory: CellFactoryProtocol {
80
80
}
81
81
82
82
cell. titleLabel. text = portString
83
- // TODO: replace this with a tagged AccessibilityIdentifier
84
- cell. accessibilityIdentifier = " \( item. accessibilityIdentifier. asString) ( \( portString) ) "
83
+ cell. accessibilityIdentifier = " \( item. accessibilityIdentifier. asString) "
85
84
cell. applySubCellStyling ( )
86
85
87
86
case . wireGuardCustomPort:
Original file line number Diff line number Diff line change @@ -112,8 +112,8 @@ final class VPNSettingsDataSource: UITableViewDiffableDataSource<
112
112
return . dnsSettings
113
113
case . ipOverrides:
114
114
return . ipOverrides
115
- case . wireGuardPort:
116
- return . wireGuardPort
115
+ case let . wireGuardPort( port ) :
116
+ return . wireGuardPort( port )
117
117
case . wireGuardCustomPort:
118
118
return . wireGuardCustomPort
119
119
case . wireGuardObfuscationAutomatic:
Original file line number Diff line number Diff line change @@ -214,13 +214,13 @@ class BaseUITestCase: XCTestCase {
214
214
/// Check if currently logged on to an account. Note that it is assumed that we are logged in if login view isn't currently shown.
215
215
func isLoggedIn( ) -> Bool {
216
216
return !app
217
- . otherElements [ AccessibilityIdentifier . loginView]
217
+ . otherElements [ . loginView]
218
218
. waitForExistence ( timeout: 1.0 )
219
219
}
220
220
221
221
func isPresentingSettings( ) -> Bool {
222
222
return app
223
- . otherElements [ AccessibilityIdentifier . settingsContainerView]
223
+ . otherElements [ . settingsContainerView]
224
224
. exists
225
225
}
226
226
@@ -248,7 +248,7 @@ class BaseUITestCase: XCTestCase {
248
248
249
249
// Ensure changelog is no longer shown
250
250
_ = app
251
- . otherElements [ AccessibilityIdentifier . changeLogAlert. asString ]
251
+ . otherElements [ . changeLogAlert]
252
252
. waitForNonExistence ( timeout: Self . shortTimeout)
253
253
}
254
254
You can’t perform that action at this time.
0 commit comments