From 3f07c6e5242f96fcdb3d91c8a33e1b13fceee4f0 Mon Sep 17 00:00:00 2001 From: Bero Date: Wed, 13 Mar 2024 10:22:22 +0100 Subject: [PATCH] Add e2e test --- .../website/cypress/e2e/blueprints.cy.ts | 21 +++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/packages/playground/website/cypress/e2e/blueprints.cy.ts b/packages/playground/website/cypress/e2e/blueprints.cy.ts index 294458ae2c..dc07b26ab9 100644 --- a/packages/playground/website/cypress/e2e/blueprints.cy.ts +++ b/packages/playground/website/cypress/e2e/blueprints.cy.ts @@ -15,8 +15,8 @@ describe('Blueprints', () => { }, { step: 'runPHP', - code: `flush_rules(); `, }, @@ -81,4 +81,21 @@ describe('Blueprints', () => { .find('[aria-label="“Test post” (Edit)"]') .should('exist'); }); + + it.only('PHP Shutdown should work', () => { + const blueprint: Blueprint = { + landingPage: '/wp-admin/', + features: { networking: true }, + steps: [ + { step: 'login' }, + { + step: 'writeFile', + path: '/wordpress/wp-content/mu-plugins/rewrite.php', + data: "