test: translate button label (#34700)

This commit is contained in:
Raffael Meyer 2025-11-14 19:11:28 +01:00 committed by GitHub
parent 0be60be5dd
commit e2d2af4628
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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");