open-nomad/ui/tests/pages/components/error.js
2022-01-20 09:46:45 -05:00

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