Fix tests from rebase (#2233)

* fix: 🐛 Fix tests broken by rebase onto main

---------

Co-authored-by: cameronperera <cameron.perera@hashicorp.com>
This commit is contained in:
Zhihe Liandcameronperera committed 2024-04-12 14:55:34 -04:00
1 parent 626bdc2c92
commit 33d359e692
9 files changed
+103 -64

No files matched your search

@@ -75,7 +75,7 @@ export default class ScopesScopeCredentialStoresIndexController extends Controll
const { isNew } = credentialStore;
credentialStore.rollbackAttributes();
if (isNew) {
await this.router.transitionTo('scopes.scope.credential-stores');
this.router.transitionTo('scopes.scope.credential-stores');
}
}
@@ -90,7 +90,7 @@ export default class ScopesScopeCredentialStoresIndexController extends Controll
@notifySuccess('notifications.delete-success')
async delete(credentialStore) {
await credentialStore.destroyRecord();
await this.router.replaceWith('scopes.scope.credential-stores');
this.router.replaceWith('scopes.scope.credential-stores');
await this.router.refresh();
}
@@ -35,7 +35,7 @@ export default class ScopesScopeGroupsIndexController extends Controller {
async cancel(group) {
const { isNew } = group;
group.rollbackAttributes();
if (isNew) await this.router.transitionTo('scopes.scope.groups');
if (isNew) this.router.transitionTo('scopes.scope.groups');
}
/**
@@ -6,8 +6,6 @@
import Route from '@ember/routing/route';
import { inject as service } from '@ember/service';
import { action } from '@ember/object';
import { loading } from 'ember-loading';
import { notifySuccess, notifyError } from 'core/decorators/notify';
import { resourceFilter } from 'core/decorators/resource-filter';
export default class ScopesScopeGroupsGroupAddMembersRoute extends Route {
@@ -7,11 +7,13 @@ import { module, test } from 'qunit';
import { visit, click, currentURL } from '@ember/test-helpers';
import { setupApplicationTest } from 'ember-qunit';
import setupMirage from 'ember-cli-mirage/test-support/setup-mirage';
import { setupIndexedDb } from 'api/test-support/helpers/indexed-db';
import { authenticateSession } from 'ember-simple-auth/test-support';
module('Acceptance | aliases | list', function (hooks) {
setupApplicationTest(hooks);
setupMirage(hooks);
setupIndexedDb(hooks);
let intl;
@@ -7,12 +7,14 @@ import { module, test } from 'qunit';
import { visit, currentURL, find, click, fillIn } from '@ember/test-helpers';
import { setupApplicationTest } from 'ember-qunit';
import setupMirage from 'ember-cli-mirage/test-support/setup-mirage';
import { setupIndexedDb } from 'api/test-support/helpers/indexed-db';
import { authenticateSession } from 'ember-simple-auth/test-support';
import { Response } from 'miragejs';
module('Acceptance | credential-stores | create', function (hooks) {
setupApplicationTest(hooks);
setupMirage(hooks);
setupIndexedDb(hooks);
let featuresService;
let getCredentialStoresCount;