Skip to content

Commit 306e8f7

Browse files
chore: check if SDK has added upsell in featured tab on plugin install
1 parent 2878b0d commit 306e8f7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/e2e/specs/upsell.spec.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,15 @@ test.describe( 'Upsell', () => {
7878
searchParams = new URLSearchParams(href);
7979
expect( searchParams.get('utm_campaign') ).toBe('chart-permissions');
8080
});
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+
});
8192
} );

0 commit comments

Comments
 (0)