2018-07-02 08:35:50 -04:00
|
|
|
import { acceptance } from "helpers/qunit-helpers";
|
|
|
|
|
|
|
|
acceptance("Login with email disabled", {
|
|
|
|
settings: {
|
|
|
|
enable_local_logins_via_email: false,
|
|
|
|
enable_facebook_logins: true
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2018-07-19 06:12:00 -04:00
|
|
|
QUnit.test("with email button", async assert => {
|
|
|
|
await visit("/");
|
|
|
|
await click("header .login-button");
|
2018-07-02 08:35:50 -04:00
|
|
|
|
2018-07-19 06:12:00 -04:00
|
|
|
assert.ok(
|
|
|
|
exists(".btn-social.facebook"),
|
|
|
|
"it displays the facebook login button"
|
|
|
|
);
|
2018-07-02 08:35:50 -04:00
|
|
|
|
2018-07-19 06:12:00 -04:00
|
|
|
assert.notOk(
|
|
|
|
exists(".login-with-email-button"),
|
|
|
|
"it displays the login with email button"
|
|
|
|
);
|
2018-07-02 08:35:50 -04:00
|
|
|
});
|