mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2026-01-11 22:45:22 +00:00
26 lines
822 B
JavaScript
26 lines
822 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
import { currentRouteName } from '@ember/test-helpers';
|
|
import { module, test } from 'qunit';
|
|
import { setupApplicationTest } from 'ember-qunit';
|
|
import page from 'vault/tests/pages/access/methods';
|
|
import authPage from 'vault/tests/pages/auth';
|
|
|
|
module('Acceptance | /access/', function (hooks) {
|
|
setupApplicationTest(hooks);
|
|
|
|
hooks.beforeEach(function () {
|
|
return authPage.login();
|
|
});
|
|
|
|
test('it navigates', async function (assert) {
|
|
await page.visit();
|
|
assert.strictEqual(currentRouteName(), 'vault.cluster.access.methods', 'navigates to the correct route');
|
|
assert.ok(page.navLinks.objectAt(0).isActive, 'the first link is active');
|
|
assert.strictEqual(page.navLinks.objectAt(0).text, 'Auth Methods');
|
|
});
|
|
});
|