Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
heelc29 committed Oct 15, 2024
1 parent 720dfe0 commit b1fd7fc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 1 addition & 4 deletions cypress.config.dist.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions tests/System/drone-system-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 3 additions & 0 deletions tests/System/integration/plugins/system/sef/SefPlugin.cy.js
Original file line number Diff line number Diff line change
@@ -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');
Expand Down

0 comments on commit b1fd7fc

Please sign in to comment.