-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
525ed13
commit 78865fb
Showing
120 changed files
with
6,951 additions
and
474 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
105 changes: 0 additions & 105 deletions
105
clients/admin-ui/__tests__/features/common/zones/config.test.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import { stubDatamap } from "cypress/support/stubs"; | ||
|
||
describe("Datamap table and spatial view", () => { | ||
beforeEach(() => { | ||
cy.login(); | ||
stubDatamap(); | ||
}); | ||
|
||
it("Can render only render one view at a time", () => { | ||
cy.visit("/datamap"); | ||
cy.wait("@getDatamap"); | ||
|
||
// Only the spatial view should be visible first | ||
cy.getByTestId("cytoscape-graph"); | ||
cy.getByTestId("datamap-table").should("not.exist"); | ||
|
||
// Now table view | ||
cy.getByTestId("table-btn").click(); | ||
cy.getByTestId("datamap-table"); | ||
cy.getByTestId("cytoscape-graph").should("not.exist"); | ||
|
||
// Now only the spatial view | ||
cy.getByTestId("map-btn").click(); | ||
cy.getByTestId("cytoscape-graph"); | ||
cy.getByTestId("datamap-table").should("not.exist"); | ||
|
||
// Now table view | ||
cy.getByTestId("table-btn").click(); | ||
cy.getByTestId("datamap-table"); | ||
cy.getByTestId("cytoscape-graph").should("not.exist"); | ||
|
||
// Clicking on the table view again should keep the table view open | ||
cy.getByTestId("table-btn").click(); | ||
cy.getByTestId("datamap-table"); | ||
cy.getByTestId("cytoscape-graph").should("not.exist"); | ||
}); | ||
|
||
it("Renders a modal to prompt the user to get started when there is no datamap yet", () => { | ||
// Button only shows up when data map is empty (no systems) | ||
cy.intercept("GET", "/api/v1/datamap/*", { | ||
fixture: "datamap/empty_datamap.json", | ||
}).as("getEmptyDatamap"); | ||
cy.visit("/datamap"); | ||
cy.wait("@getEmptyDatamap"); | ||
|
||
cy.getByTestId("get-started-modal"); | ||
cy.getByTestId("add-systems-btn").click(); | ||
cy.url().should("contain", "/add-systems"); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.