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
6452a700
Commit
6452a700
authored
Mar 14, 2019
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removes EE differences for environment_item_spec
parent
5f6167b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
13 deletions
+7
-13
spec/javascripts/environments/environment_item_spec.js
spec/javascripts/environments/environment_item_spec.js
+7
-13
No files found.
spec/javascripts/environments/environment_item_spec.js
View file @
6452a700
...
...
@@ -27,19 +27,16 @@ describe('Environment item', () => {
propsData
:
{
model
:
mockItem
,
canReadEnvironment
:
true
,
toggleDeployBoard
:
()
=>
{},
store
:
{},
service
:
{},
},
}).
$mount
();
});
it
(
'
S
hould render folder icon and name
'
,
()
=>
{
it
(
'
s
hould render folder icon and name
'
,
()
=>
{
expect
(
component
.
$el
.
querySelector
(
'
.folder-name
'
).
textContent
).
toContain
(
mockItem
.
name
);
expect
(
component
.
$el
.
querySelector
(
'
.folder-icon
'
)).
toBeDefined
();
});
it
(
'
S
hould render the number of children in a badge
'
,
()
=>
{
it
(
'
s
hould render the number of children in a badge
'
,
()
=>
{
expect
(
component
.
$el
.
querySelector
(
'
.folder-name .badge
'
).
textContent
).
toContain
(
mockItem
.
size
,
);
...
...
@@ -121,9 +118,6 @@ describe('Environment item', () => {
propsData
:
{
model
:
environment
,
canReadEnvironment
:
true
,
toggleDeployBoard
:
()
=>
{},
store
:
{},
service
:
{},
},
}).
$mount
();
});
...
...
@@ -163,13 +157,13 @@ describe('Environment item', () => {
});
describe
(
'
With build url
'
,
()
=>
{
it
(
'
S
hould link to build url provided
'
,
()
=>
{
it
(
'
s
hould link to build url provided
'
,
()
=>
{
expect
(
component
.
$el
.
querySelector
(
'
.build-link
'
).
getAttribute
(
'
href
'
)).
toEqual
(
environment
.
last_deployment
.
deployable
.
build_path
,
);
});
it
(
'
S
hould render deployable name and id
'
,
()
=>
{
it
(
'
s
hould render deployable name and id
'
,
()
=>
{
expect
(
component
.
$el
.
querySelector
(
'
.build-link
'
).
getAttribute
(
'
href
'
)).
toEqual
(
environment
.
last_deployment
.
deployable
.
build_path
,
);
...
...
@@ -184,7 +178,7 @@ describe('Environment item', () => {
});
describe
(
'
With manual actions
'
,
()
=>
{
it
(
'
S
hould render actions component
'
,
()
=>
{
it
(
'
s
hould render actions component
'
,
()
=>
{
expect
(
component
.
$el
.
querySelector
(
'
.js-manual-actions-container
'
)).
toBeDefined
();
});
});
...
...
@@ -196,13 +190,13 @@ describe('Environment item', () => {
});
describe
(
'
With stop action
'
,
()
=>
{
it
(
'
S
hould render stop action component
'
,
()
=>
{
it
(
'
s
hould render stop action component
'
,
()
=>
{
expect
(
component
.
$el
.
querySelector
(
'
.js-stop-component-container
'
)).
toBeDefined
();
});
});
describe
(
'
With retry action
'
,
()
=>
{
it
(
'
S
hould render rollback component
'
,
()
=>
{
it
(
'
s
hould render rollback component
'
,
()
=>
{
expect
(
component
.
$el
.
querySelector
(
'
.js-rollback-component-container
'
)).
toBeDefined
();
});
});
...
...
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