Update WDIO tests to use action menu for plugin activation#580
Merged
renemadsen merged 4 commits intomasterfrom Nov 14, 2025
Merged
Update WDIO tests to use action menu for plugin activation#580renemadsen merged 4 commits intomasterfrom
renemadsen merged 4 commits intomasterfrom
Conversation
Co-authored-by: renemadsen <76994+renemadsen@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update WDIO tests for action menu-based plugin activation
Update WDIO tests to use action menu for plugin activation
Nov 14, 2025
renemadsen
requested changes
Nov 14, 2025
| }; | ||
|
|
||
| // Find and activate Microting Items Planning Plugin | ||
| for (let i = 0; i < 10; i++) { |
Member
There was a problem hiding this comment.
@copilot the for loop is starting from 1 as the old one, otherwise it will not work as expected, this goes for the following for loops as well
Contributor
Author
There was a problem hiding this comment.
Fixed in commit 2917cda. All for loops now start from index 1 as in the original code.
Co-authored-by: renemadsen <76994+renemadsen@users.noreply.github.com>
renemadsen
requested changes
Nov 14, 2025
| it('should activate the plugin', async () => { | ||
| let plugin = await pluginPage.getFirstPluginRowObj(); | ||
| // Helper function to activate a plugin by index using action menu | ||
| const activatePlugin = async (index: number, pluginName: string) => { |
Member
There was a problem hiding this comment.
@copilot this index needs to be index -= 1, otherwise it will activate the wrong plugin.
Contributor
Author
There was a problem hiding this comment.
Fixed in commit 56ff223. Both activatePlugin() and checkPluginStatus() now use index - 1 for HTML selectors to account for the difference between 1-based getPluginRowObjByIndex() and 0-based DOM element IDs.
Co-authored-by: renemadsen <76994+renemadsen@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update WDIO tests for action menu-based plugin activation
Based on reference PR microting/eform-angular-workflow-plugin#1167, this PR updates the plugin activation tests to use the new action menu interface instead of the old toggle method.
Changes completed:
application-settings.plugins-page.spec.tsto use action menu for plugin activationplugin.enableOrDisablePlugin()with action menu clicks$('#action-items-X').$('#actionMenu')to open action menu$('#plugin-status-buttonX')within menu$('#pluginOKBtn')$from@wdio/globalsindex - 1for HTML element selectors (0-indexed)Key changes implemented:
$from@wdio/globalsactivatePlugin()helper function that:$('#action-items-{index - 1}').$('#actionMenu')$('#plugin-status-button{index - 1}')checkPluginStatus()helper function that:$('#action-items-{index - 1}').$('#actionMenu')$('#plugin-status-button{index - 1}')index - 1to account for 0-based indexing in DOMIndex mapping explanation:
getPluginRowObjByIndex()uses 1-based indexing (starts at 1)Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.