@@ -29,17 +29,17 @@ if (Cypress.env('ISOLATE').charAt(0).toLowerCase() !== 'y') {
2929
3030 // Default: use Docker (Linux/Mac); Windows overrides below use rpc.exe directly
3131 let infoCommand = `docker run --rm --network host --device=/dev/mei0 ${ rpcDockerImage } amtinfo --json`
32- let activateCommand = `docker run --rm --network host --device=/dev/mei0 ${ rpcDockerImage } activate -u wss://${ fqdn } /activate -v -n --profile ${ profileName } --json`
33- let deactivateCommand = `docker run --rm --network host --device=/dev/mei0 ${ rpcDockerImage } deactivate -u wss://${ fqdn } /activate -v -n -f --json --password ${ password } `
32+ let activateCommand = `docker run --rm --network host --device=/dev/mei0 ${ rpcDockerImage } activate -u wss://${ fqdn } /activate -v -n -skipamtcertcheck - -profile ${ profileName } --json`
33+ let deactivateCommand = `docker run --rm --network host --device=/dev/mei0 ${ rpcDockerImage } deactivate -u wss://${ fqdn } /activate -v -n -skipamtcertcheck - f --json --password ${ password } `
3434
3535 if ( isWin ) {
36- activateCommand = `rpc.exe activate -u wss://${ fqdn } /activate -v -n --profile ${ profileName } --json`
36+ activateCommand = `rpc.exe activate -u wss://${ fqdn } /activate -v -n -skipamtcertcheck - -profile ${ profileName } --json`
3737 infoCommand = 'rpc.exe amtinfo --json'
38- deactivateCommand = `rpc.exe deactivate -u wss://${ fqdn } /activate -v -n -f --json --password ${ password } `
38+ deactivateCommand = `rpc.exe deactivate -u wss://${ fqdn } /activate -v -n -skipamtcertcheck - f --json --password ${ password } `
3939 }
4040
4141 describe ( 'Device Activation - Cloud' , ( ) => {
42- context ( 'TC_DEVICE_ACTIVATE_AND_DEACTIVATE ' , ( ) => {
42+ context ( 'TC_ACTIVATION_DEVICE_ACTIVATE_AND_DEACTIVATE ' , ( ) => {
4343 beforeEach ( ( ) => {
4444 cy . setup ( )
4545 cy . exec ( infoCommand , execConfig ) . then ( ( result ) => {
@@ -69,9 +69,9 @@ if (Cypress.env('ISOLATE').charAt(0).toLowerCase() !== 'y') {
6969 }
7070
7171 if ( isAdminControlModeProfile ) {
72- expect ( combined ) . to . contain ( ' Status: Admin control mode' )
72+ expect ( combined ) . to . match ( / S t a t u s : a d m i n c o n t r o l m o d e / i )
7373 } else {
74- expect ( combined ) . to . contain ( ' Status: Client control mode' )
74+ expect ( combined ) . to . match ( / S t a t u s : c l i e n t c o n t r o l m o d e / i )
7575 }
7676
7777 if ( parts [ 2 ] === 'CIRA' ) {
@@ -156,6 +156,7 @@ if (Cypress.env('ISOLATE').charAt(0).toLowerCase() !== 'y') {
156156 const { combined } = buildOutput ( result )
157157 cy . log ( combined )
158158 expect ( combined ) . to . contain ( 'Status: Deactivated' )
159+ cy . wait ( 10000 )
159160 } )
160161 }
161162 } )
0 commit comments