[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 <qdp@odoo.com>
This commit is contained in:
Ali Alfie (alal)
2023-07-03 21:55:53 +02:00
parent 7694f012cd
commit 3c6c6e6bb3
2 changed files with 2 additions and 2 deletions
@@ -19,7 +19,7 @@
</div>
<t t-set-slot="footer">
<button class="btn btn-primary" t-on-click="onClick" t-esc="buttonText"/>
<button class="btn btn-secondary" t-on-click="props.close">Cancel</button>
<button class="btn btn-secondary" t-on-click="props.close">Close</button>
</t>
</Dialog>
</t>
@@ -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"]);