89
89
//Verify Command helper information
90
90
await t . expect ( cliPage . cliHelperTitleArgs . textContent ) . contains ( commandToCheck , 'Command Helper information persists after reopening' ) ;
91
91
} ) ;
92
- //skipped due the changes of url
93
- test . skip
92
+ test
94
93
. meta ( { env : env . web , rte : rte . standalone } )
95
94
( 'Verify that user can see in Command helper and click on new group "JSON", can choose it and see list of commands in the group' , async t => {
96
95
filteringGroup = 'JSON' ;
97
96
commandToCheck = 'JSON.SET' ;
98
97
commandArgumentsToCheck = 'JSON.SET key path value [NX|XX]' ;
99
- externalPageLink = '/#jsonset ' ;
98
+ externalPageLink = 'https://redis.io/commands/json.set/ ' ;
100
99
//Open Command Helper
101
100
await t . click ( cliPage . expandCommandHelperButton ) ;
102
101
//Select one command from the list
@@ -107,19 +106,16 @@ test.skip
107
106
//Click on Read More link for selected command
108
107
await t . click ( cliPage . readMoreButton ) ;
109
108
//Check new opened window page with the correct URL
110
- await t . expect ( getPageUrl ( ) ) . contains ( externalPageLink ) ;
111
- //Check that command info is displayed on the page
112
- await t . expect ( cliPage . cliReadMoreJSONCommandDocumentation ( ) . textContent ) . contains ( 'JSON.SET' ) ;
109
+ await t . expect ( getPageUrl ( ) ) . eql ( externalPageLink , 'The opened page' ) ;
113
110
await t . switchToParentWindow ( ) ;
114
111
} ) ;
115
- //skipped due the changes of url
116
- test . skip
112
+ test
117
113
. meta ( { env : env . web , rte : rte . standalone } )
118
114
( 'Verify that user can see in Command helper and click on new group "Search", can choose it and see list of commands in the group' , async t => {
119
115
filteringGroup = 'Search' ;
120
116
commandToCheck = 'FT.EXPLAIN' ;
121
117
commandArgumentsToCheck = 'FT.EXPLAIN index query [dialect]' ;
122
- externalPageLink = '/#ftexplain ' ;
118
+ externalPageLink = 'https://redis.io/commands/ft.explain/ ' ;
123
119
//Open Command Helper
124
120
await t . click ( cliPage . expandCommandHelperButton ) ;
125
121
//Select one command from the list
@@ -130,9 +126,7 @@ test.skip
130
126
//Click on Read More link for selected command
131
127
await t . click ( cliPage . readMoreButton ) ;
132
128
//Check new opened window page with the correct URL
133
- await t . expect ( getPageUrl ( ) ) . contains ( externalPageLink ) ;
134
- //Check that command info is displayed on the page
135
- await t . expect ( cliPage . cliReadMoreRediSearchCommandDocumentation ( ) . textContent ) . contains ( commandToCheck ) ;
129
+ await t . expect ( getPageUrl ( ) ) . eql ( externalPageLink , 'The opened page' ) ;
136
130
await t . switchToParentWindow ( ) ;
137
131
} ) ;
138
132
test
141
135
filteringGroup = 'HyperLogLog' ;
142
136
commandToCheck = 'PFCOUNT' ;
143
137
commandArgumentsToCheck = 'PFCOUNT key [key ...]' ;
144
- externalPageLink = '/ pfcount' ;
138
+ externalPageLink = 'https://redis.io/commands/ pfcount/ ' ;
145
139
//Open Command Helper
146
140
await t . click ( cliPage . expandCommandHelperButton ) ;
147
141
//Select one command from the list
152
146
//Click on Read More link for selected command
153
147
await t . click ( cliPage . readMoreButton ) ;
154
148
//Check new opened window page with the correct URL
155
- await t . expect ( getPageUrl ( ) ) . contains ( externalPageLink ) ;
149
+ await t . expect ( getPageUrl ( ) ) . eql ( externalPageLink , 'The opened page' ) ;
156
150
await t . switchToParentWindow ( ) ;
157
151
} ) ;
158
152
test
@@ -172,10 +166,10 @@ test
172
166
'AI.TENSORSET key FLOAT|DOUBLE|INT8|INT16|INT32|INT64|UINT8|UINT16|STRING|BOOL shape [shape ...] [BLOB blob] [VALUES value [VALUES value ...]]'
173
167
] ;
174
168
externalPageLinks = [
175
- '/#aimodeldel ' ,
176
- '/#aiscriptstore ' ,
177
- '/#aiscriptexecute ' ,
178
- '/#aitensorset '
169
+ 'https://redis.io/commands/ai.modeldel ' ,
170
+ 'https://redis.io/commands/ai.scriptstore ' ,
171
+ 'https://redis.io/commands/ai.scriptexecute ' ,
172
+ 'https://redis.io/commands/ai.tensorset '
179
173
] ;
180
174
//Open Command Helper
181
175
await t . click ( cliPage . expandCommandHelperButton ) ;
190
184
//Click on Read More link for selected command
191
185
await t . click ( cliPage . readMoreButton ) ;
192
186
//Check new opened window page with the correct URL
193
- await t . expect ( getPageUrl ( ) ) . contains ( externalPageLinks [ i ] ) ;
187
+ await t . expect ( getPageUrl ( ) ) . eql ( externalPageLinks [ i ] , 'The opened page' ) ;
194
188
//Close the window with external link to switch to the application window
195
189
await t . closeWindow ( ) ;
196
190
i ++ ;
202
196
filteringGroup = 'Gears' ;
203
197
commandToCheck = 'RG.GETEXECUTION' ;
204
198
commandArgumentsToCheck = 'RG.GETEXECUTION id [SHARD|CLUSTER]' ;
205
- externalPageLink = '#rggetexecution ' ;
199
+ externalPageLink = 'https://redis.io/commands/rg.getexecution ' ;
206
200
//Open Command Helper
207
201
await t . click ( cliPage . expandCommandHelperButton ) ;
208
202
//Verify that user can see Gears group in Command Helper (RedisGears module)
214
208
//Verify that user can use Read More link for Gears group in Command Helper (RedisGears module)
215
209
await t . click ( cliPage . readMoreButton ) ;
216
210
//Check new opened window page with the correct URL
217
- await t . expect ( getPageUrl ( ) ) . contains ( externalPageLink ) ;
211
+ await t . expect ( getPageUrl ( ) ) . eql ( externalPageLink , 'The opened page' ) ;
218
212
//Close the window with external link to switch to the application window
219
213
await t . closeWindow ( ) ;
220
214
} ) ;
@@ -237,11 +231,11 @@ test
237
231
'CF.ADD key item'
238
232
] ;
239
233
externalPageLinks = [
240
- '/#bfmexists ' ,
241
- '/#cmsquery ' ,
242
- 'tdigest.reset' ,
243
- '/#topklist ' ,
244
- '/#cfadd '
234
+ 'https://redis.io/commands/bf.mexists/ ' ,
235
+ 'https://redis.io/commands/cms.query/ ' ,
236
+ 'https://redis.io/commands/ tdigest.reset/ ' ,
237
+ 'https://redis.io/commands/topk.list/ ' ,
238
+ 'https://redis.io/commands/cf.add/ '
245
239
] ;
246
240
//Open Command Helper
247
241
await t . click ( cliPage . expandCommandHelperButton ) ;
256
250
//Verify that user can use Read More link for Bloom, Cuckoo, CMS, TDigest, TopK groups in Command Helper (RedisBloom module).
257
251
await t . click ( cliPage . readMoreButton ) ;
258
252
//Check new opened window page with the correct URL
259
- await t . expect ( getPageUrl ( ) ) . contains ( externalPageLinks [ i ] ) ;
253
+ await t . expect ( getPageUrl ( ) ) . eql ( externalPageLinks [ i ] , 'The opened page' ) ;
260
254
//Close the window with external link to switch to the application window
261
255
await t . closeWindow ( ) ;
262
256
i ++ ;
0 commit comments