Skip to content

Commit 6eb42be

Browse files
e2e - remove regexp
1 parent d8c92f7 commit 6eb42be

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/e2e/tests/regression/cli/cli.e2e.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ test
106106
})
107107
('Verify that user can run command json.get and see JSON object with escaped quotes (\" instead of ")', async t => {
108108
keyName = chance.word({ length: 20 });
109+
const jsonValueCli = '"{\\"name\\":\\"xyz\\"}"';
109110
//Add Json key with json object
110111
await browserPage.addJsonKey(keyName, keyTTL, jsonValue);
111112
const command = `JSON.GET ${keyName}`;
@@ -114,8 +115,8 @@ test
114115
await t.typeText(cliPage.cliCommandInput, command);
115116
await t.pressKey('enter');
116117
//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');
119120
});
120121
test
121122
.meta({ rte: rte.standalone })

0 commit comments

Comments
 (0)