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
c4040355
Commit
c4040355
authored
Jul 25, 2018
by
Paul Slaughter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add ms to setTimeout in app_spec
parent
aad745c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
ee/spec/javascripts/geo_nodes/components/app_spec.js
ee/spec/javascripts/geo_nodes/components/app_spec.js
+6
-6
No files found.
ee/spec/javascripts/geo_nodes/components/app_spec.js
View file @
c4040355
...
...
@@ -182,7 +182,7 @@ describe('AppComponent', () => {
expect
(
document
.
querySelector
(
'
.flash-text
'
).
innerText
.
trim
()).
toBe
(
'
Node Authentication was successfully repaired.
'
);
expect
(
node
.
nodeActionActive
).
toBe
(
false
);
done
();
});
}
,
0
);
});
it
(
'
calls service.repairNode and shows failure Flash message on request failure
'
,
(
done
)
=>
{
...
...
@@ -196,7 +196,7 @@ describe('AppComponent', () => {
expect
(
document
.
querySelector
(
'
.flash-text
'
).
innerText
.
trim
()).
toBe
(
'
Something went wrong while repairing node
'
);
expect
(
node
.
nodeActionActive
).
toBe
(
false
);
done
();
});
}
,
0
);
});
});
...
...
@@ -216,7 +216,7 @@ describe('AppComponent', () => {
expect
(
node
.
enabled
).
toBe
(
true
);
expect
(
node
.
nodeActionActive
).
toBe
(
false
);
done
();
});
}
,
0
);
});
it
(
'
calls service.toggleNode and shows Flash error on request failure
'
,
(
done
)
=>
{
...
...
@@ -232,7 +232,7 @@ describe('AppComponent', () => {
expect
(
document
.
querySelector
(
'
.flash-text
'
).
innerText
.
trim
()).
toBe
(
'
Something went wrong while changing node status
'
);
expect
(
node
.
nodeActionActive
).
toBe
(
false
);
done
();
});
}
,
0
);
});
});
...
...
@@ -250,7 +250,7 @@ describe('AppComponent', () => {
expect
(
vm
.
store
.
removeNode
).
toHaveBeenCalledWith
(
node
);
expect
(
document
.
querySelector
(
'
.flash-text
'
).
innerText
.
trim
()).
toBe
(
'
Node was successfully removed.
'
);
done
();
});
}
,
0
);
});
it
(
'
calls service.removeNode and shows Flash message on request failure
'
,
(
done
)
=>
{
...
...
@@ -266,7 +266,7 @@ describe('AppComponent', () => {
expect
(
vm
.
store
.
removeNode
).
not
.
toHaveBeenCalled
();
expect
(
document
.
querySelector
(
'
.flash-text
'
).
innerText
.
trim
()).
toBe
(
'
Something went wrong while removing node
'
);
done
();
});
}
,
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