diff --git a/cypress.config.dist.mjs b/cypress.config.dist.mjs index e4d00070815a..6a5949eda403 100644 --- a/cypress.config.dist.mjs +++ b/cypress.config.dist.mjs @@ -14,10 +14,7 @@ export default defineConfig({ baseUrl: 'http://localhost/', specPattern: [ 'tests/System/integration/install/**/*.cy.{js,jsx,ts,tsx}', - 'tests/System/integration/administrator/**/*.cy.{js,jsx,ts,tsx}', - 'tests/System/integration/site/**/*.cy.{js,jsx,ts,tsx}', - 'tests/System/integration/api/**/*.cy.{js,jsx,ts,tsx}', - 'tests/System/integration/plugins/**/*.cy.{js,jsx,ts,tsx}', + 'tests/System/integration/plugins/system/sef/SefPlugin.cy.js', ], supportFile: 'tests/System/support/index.js', scrollBehavior: 'center', diff --git a/tests/System/drone-system-run.sh b/tests/System/drone-system-run.sh index 7b106355bc87..823b8f08c598 100644 --- a/tests/System/drone-system-run.sh +++ b/tests/System/drone-system-run.sh @@ -18,6 +18,7 @@ chown -R www-data /tests/www/$TEST_GROUP/ chmod -R 777 /tests/www/$TEST_GROUP/images echo "[RUNNER] Start Apache" +a2enmod rewrite apache2ctl -D FOREGROUND & echo "[RUNNER] Run cypress tests" diff --git a/tests/System/integration/plugins/system/sef/SefPlugin.cy.js b/tests/System/integration/plugins/system/sef/SefPlugin.cy.js index 9e3cbc2b5f23..34cf286530ac 100644 --- a/tests/System/integration/plugins/system/sef/SefPlugin.cy.js +++ b/tests/System/integration/plugins/system/sef/SefPlugin.cy.js @@ -1,4 +1,7 @@ describe('Test that the sef system plugin', () => { + before(() => { + cy.exec(`cp ${Cypress.env('cmsPath')}/htaccess.txt ${Cypress.env('cmsPath')}/.htaccess`); + }); afterEach(() => { cy.exec(`php ${Cypress.env('cmsPath')}/cli/joomla.php config:set sef=true sef_suffix=false sef_rewrite=false`); cy.db_updateExtensionParameter('enforcesuffix', '1', 'plg_system_sef');