DEV: Update create-account test to be more clear (#17102)

This commit is contained in:
Isaac Janzen 2022-06-15 12:47:47 -05:00 committed by GitHub
parent bc0a37b642
commit a7034c5a14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 7 deletions

View File

@ -70,18 +70,12 @@ acceptance("Create Account - User Fields", function (needs) {
test("can submit with enter", async function (assert) {
await visit("/");
await click("header .sign-up-button");
await triggerKeyEvent(".modal-footer .btn-primary", "keydown", 13);
assert.strictEqual(
count("#modal-alert:visible"),
1,
"hitting Enter triggers modal action"
);
assert.strictEqual(
count(".d-modal:visible"),
1,
"hitting Enter does not dismiss modal due to alert error"
"hitting Enter triggers action"
);
});
});