Skip to content

Commit d897da2

Browse files
Copilotrenemadsen
andcommitted
Fix Cypress test: navigate directly to absence requests URL instead of menu navigation
Co-authored-by: renemadsen <76994+renemadsen@users.noreply.github.com>
1 parent 0810477 commit d897da2

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

eform-client/cypress/e2e/plugins/time-planning-pn/l/time-planning-absence-requests.spec.cy.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,8 @@ describe('Time Planning - Absence Requests', () => {
55
beforeEach(() => {
66
cy.visit('http://localhost:4200');
77
loginPage.login();
8-
9-
pluginPage.Navbar.goToPluginsPage();
10-
cy.get('#actionMenu')
11-
.should('be.visible')
12-
.click({ force: true });
13-
14-
cy.get('#plugin-settings-link0').click({ force: true });
15-
16-
cy.get('mat-nested-tree-node').contains('Timeregistrering').click();
17-
cy.get('mat-tree-node').contains('Absence Requests').click();
8+
// Navigate directly to the absence requests page since menu entry doesn't exist yet
9+
cy.visit('http://localhost:4200/plugins/time-planning-pn/absence-requests');
1810
});
1911

2012
it('should display absence requests inbox view', () => {

0 commit comments

Comments
 (0)