c7e5283b8b
* add browserstack * check for data before removing root token * fix root prefix and select by attributes for ie11 * use objectAt for ie11 * use blobs instead of files for ie11 * manually round cirucmference for ie11 * skip csp test on ie11 * skip tests in ie11 * include polyfill for CI * remove on exit hooks * update which browserstack tests are run * remove ie check since we are not running these tests in ie * remove ie check since we are not running these tests in ie
34 lines
1,020 B
JavaScript
34 lines
1,020 B
JavaScript
import { clickable, collection, fillable, text, value, attribute } from 'ember-cli-page-object';
|
|
import fields from './form-field';
|
|
import errorText from './alert-banner';
|
|
|
|
export default {
|
|
...fields,
|
|
...errorText,
|
|
header: text('[data-test-mount-form-header]'),
|
|
submit: clickable('[data-test-mount-submit]'),
|
|
next: clickable('[data-test-mount-next]'),
|
|
back: clickable('[data-test-mount-back]'),
|
|
path: fillable('[data-test-input="path"]'),
|
|
toggleOptions: clickable('[data-test-toggle-group="Method Options"]'),
|
|
pathValue: value('[data-test-input="path"]'),
|
|
types: collection('[data-test-mount-type-radio] input', {
|
|
select: clickable(),
|
|
id: attribute('id'),
|
|
}),
|
|
type: fillable('[name="mount-type"]'),
|
|
async selectType(type) {
|
|
return this.types.filterBy('id', type)[0].select();
|
|
},
|
|
async mount(type, path) {
|
|
await this.selectType(type);
|
|
if (path) {
|
|
await this.next()
|
|
.path(path)
|
|
.submit();
|
|
} else {
|
|
await this.next().submit();
|
|
}
|
|
},
|
|
};
|