Icu 10210 use hds table in principal list view (#1792)

* chore: 🤖 Retire rose form textarea

✅ Closes: ICU-9425

* refactor: 💡 Added the disabled feature requested by Dharini

* refactor: 💡 Rose tables to HDS tables in Users

* refactor: 💡 Removed implementation of rose tables in users

* refactor: 💡 use hds table in groups list view

* refactor: 💡 Removed the group list class Dharini mentioned

* refactor: 💡 Resolved the conflicts in user list table and group

* refactor: 💡 Use hds table in role list view

* refactor: 💡 Use HDS tables for user accounts

* refactor: 💡 Fixed the linting error

* refactor: 💡 Use HDS tables in principal list view

---------

Co-authored-by: Dharini Jeeva <dharini@hashicorp.com>
This commit is contained in:
NatashaKabandDharini Jeeva authored and GitHub committed 2023-07-19 16:49:37 -04:00
1 parent 52cf2c0c53
commit 8cd8724589
2 files changed
+63 -64

No files matched your search

@@ -71,7 +71,8 @@ module('Acceptance | roles | principals', function (hooks) {
assert.expect(2);
await visit(urls.rolePrincipals);
assert.strictEqual(findAll('tbody tr').length, principalsCount);
await click('tbody tr .rose-dropdown-button-danger');
await click('.hds-dropdown-toggle-icon');
await click('tbody tr .hds-dropdown-list-item button');
assert.strictEqual(findAll('tbody tr').length, principalsCount - 1);
});
@@ -82,7 +83,7 @@ module('Acceptance | roles | principals', function (hooks) {
);
instances.role.update({ authorized_actions });
await visit(urls.rolePrincipals);
assert.notOk(find('tbody tr .rose-dropdown-button-danger'));
assert.notOk(find('tbody tr .hds-dropdown-list-item button'));
});
test('shows error message on principal remove', async function (assert) {
@@ -101,7 +102,8 @@ module('Acceptance | roles | principals', function (hooks) {
});
await visit(urls.rolePrincipals);
assert.strictEqual(findAll('tbody tr').length, principalsCount);
await click('tbody tr .rose-dropdown-button-danger');
await click('.hds-dropdown-toggle-icon');
await click('tbody tr .hds-dropdown-list-item button');
assert.ok(find('[role="alert"]'));
});
@@ -136,7 +138,8 @@ module('Acceptance | roles | principals', function (hooks) {
await visit(urls.rolePrincipals);
assert.strictEqual(findAll('tbody tr').length, principalsCount);
// Remove a principal to populate association view
await click('tbody tr .rose-dropdown-button-danger');
await click('.hds-dropdown-toggle-icon');
await click('tbody tr .hds-dropdown-list-item button');
assert.strictEqual(findAll('tbody tr').length, principalsCount - 1);
await click('.rose-layout-page-actions a');
assert.strictEqual(currentURL(), urls.addPrincipals);