|
|
@ -46,9 +46,10 @@ filterTests(["all"], () => { |
|
|
cy.get("@datasource") |
|
|
cy.get("@datasource") |
|
|
.its("response.body") |
|
|
.its("response.body") |
|
|
.should("have.property", "status", 500) |
|
|
.should("have.property", "status", 500) |
|
|
|
|
|
cy.get(".spectrum-Button").contains("Skip table fetch").click({ force: true }) |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
it("should add Oracle data source and fetch tables", () => { |
|
|
xit("should add Oracle data source and fetch tables", () => { |
|
|
// Add & configure Oracle data source
|
|
|
// Add & configure Oracle data source
|
|
|
cy.selectExternalDatasource(datasource) |
|
|
cy.selectExternalDatasource(datasource) |
|
|
cy.intercept("**/datasources").as("datasource") |
|
|
cy.intercept("**/datasources").as("datasource") |
|
|
@ -64,7 +65,7 @@ filterTests(["all"], () => { |
|
|
.should("be.gt", 0) |
|
|
.should("be.gt", 0) |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
it("should define a One relationship type", () => { |
|
|
xit("should define a One relationship type", () => { |
|
|
// Select relationship type & configure
|
|
|
// Select relationship type & configure
|
|
|
cy.get(".spectrum-Button") |
|
|
cy.get(".spectrum-Button") |
|
|
.contains("Define relationship") |
|
|
.contains("Define relationship") |
|
|
@ -93,7 +94,7 @@ filterTests(["all"], () => { |
|
|
cy.get(".spectrum-Table-cell").should("contain", "COUNTRIES to REGIONS") |
|
|
cy.get(".spectrum-Table-cell").should("contain", "COUNTRIES to REGIONS") |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
it("should define a Many relationship type", () => { |
|
|
xit("should define a Many relationship type", () => { |
|
|
// Select relationship type & configure
|
|
|
// Select relationship type & configure
|
|
|
cy.get(".spectrum-Button") |
|
|
cy.get(".spectrum-Button") |
|
|
.contains("Define relationship") |
|
|
.contains("Define relationship") |
|
|
@ -127,7 +128,7 @@ filterTests(["all"], () => { |
|
|
) |
|
|
) |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
it("should delete relationships", () => { |
|
|
xit("should delete relationships", () => { |
|
|
// Delete both relationships
|
|
|
// Delete both relationships
|
|
|
cy.get(".spectrum-Table") |
|
|
cy.get(".spectrum-Table") |
|
|
.eq(1) |
|
|
.eq(1) |
|
|
@ -156,7 +157,7 @@ filterTests(["all"], () => { |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
it("should add a query", () => { |
|
|
xit("should add a query", () => { |
|
|
// Add query
|
|
|
// Add query
|
|
|
cy.get(".spectrum-Button").contains("Add query").click({ force: true }) |
|
|
cy.get(".spectrum-Button").contains("Add query").click({ force: true }) |
|
|
cy.get(".spectrum-Form-item") |
|
|
cy.get(".spectrum-Form-item") |
|
|
@ -181,7 +182,7 @@ filterTests(["all"], () => { |
|
|
cy.get(".nav-item").should("contain", queryName) |
|
|
cy.get(".nav-item").should("contain", queryName) |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
it("should duplicate a query", () => { |
|
|
xit("should duplicate a query", () => { |
|
|
// Get query nav item
|
|
|
// Get query nav item
|
|
|
cy.get(".nav-item") |
|
|
cy.get(".nav-item") |
|
|
.contains(queryName) |
|
|
.contains(queryName) |
|
|
@ -194,7 +195,7 @@ filterTests(["all"], () => { |
|
|
cy.get(".nav-item").should("contain", queryName + " (1)") |
|
|
cy.get(".nav-item").should("contain", queryName + " (1)") |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
it("should edit a query name", () => { |
|
|
xit("should edit a query name", () => { |
|
|
// Rename query
|
|
|
// Rename query
|
|
|
cy.get(".spectrum-Form-item") |
|
|
cy.get(".spectrum-Form-item") |
|
|
.eq(0) |
|
|
.eq(0) |
|
|
@ -206,7 +207,7 @@ filterTests(["all"], () => { |
|
|
cy.get(".nav-item").should("contain", queryRename) |
|
|
cy.get(".nav-item").should("contain", queryRename) |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
it("should delete a query", () => { |
|
|
xit("should delete a query", () => { |
|
|
// Get query nav item - QueryName
|
|
|
// Get query nav item - QueryName
|
|
|
cy.get(".nav-item") |
|
|
cy.get(".nav-item") |
|
|
.contains(queryName) |
|
|
.contains(queryName) |
|
|
|