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
a289b99c
Commit
a289b99c
authored
Dec 04, 2019
by
Dhiraj Bodicherla
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Using css vars and updated specs
parent
902eb2e1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
5 deletions
+16
-5
ee/app/assets/stylesheets/components/deployment_instance.scss
...pp/assets/stylesheets/components/deployment_instance.scss
+4
-4
ee/spec/javascripts/environments/deploy_board_component_spec.js
...c/javascripts/environments/deploy_board_component_spec.js
+12
-1
No files found.
ee/app/assets/stylesheets/components/deployment_instance.scss
View file @
a289b99c
.deployment-instance
{
width
:
16px
;
height
:
16px
;
width
:
$gl-padding
;
height
:
$gl-padding
;
margin
:
1px
;
border
:
1px
solid
;
border-radius
:
$border-radius-small
;
...
...
@@ -84,8 +84,8 @@
border
:
0
;
&
:
:
after
{
width
:
16px
!
important
;
height
:
16px
!
important
;
width
:
$gl-padding
!
important
;
height
:
$gl-padding
!
important
;
}
}
}
ee/spec/javascripts/environments/deploy_board_component_spec.js
View file @
a289b99c
...
...
@@ -112,6 +112,7 @@ describe('Deploy Board', () => {
});
describe
(
'
has legend component
'
,
()
=>
{
let
statuses
=
[];
beforeEach
(
done
=>
{
wrapper
=
createComponent
({
isLoading
:
false
,
...
...
@@ -120,6 +121,7 @@ describe('Deploy Board', () => {
hasLegacyAppLabel
:
true
,
deployBoardData
:
deployBoardMockData
,
});
({
statuses
}
=
wrapper
.
vm
);
wrapper
.
vm
.
$nextTick
(
done
);
});
...
...
@@ -127,7 +129,16 @@ describe('Deploy Board', () => {
const
deployBoardLegend
=
wrapper
.
find
(
'
.deploy-board-legend
'
);
expect
(
deployBoardLegend
).
toBeDefined
();
expect
(
deployBoardLegend
.
findAll
(
'
a
'
).
length
).
toBe
(
6
);
expect
(
deployBoardLegend
.
findAll
(
'
a
'
).
length
).
toBe
(
Object
.
keys
(
statuses
).
length
);
});
Object
.
keys
(
statuses
).
forEach
(
item
=>
{
it
(
`with
${
item
}
text next to deployment instance icon`
,
()
=>
{
expect
(
wrapper
.
find
(
`.deployment-instance-
${
item
}
`
)).
toBeDefined
();
expect
(
wrapper
.
find
(
`.deployment-instance-
${
item
}
+ .legend-text`
).
text
()).
toBe
(
statuses
[
item
].
text
,
);
});
});
});
});
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