Improve Project Navigation in Sidebar for Admin UI (#2829)
* When clicking on project in list, go to targets page * Move Sessions link to bottom of main list on Project scope sidebar * Add backlink to Orgs * Add backlink to Global * Fix some tests * test: 💍 fix a couple more tests --------- Co-authored-by: Lisbet Alvarez <lisbet.alvarez@hashicorp.com> Co-authored-by: Lisbet Alvarez <107949262+lisbet-alvarez@users.noreply.github.com>
This commit is contained in:
6 files changed
+29
-30
No files matched your search
@@ -37,6 +37,7 @@ module('Unit | Controller | scopes/scope/targets/index', function (hooks) {
|
||||
};
|
||||
|
||||
const urls = {
|
||||
orgScope: null,
|
||||
projectScope: null,
|
||||
targets: null,
|
||||
target: null,
|
||||
@@ -71,6 +72,7 @@ module('Unit | Controller | scopes/scope/targets/index', function (hooks) {
|
||||
scope: instances.scopes.global,
|
||||
});
|
||||
|
||||
urls.orgScope = `/scopes/${instances.scopes.org.id}/scopes`;
|
||||
urls.projectScope = `/scopes/${instances.scopes.project.id}`;
|
||||
urls.targets = `${urls.projectScope}/targets`;
|
||||
urls.target = `${urls.targets}/${instances.target.id}`;
|
||||
@@ -164,7 +166,7 @@ module('Unit | Controller | scopes/scope/targets/index', function (hooks) {
|
||||
});
|
||||
|
||||
test('delete action destroys specified model', async function (assert) {
|
||||
await visit(urls.projectScope);
|
||||
await visit(urls.orgScope);
|
||||
const target = await store.findRecord('target', instances.target.id);
|
||||
const targetCount = getTargetCount();
|
||||
|
||||
|
||||
Reference in new issue
Block a user