1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-08-09 07:25:23 +02:00

Move anon tests into separate files

This commit is contained in:
zinyando 2016-05-24 18:47:50 +02:00
parent 20849c53a8
commit 6e71dbc234

View file

@ -1,29 +0,0 @@
import { test, skip } from 'qunit';
import moduleForAcceptance from 'documize/tests/helpers/module-for-acceptance';
// import stubSession from '../helpers/stub-session';
moduleForAcceptance('Acceptance | /');
skip('visiting / when not authenticated and with { allowAnonymousAccess: false } takes user to login', function(assert) {
visit('/');
andThen(function() {
assert.equal(currentURL(), '/auth/login');
});
});
skip('visiting / when not authenticated and with { allowAnonymousAccess: true } takes user to folder view', function(assert) {
visit('/');
andThen(function() {
assert.equal(currentURL(), '/s/VzMuyEw_3WqiafcG/my-project');
});
});
skip('visiting / when authenticated and with { allowAnonymousAccess: true } takes user to dashboard', function(assert) {
userLogin();
andThen(function() {
assert.equal(currentURL(), '/s/VzMuyEw_3WqiafcG/my-project');
});
});