This is an automated email from the ASF dual-hosted git repository. hugh pushed a commit to branch hugh/cypress-db-conn-ui in repository https://gitbox.apache.org/repos/asf/superset.git
commit 4c467f5decb1316ffcf03e5588f6095c1efdcf78 Author: hughhhh <[email protected]> AuthorDate: Thu Jun 24 10:45:21 2021 -0700 saving this for development --- superset-frontend/cypress-base/cypress/support/index.ts | 2 +- .../views/CRUD/data/database/DatabaseModal/DatabaseConnectionForm.tsx | 1 + superset-frontend/src/views/CRUD/data/database/DatabaseModal/index.tsx | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/superset-frontend/cypress-base/cypress/support/index.ts b/superset-frontend/cypress-base/cypress/support/index.ts index e22f699..639b6c9 100644 --- a/superset-frontend/cypress-base/cypress/support/index.ts +++ b/superset-frontend/cypress-base/cypress/support/index.ts @@ -35,7 +35,7 @@ Cypress.Commands.add('login', () => { cy.request({ method: 'POST', url: '/login/', - body: { username: 'admin', password: 'general' }, + body: { username: 'h', password: 'h' }, }).then(response => { expect(response.status).to.eq(200); }); 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 5b9c57a..b79888c 100644 --- a/superset-frontend/src/views/CRUD/data/database/DatabaseModal/DatabaseConnectionForm.tsx +++ b/superset-frontend/src/views/CRUD/data/database/DatabaseModal/DatabaseConnectionForm.tsx @@ -335,6 +335,7 @@ const forceSSLField = ({ }: FieldPropTypes) => ( <div css={(theme: SupersetTheme) => infoTooltip(theme)}> <Switch + name="encryption" disabled={sslForced && !isEditMode} checked={db?.parameters?.encryption || sslForced} onChange={changed => { diff --git a/superset-frontend/src/views/CRUD/data/database/DatabaseModal/index.tsx b/superset-frontend/src/views/CRUD/data/database/DatabaseModal/index.tsx index 9eae554..335e64a 100644 --- a/superset-frontend/src/views/CRUD/data/database/DatabaseModal/index.tsx +++ b/superset-frontend/src/views/CRUD/data/database/DatabaseModal/index.tsx @@ -598,6 +598,7 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({ key="submit" buttonStyle="primary" onClick={onClose} + data-test="modal-confirm-button" > Finish </StyledFooterButton> @@ -997,6 +998,7 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({ /> <div css={(theme: SupersetTheme) => infoTooltip(theme)}> <Button + data-test="sqla-connect-btn" buttonStyle="link" onClick={() => setDB({
