mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
UI: Hds::Dropdown replace PopupMenu (#25321)
This commit is contained in:
@@ -53,8 +53,8 @@ module('Integration | Component | transform-list-item', function (hooks) {
|
||||
/>`);
|
||||
|
||||
assert.dom('[data-test-secret-link="template/foo"]').exists('shows clickable list item');
|
||||
await click('button.popup-menu-trigger');
|
||||
assert.dom('.popup-menu-content li').exists({ count: 1 }, 'has one option');
|
||||
await click('[data-test-popup-menu-trigger]');
|
||||
assert.dom('.hds-dropdown li').exists({ count: 1 }, 'has one option');
|
||||
});
|
||||
|
||||
test('it has details and edit menu item if read & edit capabilities', async function (assert) {
|
||||
@@ -76,8 +76,8 @@ module('Integration | Component | transform-list-item', function (hooks) {
|
||||
/>`);
|
||||
|
||||
assert.dom('[data-test-secret-link="alphabet/foo"]').exists('shows clickable list item');
|
||||
await click('button.popup-menu-trigger');
|
||||
assert.dom('.popup-menu-content li').exists({ count: 2 }, 'has both options');
|
||||
await click('[data-test-popup-menu-trigger]');
|
||||
assert.dom('.hds-dropdown li').exists({ count: 2 }, 'has both options');
|
||||
});
|
||||
|
||||
test('it is not clickable if built-in template with all capabilities', async function (assert) {
|
||||
|
||||
Reference in New Issue
Block a user