open-nomad/ui/tests/pages/components/page-size-select.js
2022-01-20 09:54:56 -05:00

19 lines
545 B
JavaScript

import { clickable, collection, isPresent, text } from 'ember-cli-page-object';
export default () => ({
isPresent: isPresent(
'[data-test-page-size-select-parent] .ember-power-select-trigger'
),
open: clickable(
'[data-test-page-size-select-parent] .ember-power-select-trigger'
),
selectedOption: text(
'[data-test-page-size-select-parent] .ember-power-select-selected-item'
),
options: collection('.ember-power-select-option', {
testContainer: '#ember-testing',
resetScope: true,
label: text(),
}),
});