test: Added support of console cypress test#3146
Open
choonkeat1986 wants to merge 1 commit intomainfrom
Open
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 |
945466f to
195182d
Compare
195182d to
259ec0a
Compare
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.
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 )