Skip to content

Commit

Permalink
[cypress] System Tests fixes joomla#43620, fixes joomla#43622
Browse files Browse the repository at this point in the history
- fixes issue joomla#43620 - if no 'rm' command is available on Windows
- fixes issue joomla#43622 - if cmsPath is set
- custom task 'deleteFolder' can also delete a file and ignores
  if the file does not exist -> exactly what we need
- once PR is merged i will create the next PR to rename 'deleteFolder' as 'deleteRelativePath'
  and also 'writeFile' as 'writeRelativeFile' to better represent the functions
  • Loading branch information
muhme committed Jun 15, 2024
1 parent 1f03f33 commit 771522b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/System/integration/install/Installation.cy.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
describe('Install Joomla', () => {
it('Install Joomla', () => {
cy.exec('rm configuration.php', { failOnNonZeroExit: false });

const config = {
sitename: Cypress.env('sitename'),
name: Cypress.env('name'),
Expand All @@ -16,6 +14,8 @@ describe('Install Joomla', () => {
db_prefix: Cypress.env('db_prefix'),
};

// If exists, delete PHP configuration file to force a new installation
cy.task('deleteFolder', 'configuration.php');
cy.installJoomla(config);

cy.doAdministratorLogin(config.username, config.password, false);
Expand Down

0 comments on commit 771522b

Please sign in to comment.