File tree 1 file changed +18
-2
lines changed
1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,22 @@ class RelayTests: LoggedInWithTimeUITestCase {
27
27
}
28
28
29
29
func testAdBlockingViaDNS( ) throws {
30
+ // Undo enabling block ads in teardown
31
+ addTeardownBlock {
32
+ HeaderBar ( self . app)
33
+ . tapSettingsButton ( )
34
+
35
+ SettingsPage ( self . app)
36
+ . tapVPNSettingsCell ( )
37
+
38
+ VPNSettingsPage ( self . app)
39
+ . tapDNSSettingsCell ( )
40
+
41
+ DNSSettingsPage ( self . app)
42
+ . tapDNSContentBlockersHeaderExpandButton ( )
43
+ . tapBlockAdsSwitch ( )
44
+ }
45
+
30
46
HeaderBar ( app)
31
47
. tapSettingsButton ( )
32
48
@@ -44,7 +60,7 @@ class RelayTests: LoggedInWithTimeUITestCase {
44
60
TunnelControlPage ( app)
45
61
. tapSecureConnectionButton ( )
46
62
47
- allowAddVPNConfigurations ( ) // Allow adding VPN configurations iOS permission
63
+ allowAddVPNConfigurationsIfAsked ( ) // Allow adding VPN configurations iOS permission
48
64
49
65
TunnelControlPage ( app)
50
66
. waitForSecureConnectionLabel ( )
@@ -205,7 +221,7 @@ class RelayTests: LoggedInWithTimeUITestCase {
205
221
TunnelControlPage ( app)
206
222
. tapSecureConnectionButton ( )
207
223
208
- allowAddVPNConfigurations ( )
224
+ allowAddVPNConfigurationsIfAsked ( )
209
225
210
226
HeaderBar ( app)
211
227
. tapSettingsButton ( )
You can’t perform that action at this time.
0 commit comments