From 96b95ef5e546e1fe537a820cfa533b78bcad84f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Fri, 22 Nov 2024 15:13:45 +0100 Subject: [PATCH] ci: When saving credentials in e2e tests, wait for the save operation to finish (no-changelog) (#11850) Co-authored-by: Csaba Tuncsik --- cypress/composables/modals/credential-modal.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cypress/composables/modals/credential-modal.ts b/cypress/composables/modals/credential-modal.ts index 8ce6a86049..77b69fc586 100644 --- a/cypress/composables/modals/credential-modal.ts +++ b/cypress/composables/modals/credential-modal.ts @@ -35,7 +35,11 @@ export function setCredentialConnectionParameterInputByName(name: string, value: } export function saveCredential() { - getCredentialSaveButton().click({ force: true }); + getCredentialSaveButton() + .click({ force: true }) + .within(() => { + cy.get('button').should('not.exist'); + }); } export function closeCredentialModal() {