From b2949a1437f316b054f0659b92ca2251d688a77c Mon Sep 17 00:00:00 2001 From: Denis Yuen Date: Thu, 14 Jun 2018 16:59:53 -0400 Subject: [PATCH] Homepage fix tools (#306) * fixed table resizing on home page * cannot add gitlab token, cannot add gitlab tool/workflow * fixed tests relying on gitlab --- cypress/integration/dropdown.js | 13 ++++++++----- src/app/container/container.component.html | 2 +- .../register-tool/register-tool.component.ts | 12 ++++++++++-- src/app/containers/list/list.component.html | 2 +- src/app/containers/list/list.component.ts | 1 + src/app/home/home.component.html | 16 ++++++++++------ src/app/home/home.component.ts | 6 ++++++ .../accounts/external/accounts.component.ts | 15 ++++++++------- src/app/myworkflows/myworkflows.component.css | 1 - .../register-workflow-modal.component.ts | 6 +++++- .../workflow/versions/versions.component.html | 4 ++-- src/app/workflow/workflow.component.html | 2 +- src/app/workflows/list/list.component.html | 2 +- src/app/workflows/list/list.component.ts | 1 + src/styles.scss | 10 +++++++++- 15 files changed, 64 insertions(+), 29 deletions(-) diff --git a/cypress/integration/dropdown.js b/cypress/integration/dropdown.js index 39f32dcfd8..049503f482 100644 --- a/cypress/integration/dropdown.js +++ b/cypress/integration/dropdown.js @@ -1,4 +1,5 @@ describe('Dropdown test', function() { + // TODO: GitLab tests are commented out require('./helper.js') beforeEach(function() { @@ -44,7 +45,7 @@ describe('Dropdown test', function() { cy.get('#unlink-GitHub').should('be.visible') cy.get('#unlink-Quay').should('be.visible') cy.get('#link-Bitbucket').should('be.visible') - cy.get('#link-GitLab').should('be.visible') + // cy.get('#link-GitLab').should('be.visible') } describe('Go to setup page', function() { beforeEach(function() { @@ -55,10 +56,12 @@ describe('Dropdown test', function() { }); it('Should show all accounts as linked (except GitLab and Bitbucket)', function() { - everythingOk(); - cy.visit(String(global.baseUrl) + '/auth/gitlab.com?code=somefakeid', {'failOnStatusCode': false}).then((resp) => { - expect(resp.status).to.eq('') - }) + // everythingOk(); + // cy.visit(String(global.baseUrl) + '/auth/gitlab.com?code=somefakeid', {'failOnStatusCode': false}).then((resp) => { + // expect(resp.status).to.eq('') + // }) + // TODO: Gitlab is being very slow, hopefully one day we can remove this + // cy.wait(10000); everythingOk(); cy.visit(String(global.baseUrl) + '/auth/bitbucket.org?code=somefakeid', {'failOnStatusCode': false}).then((resp) => { expect(resp.status).to.eq('') diff --git a/src/app/container/container.component.html b/src/app/container/container.component.html index 6917624dfb..eb61dbc4fa 100644 --- a/src/app/container/container.component.html +++ b/src/app/container/container.component.html @@ -81,7 +81,7 @@

-
+