Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Nomad
Commits
c6fa7575
Commit
c6fa7575
authored
6 years ago
by
Michael Lange
Browse files
Options
Download
Email Patches
Plain Diff
New Page Object component for common error formatting
parent
3b5d96b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ui/tests/pages/components/error.js
+11
-0
ui/tests/pages/components/error.js
with
11 additions
and
0 deletions
+11
-0
ui/tests/pages/components/error.js
0 → 100644
+
11
-
0
View file @
c6fa7575
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`
),
};
}
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help