Icu 10367 use hds table in target host sources (#1806)
* refactor: 💡 Use HDS tables in user accounts * refactor: 💡 Use HDS tables in target host sources
This commit is contained in:
1 parent
438de7d1af
commit
e5a026ed34
2 files changed
+63
-67
No files matched your search
@@ -128,7 +128,8 @@ module('Acceptance | targets | host-sources', function (hooks) {
|
||||
await visit(urls.target);
|
||||
|
||||
await click(`[href="${urls.targetHostSources}"]`);
|
||||
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(getTargetHostSetCount(), targetHostSetCount - 1);
|
||||
assert.dom('tbody tr').exists({ count: targetHostSetCount - 1 });
|
||||
@@ -165,7 +166,8 @@ module('Acceptance | targets | host-sources', function (hooks) {
|
||||
await visit(urls.target);
|
||||
|
||||
await click(`[href="${urls.targetHostSources}"]`);
|
||||
await click('tbody tr .rose-dropdown-button-danger');
|
||||
await click('.hds-dropdown-toggle-icon');
|
||||
await click('tbody tr .hds-dropdown-list-item button');
|
||||
|
||||
assert.dom('tbody tr').exists({ count: targetHostSetCount });
|
||||
assert.dom('[role="alert"] div').hasText('The request was invalid.');
|
||||
@@ -217,7 +219,8 @@ module('Acceptance | targets | host-sources', function (hooks) {
|
||||
assert.dom('tbody tr').exists({ count: targetHostSetCount });
|
||||
|
||||
// first, remove a target host set (otherwise none would be available to add)
|
||||
await click('tbody tr .rose-dropdown-button-danger');
|
||||
await click('.hds-dropdown-toggle-icon');
|
||||
await click('tbody tr .hds-dropdown-list-item button');
|
||||
assert.dom('tbody tr').exists({ count: targetHostSetCount - 1 });
|
||||
|
||||
await click('.rose-layout-page-actions a');
|
||||
|
||||
Reference in new issue
Block a user