Skip to content

Commit

Permalink
also fix acceptance test
Browse files Browse the repository at this point in the history
  • Loading branch information
lislis committed Aug 3, 2017
1 parent d5290dc commit aea7d67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/acceptance/repo/not-found-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ test('visiting /non-existent/repository shows error message when authenticated',
assert.equal(currentURL(), '/non-existent/repository');
assert.ok(nonExistentRepoPage.showsBarricadeIllustration, 'Shows image for aesthetics');
assert.equal(nonExistentRepoPage.errorMessage, 'We couldn\'t find the repository non-existent/repository', 'Shows message that repository was not found');
assert.notOk(nonExistentRepoPage.errorMessageProUnauthenticated, 'does not show .com authenticated message');
assert.ok(nonExistentRepoPage.errorMessageProisHidden, 'does not show .com authenticated message');
});
});

Expand Down
2 changes: 2 additions & 0 deletions tests/pages/repo/non-existent.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ import {
contains,
visitable,
text,
isHidden
} from 'ember-cli-page-object';

export default create({
visit: visitable('/non-existent/repository'),
showsBarricadeIllustration: contains('svg', { scope: '.page-graphic' }),
errorMessage: text('.missing-notice .page-title'),
errorMessageProisHidden: isHidden('.missing-notice p'),
errorMessageProUnauthenticated: contains('.missing-notice p')
});

0 comments on commit aea7d67

Please sign in to comment.