diff --git a/.github/workflows/reusable-end-to-end-tests.yml b/.github/workflows/reusable-end-to-end-tests.yml index 92ef4fafc32d0..4c8f2214890ec 100644 --- a/.github/workflows/reusable-end-to-end-tests.yml +++ b/.github/workflows/reusable-end-to-end-tests.yml @@ -100,7 +100,7 @@ jobs: - name: Install Playwright browsers if: ${{ inputs.install-playwright }} - run: npx playwright install --with-deps + run: npx playwright install --with-deps chromium - name: Build WordPress run: npm run build diff --git a/.github/workflows/reusable-performance-test-v2.yml b/.github/workflows/reusable-performance-test-v2.yml index f9259f2b5824f..cd9e27b38e74f 100644 --- a/.github/workflows/reusable-performance-test-v2.yml +++ b/.github/workflows/reusable-performance-test-v2.yml @@ -227,9 +227,6 @@ jobs: - name: Deactivate WordPress Importer plugin run: npm run env:cli -- plugin deactivate wordpress-importer --path="/var/www/${LOCAL_DIR}" - - name: Update permalink structure - run: npm run env:cli -- rewrite structure '/%year%/%monthnum%/%postname%/' --path="/var/www/${LOCAL_DIR}" - - name: Install additional languages run: | npm run env:cli -- language core install de_DE --path="/var/www/${LOCAL_DIR}" diff --git a/.github/workflows/reusable-performance.yml b/.github/workflows/reusable-performance.yml index 2399132838113..b2c851659ab4c 100644 --- a/.github/workflows/reusable-performance.yml +++ b/.github/workflows/reusable-performance.yml @@ -203,9 +203,6 @@ jobs: - name: Deactivate WordPress Importer plugin run: npm run env:cli -- plugin deactivate wordpress-importer --path="/var/www/${LOCAL_DIR}" - - name: Update permalink structure - run: npm run env:cli -- rewrite structure '/%year%/%monthnum%/%postname%/' --path="/var/www/${LOCAL_DIR}" - - name: Install additional languages run: | npm run env:cli -- language core install de_DE --path="/var/www/${LOCAL_DIR}" diff --git a/tools/local-env/scripts/install.js b/tools/local-env/scripts/install.js index 80b5c7eb19836..038ecc3a67d5e 100644 --- a/tools/local-env/scripts/install.js +++ b/tools/local-env/scripts/install.js @@ -46,6 +46,7 @@ wait_on( { wp_cli( 'db reset --yes --defaults' ); const installCommand = process.env.LOCAL_MULTISITE === 'true' ? 'multisite-install' : 'install'; wp_cli( `core ${ installCommand } --title="WordPress Develop" --admin_user=admin --admin_password=password --admin_email=test@example.com --skip-email --url=http://localhost:${process.env.LOCAL_PORT}` ); + wp_cli( `rewrite structure '/%year%/%monthnum%/%postname%/'` ); } ) .catch( err => { console.error( `Error: Unable to reset DB and install WordPress. Message: ${ err.message }` );