open-nomad/ui/tests/pages/components/facet.js
2019-04-10 10:34:10 -05:00

18 lines
434 B
JavaScript

import { isPresent, clickable, collection, text, attribute } from 'ember-cli-page-object';
export default scope => ({
scope,
isPresent: isPresent(),
toggle: clickable('[data-test-dropdown-trigger]'),
options: collection('[data-test-dropdown-option]', {
testContainer: '#ember-testing',
resetScope: true,
label: text(),
key: attribute('data-test-dropdown-option'),
toggle: clickable('label'),
}),
});