Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
b2687717
Commit
b2687717
authored
Mar 23, 2017
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
One more fix for the user_callout_spec.js
parent
4808a905
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
spec/javascripts/user_callout_spec.js
spec/javascripts/user_callout_spec.js
+4
-4
No files found.
spec/javascripts/user_callout_spec.js
View file @
b2687717
...
...
@@ -3,11 +3,11 @@ import UserCallout from '~/user_callout';
const
USER_CALLOUT_COOKIE
=
'
user_callout_dismissed
'
;
describe
(
'
UserCallout
'
,
()
=>
{
describe
(
'
UserCallout
'
,
function
()
{
const
fixtureName
=
'
static/user_callout.html.raw
'
;
preloadFixtures
(
fixtureName
);
beforeEach
(
function
()
{
beforeEach
(
()
=>
{
loadFixtures
(
fixtureName
);
Cookies
.
remove
(
USER_CALLOUT_COOKIE
);
...
...
@@ -29,12 +29,12 @@ describe('UserCallout', () => {
expect
(
this
.
userCalloutContainer
.
is
(
'
:visible
'
)).
toBe
(
true
);
});
it
(
'
hides when user clicks on the dismiss-icon
'
,
function
()
{
it
(
'
hides when user clicks on the dismiss-icon
'
,
()
=>
{
this
.
closeButton
.
click
();
expect
(
Cookies
.
get
(
USER_CALLOUT_COOKIE
)).
toBe
(
'
true
'
);
});
it
(
'
hides when user clicks on the "check it out" button
'
,
function
()
{
it
(
'
hides when user clicks on the "check it out" button
'
,
()
=>
{
this
.
userCalloutBtn
.
click
();
expect
(
Cookies
.
get
(
USER_CALLOUT_COOKIE
)).
toBe
(
'
true
'
);
});
...
...
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