12 lines
356 B
JavaScript
12 lines
356 B
JavaScript
import { clickable, isPresent, text } from 'ember-cli-page-object';
|
|
|
|
export default function (selectorBase = 'data-test-error') {
|
|
return {
|
|
scope: `[${selectorBase}]`,
|
|
isPresent: isPresent(),
|
|
title: text(`[${selectorBase}-title]`),
|
|
message: text(`[${selectorBase}-message]`),
|
|
seekHelp: clickable(`[${selectorBase}-message] a`),
|
|
};
|
|
}
|