Fixed tests expecting / to redirect to /site

no issue

- `/` now redirects to `/dashboard` instead of `/site`
This commit is contained in:
Kevin Ansfield 2021-01-21 09:22:23 +00:00 committed by Daniel Lockyer
parent 4b5f3f64a4
commit 18f8c9325d
4 changed files with 10 additions and 10 deletions

View File

@ -27,7 +27,7 @@ describe('Acceptance: Members', function () {
await authenticateSession();
await visit('/members');
expect(currentURL()).to.equal('/site');
expect(currentURL()).to.equal('/dashboard');
expect(find('[data-test-nav="members"]'), 'sidebar link')
.to.not.exist;
});

View File

@ -19,13 +19,13 @@ describe('Acceptance: Setup', function () {
await authenticateSession();
await visit('/setup/one');
expect(currentURL()).to.equal('/site');
expect(currentURL()).to.equal('/dashboard');
await visit('/setup/two');
expect(currentURL()).to.equal('/site');
expect(currentURL()).to.equal('/dashboard');
await visit('/setup/three');
expect(currentURL()).to.equal('/site');
expect(currentURL()).to.equal('/dashboard');
});
it('redirects to signin if already set up', async function () {
@ -126,7 +126,7 @@ describe('Acceptance: Setup', function () {
// it redirects to the home / "content" screen
expect(currentURL(), 'url after submitting invites')
.to.equal('/site');
.to.equal('/dashboard');
// it displays success alert
expect(findAll('.gh-alert-green').length, 'number of success alerts')
@ -334,7 +334,7 @@ describe('Acceptance: Setup', function () {
// it redirects to the home / "content" screen
expect(currentURL(), 'url after submitting invites')
.to.equal('/site');
.to.equal('/dashboard');
// it displays success alert
expect(findAll('.gh-alert-green').length, 'number of success alerts')

View File

@ -22,7 +22,7 @@ describe('Acceptance: Signin', function () {
await authenticateSession();
await visit('/signin');
expect(currentURL(), 'current url').to.equal('/site');
expect(currentURL(), 'current url').to.equal('/dashboard');
});
describe('when attempting to signin', function () {
@ -92,7 +92,7 @@ describe('Acceptance: Signin', function () {
await fillIn('[name="identification"]', 'test@example.com');
await fillIn('[name="password"]', 'thisissupersafe');
await click('.gh-btn-blue');
expect(currentURL(), 'currentURL').to.equal('/site');
expect(currentURL(), 'currentURL').to.equal('/dashboard');
});
});
});

View File

@ -167,7 +167,7 @@ describe('Acceptance: Signup', function () {
// submitting sends correct details and redirects to content screen
await click('.gh-btn-green');
expect(currentRouteName()).to.equal('site');
expect(currentRouteName()).to.equal('dashboard');
});
it('redirects if already logged in', async function () {
@ -185,7 +185,7 @@ describe('Acceptance: Signup', function () {
// "1470346017929|kevin+test2@ghost.org|2cDnQc3g7fQTj9nNK4iGPSGfvomkLdXf68FuWgS66Ug="
await visit('/signup/MTQ3MDM0NjAxNzkyOXxrZXZpbit0ZXN0MkBnaG9zdC5vcmd8MmNEblFjM2c3ZlFUajluTks0aUdQU0dmdm9ta0xkWGY2OEZ1V2dTNjZVZz0');
expect(currentRouteName()).to.equal('site');
expect(currentRouteName()).to.equal('dashboard');
expect(find('.gh-alert-content').textContent).to.have.string('sign out to register');
});