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
2 changes: 1 addition & 1 deletion tests/e2e/tests/critical-path/browser/filtering.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ test
for (const { textType } of keyTypes) {
await browserPage.selectFilterGroupType(textType);
//Check key type label
await t.expect(browserPage.filteringLabel.getAttribute('title')).eql(textType.toUpperCase( ), `The label of type ${textType} is dispalyed`);
await t.expect((await browserPage.filteringLabel.textContent).toUpperCase).eql(textType.toUpperCase, `The label of type ${textType} is dispalyed`);
await t.expect(browserPage.keysNumberOfResults.visible).ok(`The filter ${textType} is applied`);
}
//Check removing of the label
Expand Down
9 changes: 5 additions & 4 deletions tests/e2e/tests/regression/workbench/cypher.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ test
test
.meta({ rte: rte.standalone })
('Verify that when user clicks on the “X” control or use shortcut “ESC” popover Editor is closed and changes are not saved', async t => {
const cypherCommand = `${command} "query"`;
//Type command and open the popover editor
await t.typeText(workbenchPage.queryInput, `${command} "query"`, { replace: true });
await t.typeText(workbenchPage.queryInput, cypherCommand, { replace: true });
await t.pressKey('left');
await t.click(workbenchPage.monacoWidget);
//Do some changes in the Editor and close by “X” control
Expand All @@ -47,14 +48,14 @@ test
//Verify that editor is closed and changes are not saved
let commandAfter = await workbenchPage.scriptsLines.textContent;
await t.expect(workbenchPage.queryInput.nth(1).exists).notOk('The popover Editor is closed');
await t.expect(commandAfter.replace(/\s/g, ' ')).eql(command, 'The changes are not saved from the Editor');
await t.expect(commandAfter.replace(/\s/g, ' ')).eql(cypherCommand, 'The changes are not saved from the Editor');
//Re-open the Editor and do some changes and close by shortcut “ESC”
await t.click(workbenchPage.monacoWidget);
await t.typeText(workbenchPage.queryInput.nth(1), 'test', { replace: true });
await t.pressKey('esc');
//Verify that editor is closed and changes are not saved
commandAfter = await workbenchPage.scriptsLines.textContent;
await t.expect(commandAfter.replace(/\s/g, ' ')).eql(command, 'The changes are not saved from the Editor');
await t.expect(commandAfter.replace(/\s/g, ' ')).eql(cypherCommand, 'The changes are not saved from the Editor');
});
test
.meta({ rte: rte.standalone })
Expand Down Expand Up @@ -112,6 +113,6 @@ test
await t.expect(workbenchPage.queryInput.nth(1).clientHeight).eql(editorHeight + offsetY, 'The non-Redis editor is resized by the top border');
//Check that user can resize editor by bottom border
editorHeight = await workbenchPage.queryInput.nth(1).clientHeight;
await t.drag(workbenchPage.nonRedisEditorResizeBottom.nth(1), 0, -offsetY, { speed: 0.4 });
await t.drag(workbenchPage.nonRedisEditorResizeBottom, 0, -offsetY, { speed: 0.4 });
await t.expect(workbenchPage.queryInput.nth(1).clientHeight).eql(editorHeight - offsetY, 'The non-Redis editor is resized by the bottom border');
});