Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scratch-www
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
scratch-www
Commits
f713298d
Commit
f713298d
authored
Oct 23, 2019
by
Ben Wheeler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use class instead of id for identifying errorMsg in test
parent
6e83c496
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/components/join-flow/registration-error-step.jsx
src/components/join-flow/registration-error-step.jsx
+1
-1
test/unit/components/registration-error-step.test.jsx
test/unit/components/registration-error-step.test.jsx
+2
-2
No files found.
src/components/join-flow/registration-error-step.jsx
View file @
f713298d
...
...
@@ -38,7 +38,7 @@ class RegistrationErrorStep extends React.Component {
<
FormattedMessage
id=
"registration.cantCreateAccount"
/>
</
p
>
{
this
.
props
.
errorMsg
&&
(
<
p
className=
"join-flow-instructions
"
id=
"
registration-error-msg"
>
<
p
className=
"join-flow-instructions
registration-error-msg"
>
{
this
.
props
.
errorMsg
}
</
p
>
)
}
...
...
test/unit/components/registration-error-step.test.jsx
View file @
f713298d
...
...
@@ -33,7 +33,7 @@ describe('RegistrationErrorStep', () => {
};
const
joinFlowStepWrapper
=
getRegistrationErrorStepWrapper
(
props
).
find
(
JoinFlowStep
);
const
joinFlowStepInstance
=
joinFlowStepWrapper
.
dive
();
const
errMsgElement
=
joinFlowStepInstance
.
find
(
'
#
registration-error-msg
'
);
const
errMsgElement
=
joinFlowStepInstance
.
find
(
'
.
registration-error-msg
'
);
expect
(
errMsgElement
).
toHaveLength
(
1
);
expect
(
errMsgElement
.
text
()).
toEqual
(
'
halp there is a errors!!
'
);
});
...
...
@@ -45,7 +45,7 @@ describe('RegistrationErrorStep', () => {
};
const
joinFlowStepWrapper
=
getRegistrationErrorStepWrapper
(
props
).
find
(
JoinFlowStep
);
const
joinFlowStepInstance
=
joinFlowStepWrapper
.
dive
();
const
errMsgElement
=
joinFlowStepInstance
.
find
(
'
#
registration-error-msg
'
);
const
errMsgElement
=
joinFlowStepInstance
.
find
(
'
.
registration-error-msg
'
);
expect
(
errMsgElement
).
toHaveLength
(
0
);
});
...
...
Write
Preview
Markdown
is supported
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