decide.nolog.cz/tests/pages/poll/evaluation.js
Jeldrik Hanschke 5146bbdf36
Fix remaining deprecations (#711)
* 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
2023-10-28 19:21:45 +02:00

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