File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
tests/e2e/tests/regression/cli Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 106
106
} )
107
107
( 'Verify that user can run command json.get and see JSON object with escaped quotes (\" instead of ")' , async t => {
108
108
keyName = chance . word ( { length : 20 } ) ;
109
+ const jsonValueCli = '"{\\"name\\":\\"xyz\\"}"' ;
109
110
//Add Json key with json object
110
111
await browserPage . addJsonKey ( keyName , keyTTL , jsonValue ) ;
111
112
const command = `JSON.GET ${ keyName } ` ;
114
115
await t . typeText ( cliPage . cliCommandInput , command ) ;
115
116
await t . pressKey ( 'enter' ) ;
116
117
//Verify result
117
- const commandResult = jsonValue . replace ( / " / g, '\\"' ) ;
118
- await t . expect ( cliPage . cliOutputResponseSuccess . innerText ) . eql ( `" ${ commandResult } "` , 'The user can see JSON object with escaped quotes' ) ;
118
+ // const commandResult = jsonValue.replace(/"/g, '\\"');
119
+ await t . expect ( cliPage . cliOutputResponseSuccess . innerText ) . eql ( jsonValueCli , 'The user can see JSON object with escaped quotes' ) ;
119
120
} ) ;
120
121
test
121
122
. meta ( { rte : rte . standalone } )
You can’t perform that action at this time.
0 commit comments