-
-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3c2d7ab
commit b334775
Showing
5 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import Route from '@ember/routing/route'; | ||
|
||
export default class NotFoundRoute extends Route {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{{page-title "Page Not Found"}} | ||
|
||
<div class="container text-center"> | ||
<h1>Page Not Found</h1> | ||
<p>We couldn't find what you were looking for.</p> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { visit } from '@ember/test-helpers'; | ||
import percySnapshot from '@percy/ember'; | ||
import { a11yAudit } from 'ember-a11y-testing/test-support'; | ||
import { setupMirage } from 'ember-cli-mirage/test-support'; | ||
import { setupApplicationTest } from 'ember-qunit'; | ||
import loadDefaultScenario from 'ember-website/mirage/scenarios/default'; | ||
import { setupPageTitleTest } from 'ember-website/tests/helpers/page-title'; | ||
import { module, test } from 'qunit'; | ||
|
||
module('Acceptance | not found', function(hooks) { | ||
setupApplicationTest(hooks); | ||
setupMirage(hooks); | ||
setupPageTitleTest(hooks); | ||
|
||
hooks.beforeEach(function () { | ||
loadDefaultScenario(this.server); | ||
}); | ||
|
||
test('Percy snapshot', async function (assert) { | ||
await visit('/foo-bar-baz'); | ||
await percySnapshot(assert); | ||
|
||
assert.ok(true); | ||
}); | ||
|
||
test('Accessibility audit', async function (assert) { | ||
await visit('/foo-bar-baz'); | ||
await a11yAudit(); | ||
|
||
assert.hasPageTitle('Page Not Found - Ember.js'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { setupTest } from 'ember-qunit'; | ||
import { module, test } from 'qunit'; | ||
|
||
module('Unit | Route | not-found', function(hooks) { | ||
setupTest(hooks); | ||
|
||
test('it exists', function(assert) { | ||
let route = this.owner.lookup('route:not-found'); | ||
|
||
assert.ok(route); | ||
}); | ||
}); |