refactor: 💡 remove rose table references (#2589)
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-15644
This commit is contained in:
1 parent
96b9a20844
commit
2f8a53e3ea
38 files changed
+127
-594
No files matched your search
@@ -7,6 +7,7 @@ import { module, test } from 'qunit';
|
||||
import { visit, currentURL } from '@ember/test-helpers';
|
||||
import { setupApplicationTest } from 'admin/tests/helpers';
|
||||
import setupMirage from 'ember-cli-mirage/test-support/setup-mirage';
|
||||
import { setupIndexedDb } from 'api/test-support/helpers/indexed-db';
|
||||
import a11yAudit from 'ember-a11y-testing/test-support/audit';
|
||||
import { authenticateSession } from 'ember-simple-auth/test-support';
|
||||
import * as commonSelectors from 'admin/tests/helpers/selectors';
|
||||
@@ -14,6 +15,7 @@ import * as commonSelectors from 'admin/tests/helpers/selectors';
|
||||
module('Acceptance | groups | read', function (hooks) {
|
||||
setupApplicationTest(hooks);
|
||||
setupMirage(hooks);
|
||||
setupIndexedDb(hooks);
|
||||
|
||||
const instances = {
|
||||
scopes: {
|
||||
@@ -54,12 +56,12 @@ module('Acceptance | groups | read', function (hooks) {
|
||||
test('cannot navigate to a group form without proper authorization', async function (assert) {
|
||||
instances.group.authorized_actions =
|
||||
instances.group.authorized_actions.filter((item) => item !== 'read');
|
||||
await visit(urls.group);
|
||||
await visit(urls.groups);
|
||||
|
||||
assert.dom(commonSelectors.TABLE_FIRST_ROW_RESOURCE_LINK).doesNotExist();
|
||||
assert.dom(commonSelectors.TABLE_RESOURCE_LINK(urls.group)).doesNotExist();
|
||||
});
|
||||
|
||||
test('users can navigate to group and incorrect url autocorrects', async function (assert) {
|
||||
test('users can navigate to group and incorrect url auto-corrects', async function (assert) {
|
||||
const orgScope = this.server.create('scope', {
|
||||
type: 'org',
|
||||
scope: { id: 'global', type: 'global' },
|
||||
|
||||
Reference in new issue
Block a user