From 3eb6db8e150e2d7f6424d1d4c4fce5103a2989c4 Mon Sep 17 00:00:00 2001 From: Lyndsi Kay Williams <55605634+lyndsiWilliams@users.noreply.github.com> Date: Tue, 29 Jun 2021 15:44:26 -0500 Subject: [PATCH] fix: Database connection modal touch up (#15463) * Removed unnecessary TODO and named the remaining ones * Added translation functionality * Fixed typo in Database Modal RTL test --- .../integration/database/modal.test.ts | 1 - .../DatabaseModal/DatabaseConnectionForm.tsx | 20 +++++++++---------- .../database/DatabaseModal/index.test.jsx | 10 +++++----- 3 files changed, 15 insertions(+), 16 deletions(-) diff --git a/superset-frontend/cypress-base/cypress/integration/database/modal.test.ts b/superset-frontend/cypress-base/cypress/integration/database/modal.test.ts index 5a5a97ef47817..57453650f196f 100644 --- a/superset-frontend/cypress-base/cypress/integration/database/modal.test.ts +++ b/superset-frontend/cypress-base/cypress/integration/database/modal.test.ts @@ -17,7 +17,6 @@ * under the License. */ import { DATABASE_LIST } from './helper'; -// TODO: Add new tests with the modal describe('Add database', () => { beforeEach(() => { cy.login(); diff --git a/superset-frontend/src/views/CRUD/data/database/DatabaseModal/DatabaseConnectionForm.tsx b/superset-frontend/src/views/CRUD/data/database/DatabaseModal/DatabaseConnectionForm.tsx index 8a9945d95065f..80527f0c0ae68 100644 --- a/superset-frontend/src/views/CRUD/data/database/DatabaseModal/DatabaseConnectionForm.tsx +++ b/superset-frontend/src/views/CRUD/data/database/DatabaseModal/DatabaseConnectionForm.tsx @@ -85,7 +85,7 @@ const CredentialsInfo = ({ {!isEditMode && ( <> - How do you want to enter service account credentials? + `${t('How do you want to enter service account credentials?')}` @@ -106,7 +106,7 @@ const CredentialsInfo = ({ isEditMode || editNewDb ? (
- Service Account + `${t('Service Account')}`