@@ -32,8 +32,8 @@ fixture `CLI Command helper`
32
32
} )
33
33
test ( 'Verify that user can see relevant search results in Command Helper per every entered symbol' , async t => {
34
34
await myRedisDatabasePage . clickOnDBByName ( ossStandaloneConfig . databaseName ) ;
35
- //Open CLI
36
- await t . click ( cliPage . cliExpandButton ) ;
35
+ //Open Command Helper
36
+ await t . click ( cliPage . expandCommandHelperButton ) ;
37
37
//Start search from 1 symbol
38
38
await t . typeText ( cliPage . cliHelperSearch , 's' ) ;
39
39
//Verify that we found commands
@@ -47,23 +47,24 @@ test('Verify that user can see relevant search results in Command Helper per eve
47
47
} ) ;
48
48
test ( 'Verify that when user clears the input in the Search of CLI Helper (via x icon), he can see the default screen with proper the text' , async t => {
49
49
await myRedisDatabasePage . clickOnDBByName ( ossStandaloneConfig . databaseName ) ;
50
- //Open CLI
51
- await t . click ( cliPage . cliExpandButton ) ;
50
+ //Open Command Helper
51
+ await t . click ( cliPage . expandCommandHelperButton ) ;
52
52
//Verify default text
53
53
await t . expect ( cliPage . cliHelperText . textContent ) . eql ( defaultHelperText , 'Default text for CLI Helper is shown' ) ;
54
54
//Search any command
55
55
await t . typeText ( cliPage . cliHelperSearch , 'SET' ) ;
56
56
await t . expect ( cliPage . cliHelperOutputTitles . count ) . gt ( 0 , 'List of commands were found' ) ;
57
57
//Clear search input
58
- const clearButton = await cliPage . cliHelper . find ( '[aria-label="Clear input"]' )
58
+ const clearButton = cliPage . cliHelper . find ( '[aria-label="Clear input"]' ) ;
59
59
await t . click ( clearButton ) ;
60
60
//Verify default text after clear
61
61
await t . expect ( cliPage . cliHelperText . textContent ) . eql ( defaultHelperText , 'Default text for CLI Helper is shown' ) ;
62
62
} ) ;
63
63
test ( 'Verify that when user enters command in CLI, Helper displays additional info about the command' , async t => {
64
64
await myRedisDatabasePage . clickOnDBByName ( ossStandaloneConfig . databaseName ) ;
65
- //Open CLI
65
+ //Open CLI and Helper
66
66
await t . click ( cliPage . cliExpandButton ) ;
67
+ await t . click ( cliPage . expandCommandHelperButton ) ;
67
68
//Enter command into CLI
68
69
await t . typeText ( cliPage . cliCommandInput , COMMAND_APPEND ) ;
69
70
//Verify details of the command
@@ -74,8 +75,9 @@ test('Verify that when user enters command in CLI, Helper displays additional in
74
75
test ( 'Verify that Command helper cleared when user runs the command in CLI' , async t => {
75
76
const searchText = 'sa' ;
76
77
await myRedisDatabasePage . clickOnDBByName ( ossStandaloneConfig . databaseName ) ;
77
- //Open CLI
78
+ //Open CLI and Helper
78
79
await t . click ( cliPage . cliExpandButton ) ;
80
+ await t . click ( cliPage . expandCommandHelperButton ) ;
79
81
//Select group from list
80
82
await cliPage . selectFilterGroupType ( COMMAND_GROUP_SET ) ;
81
83
//Type text in search
@@ -88,8 +90,8 @@ test('Verify that Command helper cleared when user runs the command in CLI', asy
88
90
} ) ;
89
91
test ( 'Verify that user can unselect the command filtered to remove filters' , async t => {
90
92
await myRedisDatabasePage . clickOnDBByName ( ossStandaloneConfig . databaseName ) ;
91
- //Open CLI
92
- await t . click ( cliPage . cliExpandButton ) ;
93
+ //Open Command Helper
94
+ await t . click ( cliPage . expandCommandHelperButton ) ;
93
95
//Select one command from list
94
96
await cliPage . selectFilterGroupType ( COMMAND_GROUP_SET ) ;
95
97
await t . expect ( cliPage . cliHelperOutputTitles . count ) . gt ( 0 , 'List of commands were found' ) ;
@@ -103,8 +105,8 @@ test('Verify that user can unselect the command filtered to remove filters', asy
103
105
test ( 'Verify that when user has used search and apply filters, search results include only commands from the filter group applied' , async t => {
104
106
const searchText = 'sa' ;
105
107
await myRedisDatabasePage . clickOnDBByName ( ossStandaloneConfig . databaseName ) ;
106
- //Open CLI
107
- await t . click ( cliPage . cliExpandButton ) ;
108
+ //Open Command Helper
109
+ await t . click ( cliPage . expandCommandHelperButton ) ;
108
110
//Select group from list
109
111
await cliPage . selectFilterGroupType ( COMMAND_GROUP_SET ) ;
110
112
//Type text in search
@@ -117,8 +119,8 @@ test('Verify that when user has used search and apply filters, search results in
117
119
test ( 'Verify that user can type TS. in Command helper and see commands from RedisTimeSeries commands.json' , async t => {
118
120
const commandForSearch = 'TS.' ;
119
121
await myRedisDatabasePage . clickOnDBByName ( ossStandaloneConfig . databaseName ) ;
120
- //Open CLI
121
- await t . click ( cliPage . cliExpandButton ) ;
122
+ //Open Command Helper
123
+ await t . click ( cliPage . expandCommandHelperButton ) ;
122
124
//Select group from list and remeber commands
123
125
await cliPage . selectFilterGroupType ( COMMAND_GROUP_TIMESERIES ) ;
124
126
const commandsFilterCount = await cliPage . cliHelperOutputTitles . count ;
@@ -139,8 +141,8 @@ test('Verify that user can type TS. in Command helper and see commands from Redi
139
141
test ( 'Verify that user can type GRAPH. in Command helper and see auto-suggestions from RedisGraph commands.json' , async t => {
140
142
const commandForSearch = 'GRAPH.' ;
141
143
await myRedisDatabasePage . clickOnDBByName ( ossStandaloneConfig . databaseName ) ;
142
- //Open CLI
143
- await t . click ( cliPage . cliExpandButton ) ;
144
+ //Open Command Helper
145
+ await t . click ( cliPage . expandCommandHelperButton ) ;
144
146
//Select group from list and remeber commands
145
147
await cliPage . selectFilterGroupType ( COMMAND_GROUP_GRAPH ) ;
146
148
const commandsFilterCount = await cliPage . cliHelperOutputTitles . count ;
0 commit comments