@@ -25,46 +25,46 @@ fixture `Index Schema at Workbench`
25
25
await deleteStandaloneDatabaseApi ( ossStandaloneRedisearch ) ;
26
26
} ) ;
27
27
test
28
- . meta ( { env : env . desktop } ) ( 'Verify that user can open results in Text and Table views for FT.INFO for Hash in Workbench' , async t => {
29
- indexName = Common . generateWord ( 5 ) ;
30
- const commandsForSend = [
31
- `FT.CREATE ${ indexName } ON HASH PREFIX 1 product: SCHEMA name TEXT` ,
32
- 'HMSET product:1 name "Apple Juice"'
33
- ] ;
34
- const searchCommand = `FT.INFO ${ indexName } ` ;
28
+ . meta ( { env : env . desktop } ) ( 'Verify that user can open results in Text and Table views for FT.INFO for Hash in Workbench' , async t => {
29
+ indexName = Common . generateWord ( 5 ) ;
30
+ const commandsForSend = [
31
+ `FT.CREATE ${ indexName } ON HASH PREFIX 1 product: SCHEMA name TEXT` ,
32
+ 'HMSET product:1 name "Apple Juice"'
33
+ ] ;
34
+ const searchCommand = `FT.INFO ${ indexName } ` ;
35
35
36
- // Send commands
37
- await workbenchPage . sendCommandInWorkbench ( commandsForSend . join ( '\n' ) ) ;
38
- // Send search command
39
- await workbenchPage . sendCommandInWorkbench ( searchCommand ) ;
40
- // Check that result is displayed in Table view
41
- await t . switchToIframe ( workbenchPage . iframe ) ;
42
- await t . expect ( workbenchPage . queryTableResult . exists ) . ok ( 'The result is displayed in Table view' ) ;
43
- // Select Text view type
44
- await t . switchToMainWindow ( ) ;
45
- await workbenchPage . selectViewTypeText ( ) ;
46
- // Check that result is displayed in Text view
47
- await t . expect ( workbenchPage . queryTextResult . exists ) . ok ( 'The result is displayed in Text view' ) ;
48
- } ) ;
36
+ // Send commands
37
+ await workbenchPage . sendCommandInWorkbench ( commandsForSend . join ( '\n' ) ) ;
38
+ // Send search command
39
+ await workbenchPage . sendCommandInWorkbench ( searchCommand ) ;
40
+ // Check that result is displayed in Table view
41
+ await t . switchToIframe ( workbenchPage . iframe ) ;
42
+ await t . expect ( workbenchPage . queryTableResult . exists ) . ok ( 'The result is displayed in Table view' ) ;
43
+ // Select Text view type
44
+ await t . switchToMainWindow ( ) ;
45
+ await workbenchPage . selectViewTypeText ( ) ;
46
+ // Check that result is displayed in Text view
47
+ await t . expect ( workbenchPage . queryTextResult . exists ) . ok ( 'The result is displayed in Text view' ) ;
48
+ } ) ;
49
49
test
50
- . meta ( { env : env . desktop } ) ( 'Verify that user can open results in Text and Table views for FT.INFO for JSON in Workbench' , async t => {
51
- indexName = Common . generateWord ( 5 ) ;
52
- const commandsForSend = [
53
- `FT.CREATE ${ indexName } ON JSON SCHEMA $.user.name AS name TEXT $.user.tag AS country TAG` ,
54
- 'JSON.SET myDoc1 $ \'{"user":{"name":"John Smith","tag":"foo,bar","hp":1000, "dmg":150}}\''
55
- ] ;
56
- const searchCommand = `FT.INFO ${ indexName } ` ;
50
+ . meta ( { env : env . desktop } ) ( 'Verify that user can open results in Text and Table views for FT.INFO for JSON in Workbench' , async t => {
51
+ indexName = Common . generateWord ( 5 ) ;
52
+ const commandsForSend = [
53
+ `FT.CREATE ${ indexName } ON JSON SCHEMA $.user.name AS name TEXT $.user.tag AS country TAG` ,
54
+ 'JSON.SET myDoc1 $ \'{"user":{"name":"John Smith","tag":"foo,bar","hp":1000, "dmg":150}}\''
55
+ ] ;
56
+ const searchCommand = `FT.INFO ${ indexName } ` ;
57
57
58
- // Send commands
59
- await workbenchPage . sendCommandInWorkbench ( commandsForSend . join ( '\n' ) ) ;
60
- // Send search command
61
- await workbenchPage . sendCommandInWorkbench ( searchCommand ) ;
62
- // Check that result is displayed in Table view
63
- await t . switchToIframe ( workbenchPage . iframe ) ;
64
- await t . expect ( workbenchPage . queryTableResult . exists ) . ok ( 'The result is displayed in Table view' ) ;
65
- // Select Text view type
66
- await t . switchToMainWindow ( ) ;
67
- await workbenchPage . selectViewTypeText ( ) ;
68
- // Check that result is displayed in Text view
69
- await t . expect ( workbenchPage . queryTextResult . exists ) . ok ( 'The result is displayed in Text view' ) ;
70
- } ) ;
58
+ // Send commands
59
+ await workbenchPage . sendCommandInWorkbench ( commandsForSend . join ( '\n' ) ) ;
60
+ // Send search command
61
+ await workbenchPage . sendCommandInWorkbench ( searchCommand ) ;
62
+ // Check that result is displayed in Table view
63
+ await t . switchToIframe ( workbenchPage . iframe ) ;
64
+ await t . expect ( workbenchPage . queryTableResult . exists ) . ok ( 'The result is displayed in Table view' ) ;
65
+ // Select Text view type
66
+ await t . switchToMainWindow ( ) ;
67
+ await workbenchPage . selectViewTypeText ( ) ;
68
+ // Check that result is displayed in Text view
69
+ await t . expect ( workbenchPage . queryTextResult . exists ) . ok ( 'The result is displayed in Text view' ) ;
70
+ } ) ;
0 commit comments