Skip to content

Commit d7e61ef

Browse files
e2e - reduced the names where possible, removed after hooks
1 parent 6607338 commit d7e61ef

File tree

2 files changed

+4
-25
lines changed

2 files changed

+4
-25
lines changed

tests/e2e/tests/critical-path/workbench/cypher.e2e.ts

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@ fixture `Cypher syntax at Workbench`
2020
})
2121
test
2222
.meta({ rte: rte.standalone })
23-
.after(async() => {
24-
//Delete database
25-
await deleteDatabase(ossStandaloneConfig.databaseName);
26-
})
27-
('Verify that user can see popover Editor is displayed when clicks on “Use Cypher Syntax” popover in the Editor or “Shift+Space”', async t => {
23+
('Verify that user can see popover Editor when clicks on “Use Cypher Syntax” popover in the Editor or “Shift+Space”', async t => {
2824
const command = 'GRAPH.QUERY graph';
2925
//Type command and put the cursor inside
3026
await t.typeText(workbenchPage.queryInput, `${command} "query"`, { replace: true });
@@ -40,11 +36,7 @@ test
4036
});
4137
test
4238
.meta({ rte: rte.standalone })
43-
.after(async() => {
44-
//Delete database
45-
await deleteDatabase(ossStandaloneConfig.databaseName);
46-
})
47-
('Verify that wheh popover Editor is displayed user can see it is populated with the script that was detected between the quotes or it is blank if quotes were empty', async t => {
39+
('Verify that popover Editor is populated with the script that was detected between the quotes or it is blank if quotes were empty', async t => {
4840
const command = 'GRAPH.QUERY graph';
4941
const script = 'query'
5042
//Type command with empty script and open popover
@@ -56,7 +48,6 @@ test
5648
//Close popover editor and re-open with added script
5749
await t.pressKey('esc');
5850
await t.typeText(workbenchPage.queryInput, `${command} "${script}`, { replace: true });
59-
await t.debug();
6051
await t.pressKey('left');
6152
await t.click(workbenchPage.monacoWidget);
6253
//Verify that the Editor is populated with the script

tests/e2e/tests/regression/workbench/cypher.e2e.ts

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ fixture `Cypher syntax at Workbench`
2020
})
2121
test
2222
.meta({ rte: rte.standalone })
23-
.after(async() => {
24-
//Delete database
25-
await deleteDatabase(ossStandaloneConfig.databaseName);
26-
})
2723
('Verify that user can see popover “Use Cypher Syntax” when cursor is inside the query argument double/single quotes in the GRAPH command', async t => {
2824
const command = 'GRAPH.QUERY graph';
2925
//Type command and put the cursor inside
@@ -39,11 +35,7 @@ test
3935
});
4036
test
4137
.meta({ rte: rte.standalone })
42-
.after(async() => {
43-
//Delete database
44-
await deleteDatabase(ossStandaloneConfig.databaseName);
45-
})
46-
('Verify that when user clicks on the “X” control or use keyboard shortcut “ESC” popover Editor is closed and changes are not saved', async t => {
38+
('Verify that when user clicks on the “X” control or use shortcut “ESC” popover Editor is closed and changes are not saved', async t => {
4739
const command = 'GRAPH.QUERY graph "query"';
4840
//Type command and open the popover editor
4941
await t.typeText(workbenchPage.queryInput, command, { replace: true });
@@ -66,11 +58,7 @@ test
6658
});
6759
test
6860
.meta({ rte: rte.standalone })
69-
.after(async() => {
70-
//Delete database
71-
await deleteDatabase(ossStandaloneConfig.databaseName);
72-
})
73-
('Verify that when user use keyboard shortcut “CTRL+ENTER” or clicks on the “V” control popover Editor is closed and changes are saved, converted to Redis syntax and inserted back to the Editor', async t => {
61+
('Verify that when user use shortcut “CTRL+ENTER” or clicks on the “V” control popover Editor is closed and changes are saved', async t => {
7462
let script = 'query';
7563
const command = 'GRAPH.QUERY graph';
7664
//Type command and open the popover editor

0 commit comments

Comments
 (0)