Skip to content

Commit a270127

Browse files
rework check of the command result
1 parent 91fcbc9 commit a270127

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/e2e/tests/regression/workbench/scripting-area.e2e.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,14 @@ test
125125
//Delete database
126126
await deleteDatabase(ossStandaloneConfig.databaseName);
127127
})
128-
('Verify that user can not run "Select" command in Workbench', async() => {
128+
('Verify that user can not run "Select" command in Workbench', async t => {
129129
const command = 'select 13';
130-
const result = '"select is not supported by the Workbench. The list of all unsupported commands: blpop, brpop, blmove, brpoplpush, bzpopmin, bzpopmax, xread, xreadgroup, select, monitor, subscribe, psubscribe, ssubscribe, sync, psync, script debug, blpop, brpop, blmove, brpoplpush, bzpopmin, bzpopmax, xread, xreadgroup"';
130+
const result = '"select is not supported by the Workbench. The list of all unsupported commands';
131131
//Run Select command in Workbench
132132
await workbenchPage.sendCommandInWorkbench(command);
133133
//Check the command result
134-
await workbenchPage.checkWorkbenchCommandResult(command, result);
134+
const actualCommandResult = await workbenchPage.queryCardContainer.nth(0).find(workbenchPage.cssQueryCardCommandResult).textContent;
135+
await t.expect(actualCommandResult).contains(result);
135136
});
136137
test
137138
.meta({ rte: rte.standalone })

0 commit comments

Comments
 (0)