Skip to content

Commit

Permalink
Fix tests to prevent regression.
Browse files Browse the repository at this point in the history
  • Loading branch information
dd32 committed Jun 12, 2024
1 parent 17f166c commit 761f594
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/playground/website/cypress/e2e/query-api.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,12 @@ describe('Query API', () => {

/**
* @see https://github.com/WordPress/wordpress-playground/pull/1045
* @see https://github.com/WordPress/wordpress-playground/pull/1504
*/
it('should enable networking when requested AND the kitchen sink extension bundle is enabled', () => {
cy.visit('/?networking=yes&url=/wp-admin/plugin-install.php');
it('should enable networking when requested AND the kitchen sink extension bundle is NOT enabled', () => {
cy.visit(
'/?networking=yes&php-extension-bundle=light&url=/wp-admin/plugin-install.php'
);
cy.wordPressDocument()
.find('.plugin-card')
.should('have.length.above', 4);
Expand All @@ -104,6 +107,7 @@ describe('Query API', () => {
features: {
networking: true,
},
phpExtensionBundles: ['light'],
steps: [
{
step: 'writeFile',
Expand Down

0 comments on commit 761f594

Please sign in to comment.