Skip to content

test: Added support of console cypress test#3146

Open
choonkeat1986 wants to merge 1 commit intomainfrom
enableConsole
Open

test: Added support of console cypress test#3146
choonkeat1986 wants to merge 1 commit intomainfrom
enableConsole

Conversation

@choonkeat1986
Copy link
Contributor

PR Checklist

  • [x ] Unit Tests have been added for new changes
  • [x ] API tests have been updated if applicable
  • [x ] All commented code has been removed
  • [x ] If you've added a dependency, you've ensured license is compatible with Apache 2.0 and clearly outlined the added dependency.

What are you changing?

Update the E2E test to support console test.

  • Added new test for the device profile creation
  • Added rpc activation test for device activation to console
  • Update cypress.config.ts for a new env variable call 'CLOUD' to determine the test are run with cloud deployment or enterprise deployment.

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 )

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 CLOUD environment 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

@choonkeat1986 choonkeat1986 force-pushed the enableConsole branch 7 times, most recently from 945466f to 195182d Compare February 25, 2026 05:22
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.

2 participants