Fix datasource structure test (#1080)

* Fix datasource structure test

* Dummy commit
This commit is contained in:
akash-codemonk 2020-10-08 20:13:20 +05:30 committed by GitHub
parent 32ce580695
commit eaf4dbd261
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -59,7 +59,6 @@ describe("Entity explorer datasource structure", function() {
.find(explorer.collapse)
.as("datasourceEntityCollapse");
cy.get("@datasourceEntityCollapse").click();
cy.wait("@getDatasourceStructure").should(
"have.nested.property",
"response.body.responseMeta.status",
@ -90,7 +89,9 @@ describe("Entity explorer datasource structure", function() {
);
cy.GlobalSearchEntity(datasourceName);
cy.get("@datasourceEntityCollapse").click();
cy.get("@datasourceEntityCollapse")
.first()
.click();
cy.xpath(explorer.datsourceEntityPopover)
.last()
.click({ force: true });

View File

@ -1322,8 +1322,8 @@ Cypress.Commands.add("saveDatasource", () => {
});
Cypress.Commands.add("testSaveDatasource", () => {
cy.testDatasource();
cy.saveDatasource();
cy.testDatasource();
});
Cypress.Commands.add("fillMongoDatasourceForm", () => {