Skip to content

Instantly share code, notes, and snippets.

@Mariusio
Created March 16, 2016 15:31
Show Gist options
  • Save Mariusio/7901bb96fbeb9fb55455 to your computer and use it in GitHub Desktop.
Save Mariusio/7901bb96fbeb9fb55455 to your computer and use it in GitHub Desktop.
/* eslint no-undef: "off" */
import { test } from 'qunit';
import moduleForAcceptance from 'zenline-frontend/tests/helpers/module-for-acceptance';
moduleForAcceptance('Acceptance | login logout');
/*
Checks if a user can login and logout
*/
Ember.run(() => {
test('can login', (assert) => {
visit('/login');
fillIn('input.input-email', '[email protected]');
fillIn('input.input-password', 'password');
click('button.btn-login-submit');
// andThen(() => assert.equal(currentUrl(), '/dashboards'));
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment