Vm app e2e - #35
Draft
dudyas6 wants to merge 7 commits into
Draft
Conversation
Deploy a test-vm app via the edit-device wizard before decommission, using a dedicated vmAppPage page object for wizard navigation and Running status polling. Co-authored-by: Cursor <cursoragent@cursor.com>
The Applications table only renders when status.applications is populated by the agent. Before that, no <table> element exists — just a "No applications found" Bullseye. Fix the polling to: - Use table[aria-label="Device applications table"] (specific selector) - Reload page instead of re-navigating (stays on device details) - scrollIntoView before assertions (card is below the fold) - Split deploy and wait into separate it blocks for clarity Co-authored-by: Cursor <cursoragent@cursor.com>
Reuse existing editDevice wizard patterns (navigate, open actions menu, click Edit device configurations, wizard-next/save). The validation now uses table[aria-label="Device applications table"] and reload-based polling since the table only renders once agent reports status. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…device. Approve, decommission, and flightctl console target devices by alias so both VMs can coexist once device6 is enrolled. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.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.
Summary
deviceApps.cy.jsfor Form + YAML KVM apps and serial console login against aliastest-apps(device6).device.cy.jslifecycle ontest-device(approve, edit, logs, decommission, scale fleet).flightctl consoletarget devices by alias so both VMs can coexist.Test plan
test-device,device.cy.jsstill covers the original flow.test-apps, runnpx cypress run --spec e2e/deviceApps.cy.js.test-device-edited2does not deletetest-apps.