vault/ui/tests/pages/components/list-view.js
Hamid Ghaf e55c18ed12
adding copyright header (#19555)
* adding copyright header

* fix fmt and a test
2023-03-15 09:00:52 -07:00

29 lines
855 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import { text, isPresent, collection, clickable } from 'ember-cli-page-object';
export default {
isEmpty: isPresent('[data-test-component="empty-state"]'),
listItemLinks: collection('[data-test-list-item-link]', {
text: text(),
click: clickable(),
menuToggle: clickable('[data-test-popup-menu-trigger]'),
}),
listItems: collection('[data-test-list-item]', {
text: text(),
menuToggle: clickable('[data-test-popup-menu-trigger]'),
}),
menuItems: collection('.ember-basic-dropdown-content li', {
testContainer: '#ember-testing',
}),
delete: clickable('[data-test-confirm-action-trigger]', {
testContainer: '#ember-testing',
}),
confirmDelete: clickable('[data-test-confirm-button]', {
testContainer: '#ember-testing',
}),
};