Added login command for cypress and SSO protected pages

This commit is contained in:
2022-08-25 14:10:46 +02:00
parent e20fea679a
commit f76f91e667
9 changed files with 121 additions and 44 deletions

13
cypress/e2e/tenders.cy.ts Normal file
View File

@@ -0,0 +1,13 @@
describe("Tenders page", () => {
beforeEach(() => {
cy.oidcLogin();
// you can check that the user is logged in on this page:
cy.visit("http://localhost:3000");
});
it("Should navigate to tenders when clicking on Tenders", () => {
cy.get('[data-testid="nav.tenders"]').click();
cy.contains("tenders");
cy.contains("page_count");
});
});