@@ -7,6 +7,7 @@ import rhinoParams from '@/rhino_params.js';
77import testData from './test_data.json' ;
88
99const ACCESS_KEY = Cypress . env ( 'ACCESS_KEY' ) ;
10+ const DEVICE = Cypress . env ( 'DEVICE' ) ;
1011
1112describe ( 'Rhino binding' , ( ) => {
1213 it ( 'should be able to init via public path' , ( ) => {
@@ -16,7 +17,8 @@ describe('Rhino binding', () => {
1617 ( ) => result . current . init (
1718 ACCESS_KEY ,
1819 { publicPath : "/test/contexts/coffee_maker_wasm.rhn" , forceWrite : true } ,
19- { publicPath : "/test/rhino_params.pv" , forceWrite : true }
20+ { publicPath : "/test/rhino_params.pv" , forceWrite : true } ,
21+ { device : DEVICE }
2022 )
2123 ) . then ( ( ) => {
2224 expect ( result . current . isLoaded ) . to . be . true ;
@@ -36,7 +38,8 @@ describe('Rhino binding', () => {
3638 ( ) => result . current . init (
3739 ACCESS_KEY ,
3840 { publicPath : "/test/contexts/coffee_maker_wasm.rhn" , forceWrite : true } ,
39- { base64 : rhinoParams , forceWrite : true }
41+ { base64 : rhinoParams , forceWrite : true } ,
42+ { device : DEVICE }
4043 )
4144 ) . then ( ( ) => {
4245 expect ( result . current . isLoaded ) . to . be . true ;
@@ -50,7 +53,8 @@ describe('Rhino binding', () => {
5053 ( ) => result . current . init (
5154 ACCESS_KEY ,
5255 { publicPath : "/test/contexts/coffee_maker_wasm.rhn" , forceWrite : true } ,
53- { publicPath : "/rhino_params_failed.pv" , forceWrite : true }
56+ { publicPath : "/rhino_params_failed.pv" , forceWrite : true } ,
57+ { device : DEVICE }
5458 )
5559 ) . then ( ( ) => {
5660 expect ( result . current . isLoaded ) . to . be . false ;
@@ -65,7 +69,8 @@ describe('Rhino binding', () => {
6569 ( ) => result . current . init (
6670 '' ,
6771 { publicPath : "/test/contexts/coffee_maker_wasm.rhn" , forceWrite : true } ,
68- { publicPath : "/test/rhino_params.pv" , forceWrite : true }
72+ { publicPath : "/test/rhino_params.pv" , forceWrite : true } ,
73+ { device : DEVICE }
6974 )
7075 ) . then ( ( ) => {
7176 expect ( result . current . isLoaded ) . to . be . false ;
@@ -87,7 +92,8 @@ describe('Rhino binding', () => {
8792 {
8893 publicPath : testInfo . language === 'en' ? "/test/rhino_params.pv" : `/test/rhino_params_${ testInfo . language } .pv` ,
8994 forceWrite : true ,
90- }
95+ } ,
96+ { device : DEVICE }
9197 )
9298 ) . then ( ( ) => {
9399 expect ( result . current . isLoaded ) . to . be . true ;
@@ -124,7 +130,8 @@ describe('Rhino binding', () => {
124130 {
125131 publicPath : testInfo . language === 'en' ? "/test/rhino_params.pv" : `/test/rhino_params_${ testInfo . language } .pv` ,
126132 forceWrite : true ,
127- }
133+ } ,
134+ { device : DEVICE }
128135 )
129136 ) . then ( ( ) => {
130137 expect ( result . current . isLoaded ) . to . be . true ;
0 commit comments