Commit cc46f263 authored by Filipa Lacerda's avatar Filipa Lacerda Committed by Kamil Trzcinski

Adds tests for javascript

parent c9de56fa
...@@ -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')
...@@ -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' },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment