24 lines
517 B
JavaScript
24 lines
517 B
JavaScript
import { acceptance } from "helpers/qunit-helpers";
|
|
|
|
acceptance("Login with email disabled", {
|
|
settings: {
|
|
enable_local_logins_via_email: false,
|
|
enable_facebook_logins: true,
|
|
},
|
|
});
|
|
|
|
QUnit.test("with email button", async (assert) => {
|
|
await visit("/");
|
|
await click("header .login-button");
|
|
|
|
assert.ok(
|
|
exists(".btn-social.facebook"),
|
|
"it displays the facebook login button"
|
|
);
|
|
|
|
assert.notOk(
|
|
exists(".login-with-email-button"),
|
|
"it displays the login with email button"
|
|
);
|
|
});
|