generate test files
This commit is contained in:
parent
67b15de301
commit
e8b27dec6b
|
@ -56,6 +56,9 @@ export default function() {
|
||||||
return new Mirage.Response(404, {}, {});
|
return new Mirage.Response(404, {}, {});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
this.get('/dashboard', function(schema, request) {
|
||||||
|
// repos and orgs?
|
||||||
|
});
|
||||||
|
|
||||||
// These comments are here to help you get started. Feel free to delete them.
|
// These comments are here to help you get started. Feel free to delete them.
|
||||||
|
|
||||||
|
|
13
tests/acceptance/dashboard-view-test.js
Normal file
13
tests/acceptance/dashboard-view-test.js
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
import { test } from 'qunit';
|
||||||
|
import moduleForAcceptance from 'travis/tests/helpers/module-for-acceptance';
|
||||||
|
|
||||||
|
moduleForAcceptance('Acceptance | dashboard view test');
|
||||||
|
|
||||||
|
test('visiting /dashboard-view-test', function(assert) {
|
||||||
|
|
||||||
|
visit('/dashboard');
|
||||||
|
|
||||||
|
andThen(function() {
|
||||||
|
assert.equal(currentURL(), '/dashboard');
|
||||||
|
});
|
||||||
|
});
|
11
tests/pages/dashboard.js
Normal file
11
tests/pages/dashboard.js
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
import PageObject from 'travis/tests/page-object';
|
||||||
|
|
||||||
|
let {
|
||||||
|
visitable
|
||||||
|
} = PageObject;
|
||||||
|
|
||||||
|
export default PageObject.create({
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
});
|
Loading…
Reference in New Issue
Block a user