mirror of
https://github.com/documize/community.git
synced 2025-07-24 15:49:44 +02:00
Add more tests and cleanup old ones
This commit is contained in:
parent
68271646eb
commit
c3c7a8450c
7 changed files with 75 additions and 62 deletions
|
@ -16,7 +16,6 @@ moduleForAcceptance('Acceptance | Anon access enabled');
|
|||
|
||||
test('visiting / when not authenticated and with { allowAnonymousAccess: true } takes user to folder view', function (assert) {
|
||||
server.create('meta', { allowAnonymousAccess: true });
|
||||
server.createList('folder', 2);
|
||||
visit('/');
|
||||
|
||||
andThen(function () {
|
||||
|
@ -28,8 +27,6 @@ test('visiting / when not authenticated and with { allowAnonymousAccess: true }
|
|||
|
||||
test('visiting / when authenticated and with { allowAnonymousAccess: true } takes user to dashboard', function (assert) {
|
||||
server.create('meta', { allowAnonymousAccess: true });
|
||||
server.createList('folder', 2);
|
||||
server.createList('user', 2);
|
||||
visit('/');
|
||||
|
||||
andThen(function () {
|
||||
|
@ -39,8 +36,6 @@ test('visiting / when authenticated and with { allowAnonymousAccess: true } take
|
|||
|
||||
userLogin();
|
||||
|
||||
// return pauseTest();
|
||||
|
||||
andThen(function () {
|
||||
assert.equal(find('.login').length, 0, 'Login button is not displayed');
|
||||
assert.equal(currentURL(), '/s/VzMuyEw_3WqiafcG/my-project', 'Dashboard is displayed after user is signed in');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue