From ad119eeb4812227e71f03a774105dcc1356fa2cb Mon Sep 17 00:00:00 2001 From: zinyando Date: Wed, 6 Jul 2016 13:01:07 +0200 Subject: [PATCH] Fix broken tests --- app/mirage/config.js | 1 - app/tests/acceptance/anon-access-enabled-test.js | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/mirage/config.js b/app/mirage/config.js index e9095281..3b9ae31d 100644 --- a/app/mirage/config.js +++ b/app/mirage/config.js @@ -124,7 +124,6 @@ export default function () { }); this.post('/public/authenticate', (schema, request) => { - debugger; let authorization = request.requestHeaders.Authorization; let expectedAuthorization = "Basic OmJyaXpkaWdpdGFsQGdtYWlsLmNvbTp6aW55YW5kbzEyMw=="; diff --git a/app/tests/acceptance/anon-access-enabled-test.js b/app/tests/acceptance/anon-access-enabled-test.js index 7fb214e8..16de2e54 100644 --- a/app/tests/acceptance/anon-access-enabled-test.js +++ b/app/tests/acceptance/anon-access-enabled-test.js @@ -11,7 +11,7 @@ test('visiting / when not authenticated and with { allowAnonymousAccess: true } andThen(function () { assert.equal(find('.login').length, 1, 'Login button is displayed'); assert.equal(find('.documents-list .document').length, 2, '2 document displayed'); - assert.equal(currentURL(), '/s/VzMygEw_3WrtFzto/test', 'Dashboard and public spaces are displayed without being signed in'); + assert.equal(currentURL(), '/s/VzMuyEw_3WqiafcG/my-project', 'Dashboard and public spaces are displayed without being signed in'); }); }); @@ -22,13 +22,13 @@ test('visiting / when authenticated and with { allowAnonymousAccess: true } take andThen(function () { assert.equal(find('.login').length, 1, 'Login button is displayed'); - assert.equal(currentURL(), '/s/VzMygEw_3WrtFzto/test', 'Dashboard displayed without being signed in'); + assert.equal(currentURL(), '/s/VzMuyEw_3WqiafcG/my-project', 'Dashboard displayed without being signed in'); }); userLogin(); andThen(function () { assert.equal(find('.login').length, 0, 'Login button is not displayed'); - assert.equal(currentURL(), '/s/VzMygEw_3WrtFzto/test', 'Dashboard is displayed after user is signed in'); + assert.equal(currentURL(), '/s/VzMuyEw_3WqiafcG/my-project', 'Dashboard is displayed after user is signed in'); }); });