Skip to content

Commit

Permalink
[cypress] System Tests fixes #43620, fixes #43622 (#43656)
Browse files Browse the repository at this point in the history
- fixes issue #43620 - if no 'rm' command is available on Windows
- fixes issue #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 17, 2024
1 parent f53b619 commit 22beae0
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 22beae0

Please sign in to comment.