File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -25,16 +25,18 @@ describe('Query Insights Dashboard', () => {
25
25
// Setup before each test
26
26
beforeEach ( ( ) => {
27
27
clearAll ( ) ;
28
- cy . disableGrouping ( ) ;
29
28
cy . createIndexByName ( indexName , sampleDocument ) ;
30
29
cy . enableTopQueries ( METRICS . LATENCY ) ;
31
30
cy . enableTopQueries ( METRICS . CPU ) ;
32
31
cy . enableTopQueries ( METRICS . MEMORY ) ;
33
32
cy . searchOnIndex ( indexName ) ;
33
+ // wait for 1s to avoid same timestamp
34
34
cy . wait ( 1000 ) ;
35
35
cy . searchOnIndex ( indexName ) ;
36
36
cy . wait ( 1000 ) ;
37
37
cy . searchOnIndex ( indexName ) ;
38
+ // waiting for the query insights queue to drain
39
+ cy . wait ( 10000 ) ;
38
40
cy . navigateToOverview ( ) ;
39
41
} ) ;
40
42
@@ -57,8 +59,10 @@ describe('Query Insights Dashboard', () => {
57
59
* Validate sorting by the "Timestamp" column works correctly
58
60
*/
59
61
it ( 'should sort the table by the Timestamp column' , ( ) => {
60
- // Click the Timestamp column header to sort
62
+ // waiting for the query insights queue to drain
63
+ cy . wait ( 10000 ) ;
61
64
cy . navigateToOverview ( ) ;
65
+ // Click the Timestamp column header to sort
62
66
cy . get ( '.euiTableHeaderCell' ) . contains ( 'Timestamp' ) . click ( ) ;
63
67
// eslint-disable-next-line jest/valid-expect-in-promise
64
68
cy . get ( '.euiTableRow' )
You can’t perform that action at this time.
0 commit comments