From 37228f903669581c06ef4ff669fa90441606d761 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Fri, 19 Aug 2022 23:16:05 +0800 Subject: [PATCH] cypress(gui-v2): change secure to button --- scripts/cypress/support/page_objects/mainPage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/cypress/support/page_objects/mainPage.js b/scripts/cypress/support/page_objects/mainPage.js index b388264871..82fc06aade 100644 --- a/scripts/cypress/support/page_objects/mainPage.js +++ b/scripts/cypress/support/page_objects/mainPage.js @@ -222,7 +222,7 @@ export class _mainPage { .click() .type(host); cy.getActiveModal().find('[placeholder="Port"]').click().type(port); - cy.getActiveModal().find('[placeholder="Secure"]').click().type(secure); + if (secure) cy.getActiveModal().find('[placeholder="Secure"]').click(); cy.getActiveModal().find("button").contains("Save").click(); cy.toastWait( "Successfully installed and email notification will use SMTP configuration"