open-nomad/ui/tests/pages/components/page-size-select.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
545 B
JavaScript
Raw Normal View History

import { clickable, collection, isPresent, text } from 'ember-cli-page-object';
export default () => ({
2021-12-28 16:08:12 +00:00
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(),
}),
});