test: Added support of console cypress test#3146
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds support for console (local) Cypress E2E tests to complement the existing cloud deployment tests. It introduces a new CLOUD environment variable to toggle between cloud and enterprise/console test modes, and refactors the activation tests into cloud-specific and console-specific variants.
Changes:
- Added
CLOUDenvironment variable to differentiate between cloud and console test execution modes - Refactored RPC activation tests into separate cloud and console specs with shared utilities
- Added device creation test for console mode with TLS and self-signed certificate support
- Enhanced login flow to handle certificate warnings and conditional "About" dialog
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| cypress.config.ts | Added CLOUD: false environment variable and DEVICE IP address configuration |
| cypress/support/commands.ts | Enhanced setup command to handle certificate warnings and conditionally close About dialog based on CLOUD flag |
| cypress/e2e/integration/rpc/activation.spec.ts | Refactored into a parent spec that exports shared types/helpers and routes to cloud or console sub-specs based on CLOUD flag |
| cypress/e2e/integration/rpc/activation.cloud.spec.ts | New cloud-specific activation test using WebSocket activation with RPS server |
| cypress/e2e/integration/rpc/activation.console.spec.ts | New console-specific activation test using local YAML profile configuration |
| cypress/e2e/integration/device/create.spec.ts | New test for device creation with TLS and self-signed certificate options |
| cypress/e2e/integration/wireless/create.spec.ts | Added unused import for api8021x |
195182d to
259ec0a
Compare
ddb7d4b to
b36b4f6
Compare
|
Test Result: Cira Wireless Profile ieee8021x Profile Profile Domain Device RPC Profile Cira Wireless Domain ieee8021x Profile Device |
0439615 to
51b5072
Compare
51b5072 to
3fa3880
Compare
Bumps node from `01f830d` to `8d92dea`. --- updated-dependencies: - dependency-name: node dependency-version: 25-bullseye-slim dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3fa3880 to
1b36687
Compare
PR Checklist
What are you changing?
Update the E2E test to support console test.
Anything the reviewer should know when reviewing this PR?
If the there are associated PRs in other repositories, please link them here (i.e. device-management-toolkit/repo#365 )