mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-17 20:17:00 +02:00
24 lines
882 B
JavaScript
24 lines
882 B
JavaScript
import { currentRouteName } from '@ember/test-helpers';
|
|
import { module, test } from 'qunit';
|
|
import { setupApplicationTest } from 'ember-qunit';
|
|
import page from 'vault/tests/pages/access/identity/index';
|
|
import authPage from 'vault/tests/pages/auth';
|
|
|
|
module('Acceptance | /access/identity/entities', function(hooks) {
|
|
setupApplicationTest(hooks);
|
|
|
|
hooks.beforeEach(function() {
|
|
return authPage.login();
|
|
});
|
|
|
|
test('it renders the entities page', async function(assert) {
|
|
await page.visit({ item_type: 'entities' });
|
|
assert.equal(currentRouteName(), 'vault.cluster.access.identity.index', 'navigates to the correct route');
|
|
});
|
|
|
|
test('it renders the groups page', async function(assert) {
|
|
await page.visit({ item_type: 'groups' });
|
|
assert.equal(currentRouteName(), 'vault.cluster.access.identity.index', 'navigates to the correct route');
|
|
});
|
|
});
|