Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 13, 2025

The installed plugins page now uses Angular Material's dropdown menu for row actions. The wdio test page object was accessing action buttons directly, which no longer works since they're hidden inside a mat-menu.

Changes

  • Added clickActionsMenu() method to open the actions dropdown before interacting with buttons
  • Updated getRow() to open menu → read status → close menu (Escape key)
  • Updated enableOrDisablePlugin() to call clickActionsMenu() before clicking status button
  • Added TypeScript types for statusBtn and settingsBtn properties

Pattern

Follows the reference implementation from BackendConfiguration plugin:

private async clickActionsMenu() {
  await browser.pause(1000);
  await (await $$('#actionMenu')[this.rowNumber]).click();
  await browser.pause(1000);
}

async enableOrDisablePlugin(timeout = 100000) {
  await this.clickActionsMenu();  // Open menu first
  await this.statusBtn.click();   // Then click action
  // ...
}

The HTML structure now has action buttons nested inside <mat-menu> triggered by the actionMenu button, requiring menu expansion before element interaction.

Original prompt

This section details on the original issue you should resolve

<issue_title>update wdio tests to fit the new actions menu changes</issue_title>
<issue_description>In order for the wdio tests to work, we need to fix how we get the action menu buttons in eform-client/src/app/modules/plugins-management/components/installed/installed-plugins-page

This file eform-client/e2e/Page objects/Plugin.page.ts

needs to follow the samme pattern as in shown in this reference implementation for accessing the actions button of a property https://github.com/microting/eform-backendconfiguration-plugin/blob/master/eform-client/e2e/Page%20objects/BackendConfiguration/BackendConfigurationProperties.page.ts</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Co-authored-by: renemadsen <76994+renemadsen@users.noreply.github.com>
Copilot AI changed the title [WIP] Update wdio tests for new actions menu changes Update Plugin.page.ts for mat-menu actions dropdown Nov 13, 2025
Copilot AI requested a review from renemadsen November 13, 2025 18:42
@renemadsen renemadsen marked this pull request as ready for review November 13, 2025 18:53
@renemadsen renemadsen merged commit 70c7611 into master Nov 13, 2025
25 of 29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

update wdio tests to fit the new actions menu changes

3 participants