d509588cd2
Ember update - update ember-cli, ember-data, and ember to 3.4 series
26 lines
881 B
JavaScript
26 lines
881 B
JavaScript
import { currentRouteName } from '@ember/test-helpers';
|
|
import { module, test } from 'qunit';
|
|
import { setupApplicationTest } from 'ember-qunit';
|
|
import page from 'vault/tests/pages/settings/configure-secret-backends/pki/index';
|
|
import authPage from 'vault/tests/pages/auth';
|
|
import enablePage from 'vault/tests/pages/settings/mount-secret-backend';
|
|
|
|
module('Acceptance | settings/configure/secrets/pki', function(hooks) {
|
|
setupApplicationTest(hooks);
|
|
|
|
hooks.beforeEach(function() {
|
|
return authPage.login();
|
|
});
|
|
|
|
test('it redirects to the cert section', async function(assert) {
|
|
const path = `pki-${new Date().getTime()}`;
|
|
await enablePage.enable('pki', path);
|
|
await page.visit({ backend: path });
|
|
assert.equal(
|
|
currentRouteName(),
|
|
'vault.cluster.settings.configure-secret-backend.section',
|
|
'redirects from the index'
|
|
);
|
|
});
|
|
});
|