File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -78,4 +78,15 @@ test.describe( 'Upsell', () => {
78
78
searchParams = new URLSearchParams ( href ) ;
79
79
expect ( searchParams . get ( 'utm_campaign' ) ) . toBe ( 'chart-permissions' ) ;
80
80
} ) ;
81
+
82
+ test ( 'featured tab in Install Plugin (SDK)' , async ( { admin, page } ) => {
83
+ await admin . visitAdminPage ( 'plugin-install.php' ) ;
84
+
85
+ // Those should be visible only when a PRO product is installed.
86
+ await expect ( page . getByText ( 'Image Optimization by Optimole' ) ) . toBeHidden ( ) ;
87
+ await expect ( page . locator ( '#the-list div' ) . filter ( { hasText : 'Otter Blocks' } ) . nth ( 1 ) ) . toBeHidden ( ) ;
88
+
89
+ await expect ( page . getByLabel ( 'Install Image Optimization by' ) ) . toBeHidden ( ) ;
90
+ await expect ( page . getByLabel ( 'Install Otter Blocks' ) ) . toBeHidden ( ) ;
91
+ } ) ;
81
92
} ) ;
You can’t perform that action at this time.
0 commit comments