2018-09-25 16:28:26 +00:00
|
|
|
import { clickable, fillable, attribute } from 'ember-cli-page-object';
|
2022-03-16 16:00:08 +00:00
|
|
|
import { waitFor } from '@ember/test-helpers';
|
2018-09-25 16:28:26 +00:00
|
|
|
import fields from '../form-field';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
...fields,
|
|
|
|
cancelLinkHref: attribute('href', '[data-test-cancel-link]'),
|
|
|
|
cancelLink: clickable('[data-test-cancel-link]'),
|
|
|
|
name: fillable('[data-test-input="name"]'),
|
|
|
|
disabled: clickable('[data-test-input="disabled"]'),
|
2021-05-17 21:41:39 +00:00
|
|
|
metadataKey: fillable('[data-test-kv-key]'),
|
|
|
|
metadataValue: fillable('[data-test-kv-value]'),
|
2018-09-25 16:28:26 +00:00
|
|
|
type: fillable('[data-test-input="type"]'),
|
|
|
|
submit: clickable('[data-test-identity-submit]'),
|
|
|
|
delete: clickable('[data-test-confirm-action-trigger]'),
|
|
|
|
confirmDelete: clickable('[data-test-confirm-button]'),
|
2022-03-16 16:00:08 +00:00
|
|
|
waitForConfirm() {
|
|
|
|
return waitFor('[data-test-confirm-button]');
|
|
|
|
},
|
|
|
|
waitForFlash() {
|
|
|
|
return waitFor('[data-test-flash-message-body]');
|
|
|
|
},
|
2018-09-25 16:28:26 +00:00
|
|
|
};
|