Skip to content

Commit 818ccc7

Browse files
authored
Merge pull request #1185 from microting/copilot/update-time-planning-spec
Update time-planning-enabled.spec.cy.ts to use action menu for plugin status check
2 parents 4c22852 + fd05c04 commit 818ccc7

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

eform-client/cypress/e2e/plugins/time-planning-pn/a/time-planning-enabled.spec.cy.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,14 @@ describe('Enable Backend Config plugin', () => {
1212
});
1313
it('should enabled Time registration plugin', () => {
1414
const pluginName = 'Microting Time Planning Plugin';
15-
pluginPage.enablePluginByName(pluginName);
16-
const row = cy.contains('.mat-mdc-row', pluginName).first();
17-
row.find('.mat-column-actions button')
15+
16+
// Open action menu for the plugin
17+
cy.contains('.mat-mdc-row', pluginName).first().find('#actionMenu').click();
18+
cy.wait(500);
19+
20+
// Verify the plugin is enabled by checking the status button in the action menu
21+
cy.get('#plugin-status-button0')
22+
.find('mat-icon')
1823
.should('contain.text', 'toggle_on'); // plugin is enabled
1924
});
2025
});

0 commit comments

Comments
 (0)