feat: add Software Catalog deploy-to-fleet E2E test #28
LOW: The || false is redundant — === 'true' already evaluates to a boolean (true or false). Not a bug, just unnecessary noise.
skipSimulator: process.env.CYPRESS_SKIP_SIMULATOR === 'true',
LOW: This JSDoc is now stale — the function accepts configurable count, label, and initialDeviceIndex params (no longer "fixed").
* Spawns the device simulator. Accepts optional count (default 50), label, and initialDeviceIndex parameters.
* If a simulator child is already running, returns `{ alreadyRunning: true }` instead of starting another.
MEDIUM (follow-up item): buildImagePage.cy.js hardcodes const BUILD_NAME = 'new-build-flightctl' instead of reading Cypress.env('buildName'). If someone overrides BUILD_NAME=custom, this function will look for custom-cin but the build test will have created new-build-flightctl-cin. Consider aligning buildImagePage.cy.js to also use the env var in a follow-up PR.
🤖 AI Code Review — PR #28
Verdict: ✅ APPROVE (with minor suggestions)
_Note: Cannot submit as formal GitHub approval since the PR author and reviewer token belong to the same user. Verdict is APPROVE._
| Severity | Count |
|----------|-------|
| Critical | 0 |
| High | 0 |
| Medium | 1 |
| Low | 2 |
Gate Checks
✅ PR Description — thorough, explains what the test does and documents all changes
✅ CI Status — no CI checks configured on this repo
✅ Single Concern — adds one new E2E test with supporting page object and a non-breaking helper extension
✅ Reasonable Scope — 231 additions across 4 files, well within limits
✅ No Secrets — clean
✅ Not a Draft
Medium Issues
buildName config gap — The new buildName env var (cypress.config.js:46) is used in softwareCatalogPage.js:12 via Cypress.env('buildName'), but buildImagePage.cy.js:4 still hardcodes const BUILD_NAME = 'new-build-flightctl'. If someone overrides BUILD_NAME=custom, the catalog test will look for custom-cin while the build test created new-build-flightctl-cin. Consider updating buildImagePage.cy.js to also use Cypress.env('buildName') in a follow-up.Low Issues
cypress/cypress.config.js:49 — || false is redundant since === 'true' already returns a boolean. Harmless but unnecessary.cypress/plugins/scaleFleetSimulatorTasks.js:82 — JSDoc still says "fixed scale-demo arguments (50 devices, fleet label, concurrency 1)" but the function now accepts configurable count, label, and initialDeviceIndex parameters. Update the comment to reflect the new signature.What's Good
buildImagePage.js, fleetsPage.js, etc.skipSimulator toggle is well-designed — allows manual simulator runs during developmentscaleFleetSimulatorStart parameter extension with sensible defaultsRecommendation
Good to merge as-is. The buildName config gap is a minor follow-up item and doesn't affect the default flow.
talhil-rh
Adds a new softwareCatalogPage.cy.js spec that:
Also extends scaleFleetSimulatorStart to accept optional count/label/ initialDeviceIndex params (non-breaking; existing tests pass no args), adds a buildName cypress env var, and introduces the softwareCatalogPage page object.