Browse Source

feat(nc-gui): Fixed erd cypress issues

pull/3612/head
Muhammed Mustafa 2 years ago
parent
commit
e520416b5f
  1. 7
      scripts/cypress/integration/common/9b_ERD.js
  2. 5
      scripts/cypress/integration/test/restMisc.js

7
scripts/cypress/integration/common/9b_ERD.js

@ -29,6 +29,7 @@ export const genTest = (apiType, dbType) => {
// Test cases // Test cases
it(`Enable MM setting Open Table ERD`, () => { it(`Enable MM setting Open Table ERD`, () => {
cy.openTableTab("Country", 25);
mainPage.toggleShowMMSetting(); mainPage.toggleShowMMSetting();
mainPage.openErdTab(); mainPage.openErdTab();
@ -170,9 +171,9 @@ export const genTest = (apiType, dbType) => {
cy.get('.nc-erd-context-menu').get('.nc-erd-showMMTables-checkbox').click(); cy.get('.nc-erd-context-menu').get('.nc-erd-showMMTables-checkbox').click();
cy.get('.nc-erd-vue-flow').find('.nc-erd-table-node').should('have.length', 16) cy.get('.nc-erd-vue-flow').find('.nc-erd-table-node').should('have.length', 16)
cy.get('.nc-erd-vue-flow').find('.vue-flow__edge').should('have.length', 18) cy.get('.nc-erd-vue-flow').find('.vue-flow__edge').should('have.length', 26)
cy.get('.nc-erd-vue-flow').find('.nc-erd-edge-circle').should('have.length', 14) cy.get('.nc-erd-vue-flow').find('.nc-erd-edge-circle').should('have.length', 22)
cy.get('.nc-erd-vue-flow').find('.nc-erd-edge-rect').should('have.length', 22) cy.get('.nc-erd-vue-flow').find('.nc-erd-edge-rect').should('have.length', 30)
// Check if store table is present // Check if store table is present
cy.get('.nc-erd-vue-flow').find(`.nc-erd-table-node-store`).should('exist'); cy.get('.nc-erd-vue-flow').find(`.nc-erd-table-node-store`).should('exist');

5
scripts/cypress/integration/test/restMisc.js

@ -21,6 +21,9 @@ const nocoTestSuite = (apiType, dbType) => {
t6d.genTest(apiType, dbType); t6d.genTest(apiType, dbType);
// exclude@ncv2 t6c.genTest(apiType, dbType); // exclude@ncv2 t6c.genTest(apiType, dbType);
t6f.genTest(apiType, dbType); t6f.genTest(apiType, dbType);
t9b.genTest(apiType, dbType);
t6g.genTest(apiType, dbType); t6g.genTest(apiType, dbType);
// webhook tests // webhook tests
@ -32,8 +35,6 @@ const nocoTestSuite = (apiType, dbType) => {
// intended to keep this after earlier project deletion // intended to keep this after earlier project deletion
// creates project using excel & deletes it // creates project using excel & deletes it
t7a.genTest(apiType, dbType); t7a.genTest(apiType, dbType);
t9b.genTest(apiType, dbType);
}; };
nocoTestSuite("rest", "mysql"); nocoTestSuite("rest", "mysql");

Loading…
Cancel
Save