Skip to content

Commit e561388

Browse files
authored
Merge pull request #953 from RedisInsight/e2e/regression-web-fixes
E2e/regression web fixes
2 parents dafa6d3 + a44a8e5 commit e561388

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

tests/e2e/tests/regression/workbench/workbench-pipeline.e2e.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const settingsPage = new SettingsPage();
1111

1212
const getPageUrl = ClientFunction(() => window.location.href);
1313
const externalPageLink = 'https://redis.io/docs/manual/pipelining/';
14-
const pipelineValues = ['-5', '5', '4'];
14+
const pipelineValues = ['-5', '5', '4', '20'];
1515
const commandForSend = '100 scan 0 match * count 5000';
1616

1717
fixture `Workbench Pipeline`
@@ -45,24 +45,23 @@ test('Verify that user can enter only numbers >0 in "Commands in pipeline" input
4545
await t.expect(settingsPage.commandsInPipelineInput.value).eql(pipelineValues[1], 'Value is incorrect');
4646
});
4747
test('Verify that only chosen in pipeline number of commands is loading at the same time in Workbench', async t => {
48-
await settingsPage.changeCommandsInPipeline(pipelineValues[2]);
48+
await settingsPage.changeCommandsInPipeline(pipelineValues[1]);
4949
// Go to Workbench page
5050
await t.click(myRedisDatabasePage.workbenchButton);
5151
await workbenchPage.sendCommandInWorkbench(commandForSend, 0.01);
5252
// Verify that only selected pipeline number of commands are loaded at the same time
53-
await t.expect(workbenchPage.loadedCommand.count).eql(Number(pipelineValues[2]), 'The number of sending commands is incorrect');
53+
await t.expect(workbenchPage.loadedCommand.count).eql(Number(pipelineValues[1]), 'The number of sending commands is incorrect');
5454
});
55-
test('Verify that user can see spinner over Run button and grey preloader for each command', async t => {
56-
let commandForSend = '300 scan 0 match * count 5000';
57-
await settingsPage.changeCommandsInPipeline(pipelineValues[2]);
55+
test.skip('Verify that user can see spinner over Run button and grey preloader for each command', async t => {
56+
await settingsPage.changeCommandsInPipeline(pipelineValues[3]);
5857
// Go to Workbench page
5958
await t.click(myRedisDatabasePage.workbenchButton);
6059
await workbenchPage.sendCommandInWorkbench(commandForSend, 0.01);
6160
// Verify that user can`t start new commands from the Workbench while command(s) is executing
6261
await t.expect(workbenchPage.submitCommandButton.withAttribute('disabled').exists).ok('Run button is not disabled', { timeout: 5000 });
6362
// Verify that user can see spinner over the disabled and shrunk Run button
6463
await t.expect(workbenchPage.runButtonSpinner.exists).ok('Loading spinner is not displayed for Run button', { timeout: 5000 });
65-
await t.expect(workbenchPage.queryCardContainer.find(workbenchPage.cssDeleteCommandButton).withAttribute('disabled').count).eql(4, 'The number of commands is incorrect');
64+
await t.expect(workbenchPage.queryCardContainer.find(workbenchPage.cssDeleteCommandButton).withAttribute('disabled').count).eql(Number(pipelineValues[3]), 'The number of commands is incorrect');
6665
});
6766
test('Verify that user can interact with the Editor while command(s) in progress', async t => {
6867
const valueInEditor = '100';

0 commit comments

Comments
 (0)