From e2d2af4628264e5cc74598c09e7d062672253f44 Mon Sep 17 00:00:00 2001 From: Raffael Meyer <14891507+barredterra@users.noreply.github.com> Date: Fri, 14 Nov 2025 19:11:28 +0100 Subject: [PATCH] test: translate button label (#34700) --- cypress/integration/web_form.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cypress/integration/web_form.js b/cypress/integration/web_form.js index c93593908d..882181349f 100644 --- a/cypress/integration/web_form.js +++ b/cypress/integration/web_form.js @@ -40,7 +40,11 @@ context("Web Form", () => { cy.url().should("include", "/note/new"); cy.fill_field("title", "Guest Note 1"); - cy.get(".web-form-actions button").contains("Save").click(); + cy.window() + .its("__") + .then((__) => { + cy.get(".web-form-actions button").contains(__("Save")).click(); + }); cy.url().should("include", "/note/new");