2018-08-09 23:25:55 -07:00
|
|
|
import { visit, find, currentURL, waitUntil } from '@ember/test-helpers';
|
|
|
|
import { module, skip } from 'qunit';
|
|
|
|
import { setupApplicationTest } from 'ember-qunit';
|
2018-02-09 10:49:35 -08:00
|
|
|
import defaultScenario from 'wherehows-web/mirage/scenarios/default';
|
|
|
|
import appLogin from 'wherehows-web/tests/helpers/login/test-login';
|
|
|
|
|
2018-08-09 23:25:55 -07:00
|
|
|
module('Acceptance | datasets/dataset/schema', function(hooks) {
|
|
|
|
setupApplicationTest(hooks);
|
|
|
|
|
|
|
|
hooks.beforeEach(function() {
|
2018-02-09 10:49:35 -08:00
|
|
|
appLogin();
|
2018-08-09 23:25:55 -07:00
|
|
|
});
|
2018-02-09 10:49:35 -08:00
|
|
|
|
2018-08-09 23:25:55 -07:00
|
|
|
skip('visiting /datasets/dataset/schema', async function(assert) {
|
|
|
|
assert.expect(2);
|
2018-08-30 15:54:14 -07:00
|
|
|
defaultScenario(this.server);
|
2018-08-09 23:25:55 -07:00
|
|
|
const url = '/datasets/12345/schema';
|
2018-02-09 10:49:35 -08:00
|
|
|
|
2018-08-09 23:25:55 -07:00
|
|
|
await visit(url);
|
|
|
|
assert.equal(currentURL(), url, 'schema route is visitable');
|
2018-02-09 10:49:35 -08:00
|
|
|
|
2018-08-09 23:25:55 -07:00
|
|
|
await waitUntil(() => find('.ivy-tabs-tab'));
|
|
|
|
assert.equal(find('.ivy-tabs-tab.active').textContent.trim(), 'Schema', 'schema tab is selected');
|
|
|
|
});
|
2018-02-09 10:49:35 -08:00
|
|
|
});
|