1
+ import { Plans } from '_jetpack-e2e-commons/env/index.js' ;
1
2
import { prerequisitesBuilder } from '_jetpack-e2e-commons/env/prerequisites.js' ;
2
3
import { expect , test } from '_jetpack-e2e-commons/fixtures/base-test.js' ;
3
4
import logger from '_jetpack-e2e-commons/logger.js' ;
@@ -40,10 +41,13 @@ test.describe( 'Jetpack Protect plugin - Post-Connection', () => {
40
41
test . beforeEach ( async ( { page } ) => {
41
42
await prerequisitesBuilder ( page )
42
43
. withCleanEnv ( )
43
- . withActivePlugins ( [ 'protect' ] )
44
- . withInactivePlugins ( [ 'e2e-waf-data-interceptor' ] )
44
+ . withActivePlugins ( [ 'protect' , 'jetpack' ] )
45
+ . withActiveModules ( [ 'waf' , 'protect' ] )
46
+ // .withInactivePlugins( [ 'e2e-waf-data-interceptor' ] )
45
47
. withLoggedIn ( true )
46
48
. withConnection ( true )
49
+ . withWpComLoggedIn ( true )
50
+ . withPlan ( Plans . Complete )
47
51
. build ( ) ;
48
52
} ) ;
49
53
@@ -53,11 +57,11 @@ test.describe( 'Jetpack Protect plugin - Post-Connection', () => {
53
57
await expect ( page . getByText ( 'Firewall is on' ) ) . toBeVisible ( ) ;
54
58
} ) ;
55
59
56
- await test . step ( 'Test the automatic firewall setting is disabled for free plans' , async ( ) => {
57
- const automaticFirewallToggle = page . locator ( '#inspector-toggle-control-0' ) ;
58
- await expect ( automaticFirewallToggle ) . toBeDisabled ( ) ;
59
- await expect ( automaticFirewallToggle ) . not . toBeChecked ( ) ;
60
- } ) ;
60
+ // await test.step( 'Test the automatic firewall setting is disabled for free plans', async () => {
61
+ // const automaticFirewallToggle = page.locator( '#inspector-toggle-control-0' );
62
+ // await expect( automaticFirewallToggle ).toBeDisabled();
63
+ // await expect( automaticFirewallToggle ).not.toBeChecked();
64
+ // } );
61
65
62
66
await test . step ( 'Test the brute force protection setting' , async ( ) => {
63
67
const bruteForceToggle = page . locator ( '#inspector-toggle-control-1' ) ;
0 commit comments