mirror of
https://github.com/Mastermindzh/react-starter-kit.git
synced 2025-09-18 14:19:34 +02:00
Added login command for cypress and SSO protected pages
This commit is contained in:
13
cypress/e2e/tenders.cy.ts
Normal file
13
cypress/e2e/tenders.cy.ts
Normal 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");
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user