open-vault/ui/tests/pages/components/list-view.js
Matthew Irish 29a85fa1c5
UI kmip acceptance (#7129)
* change the story blueprint so that using -ir will generate a story in the expected place for in-repo addons and engines

* update gen-story-md script to do output md to stories folder inside of in-repo addons and engines

* update storybook config to look for story files in /lib

* add story for list-view component

* add list view page object

* add kmip page objects and tests

* update storybook commands in the README

* split tests up more

* update var name in storybook
2019-08-01 16:04:59 -05:00

24 lines
777 B
JavaScript

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',
}),
};