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
71d4d255
Commit
71d4d255
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
c5370439
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
spec/javascripts/environments/environment_item_spec.js
spec/javascripts/environments/environment_item_spec.js
+9
-9
No files found.
spec/javascripts/environments/environment_item_spec.js
View file @
71d4d255
...
...
@@ -20,23 +20,23 @@ describe('Environment item', () => {
size
:
3
,
isFolder
:
true
,
environment_path
:
'
url
'
,
log_path
:
'
url
'
,
};
component
=
new
EnvironmentItem
({
propsData
:
{
model
:
mockItem
,
canReadEnvironment
:
true
,
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
,
);
...
...
@@ -109,6 +109,7 @@ describe('Environment item', () => {
},
has_stop_action
:
true
,
environment_path
:
'
root/ci-folders/environments/31
'
,
log_path
:
'
root/ci-folders/environments/31/logs
'
,
created_at
:
'
2016-11-07T11:11:16.525Z
'
,
updated_at
:
'
2016-11-10T15:55:58.778Z
'
,
};
...
...
@@ -117,7 +118,6 @@ describe('Environment item', () => {
propsData
:
{
model
:
environment
,
canReadEnvironment
:
true
,
service
:
{},
},
}).
$mount
();
});
...
...
@@ -157,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
,
);
...
...
@@ -178,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
();
});
});
...
...
@@ -190,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