5146bbdf36
* fix: Use of assign has been deprecated. Please use Object.assign or the spread operator instead. * fix @tagName argument of <LinkTo> is deprecated * clean-up deprecation workflow
24 lines
793 B
JavaScript
24 lines
793 B
JavaScript
import { attribute, collection, create, text } from 'ember-cli-page-object';
|
|
import { definition as Poll } from 'croodle/tests/pages/poll';
|
|
import { defaultsForApplication } from 'croodle/tests/pages/defaults';
|
|
|
|
export default create(
|
|
Object.assign({}, defaultsForApplication, Poll, {
|
|
options: collection(
|
|
'[data-test-table-of="participants"] thead tr:last-child th:not(:first-child)',
|
|
{
|
|
label: text(''),
|
|
},
|
|
),
|
|
participants: collection(
|
|
'[data-test-table-of="participants"] [data-test-participant]',
|
|
{
|
|
name: text('[data-test-value-for="name"]'),
|
|
selections: collection('[data-test-is-selection-cell]', {
|
|
answer: text(''),
|
|
option: attribute('data-test-value-for', ''),
|
|
}),
|
|
},
|
|
),
|
|
}),
|
|
);
|