[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:
@@ -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"]);
|
||||
|
||||
Reference in New Issue
Block a user