2018-02-21 09:46:04 -08:00
|
|
|
import { skip } from 'qunit';
|
2018-02-09 10:49:35 -08:00
|
|
|
import moduleForAcceptance from 'wherehows-web/tests/helpers/module-for-acceptance';
|
|
|
|
import { visit, find, currentURL, waitUntil } from 'ember-native-dom-helpers';
|
|
|
|
import defaultScenario from 'wherehows-web/mirage/scenarios/default';
|
|
|
|
import appLogin from 'wherehows-web/tests/helpers/login/test-login';
|
|
|
|
|
|
|
|
moduleForAcceptance('Acceptance | datasets/dataset/schema', {
|
|
|
|
async beforeEach() {
|
|
|
|
appLogin();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2018-02-21 09:46:04 -08:00
|
|
|
skip('visiting /datasets/dataset/schema', async function(assert) {
|
2018-02-09 10:49:35 -08:00
|
|
|
assert.expect(2);
|
|
|
|
defaultScenario(server);
|
|
|
|
const url = '/datasets/12345/schema';
|
|
|
|
|
|
|
|
await visit(url);
|
|
|
|
assert.equal(currentURL(), url, 'schema route is visitable');
|
|
|
|
|
|
|
|
await waitUntil(() => find('.ivy-tabs-tab'));
|
|
|
|
assert.equal(find('.ivy-tabs-tab.active').textContent.trim(), 'Schema', 'schema tab is selected');
|
|
|
|
});
|