From 1c18a363dfecb5911b9223f39a77fe6df0338aa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Heiko=20L=C3=BCbbe?= Date: Sun, 25 Aug 2024 16:36:32 +0200 Subject: [PATCH] installJoomla for stable releases --- src/joomla.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/joomla.js b/src/joomla.js index 028942a..600ea41 100644 --- a/src/joomla.js +++ b/src/joomla.js @@ -44,6 +44,16 @@ const joomlaCommands = () => { cy.wait(['@ajax_create', '@ajax_populate1', '@ajax_populate2', '@ajax_populate3', '@finished'], {timeout: 120000}) cy.get('#installCongrat').should('be.visible') + // In case of Stable release the Joomla Web Installer needs one more click to complete the installation + cy.get('button.complete-installation').then($button => { + // Check if the button exists + if ($button.length > 0) { + // If there is a button, click on it and + // since there are two of them, just click on the first one, it doesn't matter which one + cy.wrap($button).first().click() + } + }) + cy.log('--Install Joomla--') }