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 92df8156692d79fe46d45b44f9ce9c4a7e6f3c0e
Author: hughhhh <[email protected]>
AuthorDate: Wed Jun 23 21:52:13 2021 -0400

    create boilerplate for cypress test
---
 .../cypress/integration/database/modal.test.ts     | 25 ++++++++++++++++++++++
 1 file changed, 25 insertions(+)

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 e54a600..5aa5988 100644
--- a/superset-frontend/cypress-base/cypress/integration/database/modal.test.ts
+++ b/superset-frontend/cypress-base/cypress/integration/database/modal.test.ts
@@ -23,6 +23,31 @@ describe('Add database', () => {
     cy.login();
   });
 
+  it('should open dynamic form', () => {
+    cy.visit(DATABASE_LIST);
+
+    // open modal
+    cy.get('[data-test="btn-create-database"]').click();
+
+    // click postgres dynamic form
+    cy.get('.preferred > :nth-child(1)').click();
+
+    // make sure all the fields are rendering
+    cy.get('input[name="host"]').should('have.value', '');
+    cy.get('input[name="port"]').should('have.value', '');
+    cy.get('input[name="database"]').should('have.value', '');
+    cy.get('input[name="password"]').should('have.value', '');
+    cy.get('input[name="database_name"]').should('have.value', '');
+    cy.get('.ant-switch').should('be.visible');
+
+  });
+
+  xit('should open sqlalchemy form', () => {});
+  xit('show error alerts on dynamic form', () => {});
+  xit('show error alerts on sqlalchemy form', () => {});
+  xit('should succesfully connect to db w/ dynamic form', () => {});
+  xit('should succesfully connect to db w/ sqlalchemy form', () => {});
+
   xit('should keep create modal open when error', () => {
     cy.visit(DATABASE_LIST);
 

Reply via email to