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:
parent
20849c53a8
commit
6e71dbc234
1 changed files with 0 additions and 29 deletions
|
@ -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');
|
|
||||||
});
|
|
||||||
});
|
|
Loading…
Add table
Add a link
Reference in a new issue