From dc23a0afe23efcb8670876024574d76e3d6a0072 Mon Sep 17 00:00:00 2001 From: Zoe Steinkamp Date: Tue, 15 Oct 2019 23:03:54 -0600 Subject: [PATCH 1/2] (Fix) Create dashboard from empty state test --- ui/cypress/e2e/dashboardsIndex.test.ts | 2 +- .../dashboards/components/dashboard_index/DashboardsIndex.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/cypress/e2e/dashboardsIndex.test.ts b/ui/cypress/e2e/dashboardsIndex.test.ts index a63bea03180..dffdefd78fb 100644 --- a/ui/cypress/e2e/dashboardsIndex.test.ts +++ b/ui/cypress/e2e/dashboardsIndex.test.ts @@ -19,7 +19,7 @@ describe('Dashboards', () => { }) }) - it.skip('can create a dashboard from empty state', () => { + it('can create a dashboard from empty state', () => { cy.getByTestID('empty-dashboards-list').within(() => { cy.getByTestID('add-resource-dropdown--button').click() }) diff --git a/ui/src/dashboards/components/dashboard_index/DashboardsIndex.tsx b/ui/src/dashboards/components/dashboard_index/DashboardsIndex.tsx index be0d644c056..991294e3911 100644 --- a/ui/src/dashboards/components/dashboard_index/DashboardsIndex.tsx +++ b/ui/src/dashboards/components/dashboard_index/DashboardsIndex.tsx @@ -76,7 +76,7 @@ class DashboardIndex extends PureComponent { const {searchTerm} = this.state return ( <> - + From f581ef16f2c865f02c0258c9f148ea60244cf9af Mon Sep 17 00:00:00 2001 From: Zoe Steinkamp Date: Tue, 15 Oct 2019 23:43:59 -0600 Subject: [PATCH 2/2] (Fix) Create dashboard from empty state test Fix the eslint issue --- .../components/dashboard_index/DashboardsIndex.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/src/dashboards/components/dashboard_index/DashboardsIndex.tsx b/ui/src/dashboards/components/dashboard_index/DashboardsIndex.tsx index 991294e3911..e87f194be39 100644 --- a/ui/src/dashboards/components/dashboard_index/DashboardsIndex.tsx +++ b/ui/src/dashboards/components/dashboard_index/DashboardsIndex.tsx @@ -76,7 +76,10 @@ class DashboardIndex extends PureComponent { const {searchTerm} = this.state return ( <> - +