Skip to content

Commit

Permalink
Updating Cypress tests (#3882)
Browse files Browse the repository at this point in the history
  • Loading branch information
galvana authored Jul 31, 2023
1 parent 69ecea4 commit 8659d74
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
2 changes: 0 additions & 2 deletions clients/admin-ui/cypress/e2e/systems.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ describe("System management page", () => {
cy.url().should("contain", ADD_SYSTEMS_MANUAL_ROUTE);
cy.wait("@getSystems");
cy.getByTestId("input-name").type(system.name);
cy.getByTestId("input-fides_key").type(system.fides_key);
cy.getByTestId("input-description").type(system.description);

cy.getByTestId("save-btn").click();
Expand Down Expand Up @@ -154,7 +153,6 @@ describe("System management page", () => {
cy.visit(ADD_SYSTEMS_MANUAL_ROUTE);
cy.wait("@getSystems");
cy.getByTestId("input-name").type(system.name);
cy.getByTestId("input-fides_key").type(system.fides_key);
cy.getByTestId("input-description").type(system.description);
cy.getByTestId("save-btn").click();
cy.wait("@postSystem");
Expand Down
24 changes: 12 additions & 12 deletions clients/cypress-e2e/cypress/e2e/smoke_test.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,20 +61,20 @@ describe("Smoke test", () => {
});

it("can access Mongo and Postgres connectors from the Admin UI", () => {
cy.intercept(`${API_URL}/connection_type`).as("getConnectionType");
cy.intercept(`${API_URL}/connection*`).as("getConnections");

cy.visit(ADMIN_UI_URL);
cy.login();
cy.get("a").contains("Privacy requests").click();
cy.get("a").contains("Connection manager").click();
cy.wait("@getConnectionType");
cy.getByTestId("connection-grid-item-MongoDB Connector").within(() => {
cy.get("button").contains("Test").click();
});
cy.getByTestId("connection-grid-item-Postgres Connector").within(() => {
cy.get("button").contains("Test").click();
});

// Postgres
cy.get("a").contains("Data map").click();
cy.getByTestId("system-cookie_house_postgresql_database").click();
cy.getByTestId("tab-Integrations").click();
cy.get("button").contains("Test").click();

// Mongo
cy.get("a").contains("Data map").click();
cy.getByTestId("system-cookie_house_customer_database").click();
cy.getByTestId("tab-Integrations").click();
cy.get("button").contains("Test").click();
});

it("can manage consent preferences from the Privacy Center", () => {
Expand Down

0 comments on commit 8659d74

Please sign in to comment.