BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
cc46f263
Commit
cc46f263
authored
Nov 09, 2017
by
Filipa Lacerda
Committed by
Kamil Trzcinski
Dec 03, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds tests for javascript
parent
c9de56fa
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
6 deletions
+17
-6
clusters.scss
app/assets/stylesheets/pages/clusters.scss
+1
-2
_dropdown.html.haml
app/views/projects/clusters/_dropdown.html.haml
+2
-4
clusters_bundle_spec.js
spec/javascripts/clusters/clusters_bundle_spec.js
+14
-0
No files found.
app/assets/stylesheets/pages/clusters.scss
View file @
cc46f263
...
@@ -11,4 +11,4 @@
...
@@ -11,4 +11,4 @@
.clusters-dropdown-menu
{
.clusters-dropdown-menu
{
max-width
:
100%
;
max-width
:
100%
;
}
}
\ No newline at end of file
app/views/projects/clusters/_dropdown.html.haml
View file @
cc46f263
...
@@ -7,8 +7,6 @@
...
@@ -7,8 +7,6 @@
=
icon
(
'chevron-down'
)
=
icon
(
'chevron-down'
)
%ul
.dropdown-menu.clusters-dropdown-menu.dropdown-menu-full-width
%ul
.dropdown-menu.clusters-dropdown-menu.dropdown-menu-full-width
%li
%li
%a
{
href:
providers_gcp_new_namespace_project_clusters_path
(
@project
.
namespace
,
@project
)
}
=
link_to
(
s_
(
'ClusterIntegration| Create cluster on Google Engine'
),
providers_gcp_new_namespace_project_clusters_path
(
@project
.
namespace
,
@project
))
=
s_
(
'ClusterIntegration| Create cluster on Google Engine'
)
%li
%li
%a
{
href:
platforms_kubernetes_new_namespace_project_clusters_path
(
@project
.
namespace
,
@project
)
}
=
=
link_to
(
s_
(
'ClusterIntegration| Add existing cluster'
),
platforms_kubernetes_new_namespace_project_clusters_path
(
@project
.
namespace
,
@project
))
=
s_
(
'ClusterIntegration| Add existing cluster'
)
spec/javascripts/clusters/clusters_bundle_spec.js
View file @
cc46f263
...
@@ -36,6 +36,20 @@ describe('Clusters', () => {
...
@@ -36,6 +36,20 @@ describe('Clusters', () => {
});
});
});
});
describe
(
'showToken'
,
()
=>
{
it
(
'should update tye field type'
,
()
=>
{
cluster
.
showTokenButton
.
click
();
expect
(
cluster
.
tokenField
.
getAttribute
(
'type'
),
).
toEqual
(
'text'
);
cluster
.
showTokenButton
.
click
();
expect
(
cluster
.
tokenField
.
getAttribute
(
'type'
),
).
toEqual
(
'password'
);
});
});
describe
(
'checkForNewInstalls'
,
()
=>
{
describe
(
'checkForNewInstalls'
,
()
=>
{
const
INITIAL_APP_MAP
=
{
const
INITIAL_APP_MAP
=
{
helm
:
{
status
:
null
,
title
:
'Helm Tiller'
},
helm
:
{
status
:
null
,
title
:
'Helm Tiller'
},
...
...
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