98ff62af80
* Update dependency prettier to v3 * upgrade eslint-plugin-prettier and run prettier on all files --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jeldrik Hanschke <admin@jhanschke.de>
22 lines
741 B
JavaScript
22 lines
741 B
JavaScript
import PageObject from 'ember-cli-page-object';
|
|
import { definition as Poll } from 'croodle/tests/pages/poll';
|
|
import { defaultsForApplication } from 'croodle/tests/pages/defaults';
|
|
import { hasFocus } from 'croodle/tests/pages/helpers';
|
|
|
|
let { collection, fillable, text, visitable } = PageObject;
|
|
|
|
const { assign } = Object;
|
|
|
|
export default PageObject.create(
|
|
assign({}, defaultsForApplication, Poll, {
|
|
description: text('.description'),
|
|
name: fillable('.name input'),
|
|
nameHasFocus: hasFocus('.name input'),
|
|
options: collection('.selections .form-group', {
|
|
label: text('label'),
|
|
}),
|
|
title: text('h2.title'),
|
|
// use as .visit({ encryptionKey: ??? })
|
|
visit: visitable('/poll/participation'),
|
|
}),
|
|
);
|