@@ -56,7 +56,7 @@ test('Verify that user can see the results found in the table view by default fo
56
56
// Send commands and check table view is default
57
57
for ( const command of commands ) {
58
58
await workbenchPage . sendCommandInWorkbench ( command ) ;
59
- await t . expect ( await workbenchPage . queryCardContainer . nth ( 0 ) . find ( workbenchPage . cssTableViewTypeOption ) . visible ) . ok ( `The table view is not selected by default for command ${ command } ` ) ;
59
+ await t . expect ( workbenchPage . queryCardContainer . nth ( 0 ) . find ( workbenchPage . cssTableViewTypeOption ) . exists ) . ok ( `The table view is not selected by default for command ${ command } ` ) ;
60
60
}
61
61
} ) ;
62
62
test
73
73
for ( const command of commands ) {
74
74
await workbenchPage . sendCommandInWorkbench ( command ) ;
75
75
}
76
- await t . expect ( await workbenchPage . queryCardContainer . nth ( 0 ) . find ( workbenchPage . cssTableViewTypeOption ) . visible )
76
+ await t . expect ( await workbenchPage . queryCardContainer . nth ( 0 ) . find ( workbenchPage . cssTableViewTypeOption ) . exists )
77
77
. ok ( 'The table view is not selected by default for command FT.SEARCH' ) ;
78
78
await t . switchToIframe ( workbenchPage . iframe ) ;
79
79
await t . expect ( await workbenchPage . queryTableResult . visible ) . ok ( 'The table result is not displayed for command FT.SEARCH' ) ;
@@ -87,7 +87,7 @@ test('Verify that user can switches between Table and Text for Client List and s
87
87
const command = 'CLIENT LIST' ;
88
88
// Send command and check table view is default
89
89
await workbenchPage . sendCommandInWorkbench ( command ) ;
90
- await t . expect ( await workbenchPage . queryCardContainer . nth ( 0 ) . find ( workbenchPage . cssClientListViewTypeOption ) . visible )
90
+ await t . expect ( await workbenchPage . queryCardContainer . nth ( 0 ) . find ( workbenchPage . cssClientListViewTypeOption ) . exists )
91
91
. ok ( 'The table view is not selected by default for command CLIENT LIST' ) ;
92
92
await t . switchToIframe ( workbenchPage . iframe ) ;
93
93
124
124
125
125
// Send command and check json view is default for json.get
126
126
await workbenchPage . sendCommandInWorkbench ( sendCommandsJsonGet . join ( '\n' ) ) ;
127
- await t . expect ( await workbenchPage . queryCardContainer . nth ( 0 ) . find ( workbenchPage . cssJsonViewTypeOption ) . visible )
127
+ await t . expect ( await workbenchPage . queryCardContainer . nth ( 0 ) . find ( workbenchPage . cssJsonViewTypeOption ) . exists )
128
128
. ok ( 'The json view is not selected by default for command JSON.GET' ) ;
129
129
130
130
await t . switchToIframe ( workbenchPage . iframe ) ;
135
135
136
136
await t . switchToMainWindow ( ) ;
137
137
await workbenchPage . sendCommandInWorkbench ( sendCommandsJsonMGet . join ( '\n' ) ) ;
138
- await t . expect ( await workbenchPage . queryCardContainer . nth ( 0 ) . find ( workbenchPage . cssJsonViewTypeOption ) . visible )
138
+ await t . expect ( await workbenchPage . queryCardContainer . nth ( 0 ) . find ( workbenchPage . cssJsonViewTypeOption ) . exists )
139
139
. ok ( 'The json view is not selected by default for command JSON.MGET' ) ;
140
140
141
141
await t . switchToIframe ( workbenchPage . iframe ) ;
0 commit comments