DEV: Update create-account test to be more clear (#17102)
This commit is contained in:
parent
bc0a37b642
commit
a7034c5a14
|
@ -70,18 +70,12 @@ acceptance("Create Account - User Fields", function (needs) {
|
||||||
test("can submit with enter", async function (assert) {
|
test("can submit with enter", async function (assert) {
|
||||||
await visit("/");
|
await visit("/");
|
||||||
await click("header .sign-up-button");
|
await click("header .sign-up-button");
|
||||||
|
|
||||||
await triggerKeyEvent(".modal-footer .btn-primary", "keydown", 13);
|
await triggerKeyEvent(".modal-footer .btn-primary", "keydown", 13);
|
||||||
|
|
||||||
assert.strictEqual(
|
assert.strictEqual(
|
||||||
count("#modal-alert:visible"),
|
count("#modal-alert:visible"),
|
||||||
1,
|
1,
|
||||||
"hitting Enter triggers modal action"
|
"hitting Enter triggers action"
|
||||||
);
|
|
||||||
assert.strictEqual(
|
|
||||||
count(".d-modal:visible"),
|
|
||||||
1,
|
|
||||||
"hitting Enter does not dismiss modal due to alert error"
|
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue