Skip to content

Commit 134c2b3

Browse files
Merge pull request #1106 from Codeinwp/chore/sdk-update
chore: update SDK
2 parents fab02a2 + 306e8f7 commit 134c2b3

File tree

2 files changed

+21
-6
lines changed

2 files changed

+21
-6
lines changed

composer.lock

Lines changed: 10 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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)