Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions tests/e2e/tests/regression/workbench/workbench-pipeline.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const settingsPage = new SettingsPage();

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

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