Skip to content
Merged
Show file tree
Hide file tree
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
24 changes: 24 additions & 0 deletions tests/e2e/tests/critical-path/workbench/command-results.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,27 @@ test.skip
await workbenchPage.selectViewTypeText();
await t.expect(await workbenchPage.queryCardContainer.nth(0).find(workbenchPage.cssQueryTextResult).visible).ok('The result is displayed in Text view');
});
test
.after(async() => {
//Drop database
await deleteDatabase(ossStandaloneConfig.databaseName);
})
.meta({ rte: rte.standalone })
('Verify that user can populate commands in Editor from history by clicking keyboard “up” button', async t => {
const commands = [
'FT.INFO',
'RANDOMKEY',
'set'
];
//Send commands
for(const command of commands) {
await workbenchPage.sendCommandInWorkbench(command);
}
//Verify the quick access to command history by up button
for(const command of commands.reverse()) {
await t.click(workbenchPage.queryInput);
await t.pressKey('up');
let script = await workbenchPage.scriptsLines.textContent;
await t.expect(script.replace(/\s/g, ' ')).contains(command, 'Result of Manual command is displayed');
}
});
15 changes: 15 additions & 0 deletions tests/e2e/tests/regression/shortcuts/shortcuts.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,18 @@ test
await t.click(shortcutsPage.shortcutsCloseButton);
await t.expect(shortcutsPage.shortcutsPanel.exists).notOk('Shortcuts panel is not displayed');
})
test
.meta({ rte: rte.none })
('Verify that user can see description of the “up” shortcut in the Help Center > Keyboard Shortcuts > Workbench table', async t => {
const description = [
'Quick-access to command history',
'Up Arrow'
];
//Open Shortcuts
await t.click(myRedisDatabasePage.helpCenterButton);
await t.click(helpCenterPage.helpCenterShortcutButton);
// Verify that user can see description of the “up” shortcut
for(const element of description) {
await t.expect(shortcutsPage.shortcutsPanel.textContent).contains(element, 'The user can see description of the “up” shortcut');
}
})
19 changes: 19 additions & 0 deletions tests/e2e/tests/regression/workbench/history-of-results.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,22 @@ test
}
await t.expect(workbenchPage.noCommandHistoryTitle.visible).ok('The first command is deleted when user executes 31 command');
});
test
.meta({ rte: rte.none })
('Verify that user can see cursor is at the first character when Editor is empty', async t => {
const commands = [
'FT.INFO',
'RANDOMKEY'
];
const commandForCheck = 'SET';
//Send commands
for(const command of commands) {
await workbenchPage.sendCommandInWorkbench(command);
}
//Verify the quick access to history works when cursor is at the first character
await t.typeText(workbenchPage.queryInput, commandForCheck);
await t.pressKey('enter');
await t.pressKey('up');
let script = await workbenchPage.scriptsLines.textContent;
await t.expect(script.replace(/\s/g, ' ')).contains(commandForCheck, 'The command is not changed');
})