Skip to content

Commit

Permalink
Update cypress_test.cy.js
Browse files Browse the repository at this point in the history
Signed-off-by: njochens <62465088+njochens@users.noreply.github.com>
  • Loading branch information
njochens authored May 31, 2023
1 parent caaf519 commit fad596e
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions Explorer/cypress/e2e/cypress_test.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,3 @@ describe("Navigation", () => {
cy.get("h1").contains("Cypress Test 2");
});
});

import CypressTest1 from "./src/pages/cypress_test/cypress_test_1.tsx";

describe("<CypressTest1 />", () => {
it("should render and display expected content", () => {
// Mount the React component for the Cypress Test page
cy.mount(<CypressTest1 />);

// The new page should contain an h1 with "Cypress Test 1"
cy.get("h1").contains("Cypress Test 1");

// Validate that a link with the expected URL is present
// *Following* the link is better suited to an E2E test
cy.get('a[href="/cypress_test/cypress_test_2"]').should("be.visible");
});
});

0 comments on commit fad596e

Please sign in to comment.