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
0f1d8dfd
Commit
0f1d8dfd
authored
Sep 19, 2018
by
George Tsiolis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update environments specs
parent
d97982fe
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
spec/javascripts/environments/environment_table_spec.js
spec/javascripts/environments/environment_table_spec.js
+3
-2
spec/javascripts/environments/environments_app_spec.js
spec/javascripts/environments/environments_app_spec.js
+1
-1
spec/javascripts/environments/folder/environments_folder_view_spec.js
...ipts/environments/folder/environments_folder_view_spec.js
+1
-1
No files found.
spec/javascripts/environments/environment_table_spec.js
View file @
0f1d8dfd
...
...
@@ -54,10 +54,10 @@ describe('Environment table', () => {
});
expect
(
vm
.
$el
.
querySelector
(
'
.js-deploy-board-row
'
)).
toBeDefined
();
expect
(
vm
.
$el
.
querySelector
(
'
.deploy-board-icon
.ic-chevron-right
'
)).
not
.
toBeNull
();
expect
(
vm
.
$el
.
querySelector
(
'
.deploy-board-icon
'
)).
not
.
toBeNull
();
});
it
(
'
should toggle deploy board visibility when arrow is clicked
'
,
()
=>
{
it
(
'
should toggle deploy board visibility when arrow is clicked
'
,
(
done
)
=>
{
const
mockItem
=
{
name
:
'
review
'
,
size
:
1
,
...
...
@@ -78,6 +78,7 @@ describe('Environment table', () => {
eventHub
.
$on
(
'
toggleDeployBoard
'
,
(
env
)
=>
{
expect
(
env
.
id
).
toEqual
(
mockItem
.
id
);
done
();
});
vm
=
mountComponent
(
Component
,
{
...
...
spec/javascripts/environments/environments_app_spec.js
View file @
0f1d8dfd
...
...
@@ -113,7 +113,7 @@ describe('Environment', () => {
describe
(
'
deploy boards
'
,
()
=>
{
it
(
'
should render arrow to open deploy boards
'
,
(
done
)
=>
{
setTimeout
(()
=>
{
expect
(
component
.
$el
.
querySelector
(
'
.deploy-board-icon.ic-chevron-right
'
)).
not
.
toBeNull
();
expect
(
component
.
$el
.
querySelector
(
'
.deploy-board-icon.ic-chevron-right
'
)).
toBeDefined
();
done
();
},
0
);
});
...
...
spec/javascripts/environments/folder/environments_folder_view_spec.js
View file @
0f1d8dfd
...
...
@@ -125,7 +125,7 @@ describe('Environments Folder View', () => {
describe
(
'
deploy boards
'
,
()
=>
{
it
(
'
should render arrow to open deploy boards
'
,
(
done
)
=>
{
setTimeout
(()
=>
{
expect
(
component
.
$el
.
querySelector
(
'
.
deploy-board
-icon.ic-chevron-right
'
)).
not
.
toBeNull
();
expect
(
component
.
$el
.
querySelector
(
'
.
folder
-icon.ic-chevron-right
'
)).
not
.
toBeNull
();
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