Skip to content

Vm app e2e - #35

Draft
dudyas6 wants to merge 7 commits into
flightctl:mainfrom
dudyas6:vm-app-e2e
Draft

Vm app e2e#35
dudyas6 wants to merge 7 commits into
flightctl:mainfrom
dudyas6:vm-app-e2e

Conversation

@dudyas6

@dudyas6 dudyas6 commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds deviceApps.cy.js for Form + YAML KVM apps and serial console login against alias test-apps (device6).
  • Restores device.cy.js lifecycle on test-device (approve, edit, logs, decommission, scale fleet).
  • Approve / decommission / flightctl console target devices by alias so both VMs can coexist.

Test plan

  • With only device5 enrolled as test-device, device.cy.js still covers the original flow.
  • After device6 is pending as test-apps, run npx cypress run --spec e2e/deviceApps.cy.js.
  • Confirm decommission of test-device-edited2 does not delete test-apps.

dudyas6 and others added 7 commits August 16, 2026 19:45
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>
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.

1 participant