From 3c6c6e6bb346ce9f8edb0e5d1e19e54fbbdf14d7 Mon Sep 17 00:00:00 2001 From: "Ali Alfie (alal)" Date: Tue, 20 Jun 2023 10:20:01 +0000 Subject: [PATCH] [IMP] web: rename cancel button in RedirectWarning to close "Cancel" button in the RedirectWarning is renamed to "Close" task-3339621 closes odoo/odoo#125751 Signed-off-by: Quentin De Paoli --- addons/web/static/src/core/errors/error_dialogs.xml | 2 +- addons/web/static/tests/core/errors/error_dialogs_tests.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/web/static/src/core/errors/error_dialogs.xml b/addons/web/static/src/core/errors/error_dialogs.xml index f1a6c4032dc..44e28ad17a2 100644 --- a/addons/web/static/src/core/errors/error_dialogs.xml +++ b/addons/web/static/src/core/errors/error_dialogs.xml @@ -19,7 +19,7 @@ + diff --git a/addons/web/static/tests/core/errors/error_dialogs_tests.js b/addons/web/static/tests/core/errors/error_dialogs_tests.js index db1f197988e..75c3194a1e8 100644 --- a/addons/web/static/tests/core/errors/error_dialogs_tests.js +++ b/addons/web/static/tests/core/errors/error_dialogs_tests.js @@ -233,7 +233,7 @@ QUnit.test("RedirectWarningDialog", async (assert) => { const footerButtons = target.querySelectorAll("footer button"); assert.deepEqual( [...footerButtons].map((el) => el.textContent), - ["Buy book on cryptography", "Cancel"] + ["Buy book on cryptography", "Close"] ); await click(footerButtons[0]); // click on "Buy book on cryptography" assert.verifySteps(["buy_action_id", "dialog-closed"]);