@@ -14,7 +14,7 @@ import {
1414} from '../Diagnostics' ;
1515import { setupTopQueriesMock } from '../mocks' ;
1616
17- test . describe ( 'Diagnostics Queries tab' , async ( ) => {
17+ test . describe . only ( 'Diagnostics Queries tab' , async ( ) => {
1818 test ( 'No runnning queries in Queries if no queries are running' , async ( { page} ) => {
1919 const pageQueryParams = {
2020 schema : tenantName ,
@@ -118,9 +118,6 @@ test.describe('Diagnostics Queries tab', async () => {
118118 await queryEditor . waitForStatus ( 'Completed' ) ;
119119 }
120120
121- // Wait for query statistics to be collected
122- await page . waitForTimeout ( 2000 ) ;
123-
124121 // Now navigate to diagnostics to check the top queries
125122 const pageQueryParams = {
126123 schema : tenantName ,
@@ -132,9 +129,9 @@ test.describe('Diagnostics Queries tab', async () => {
132129
133130 const diagnostics = new Diagnostics ( page ) ;
134131
135- // Verify table has data
136- await expect ( diagnostics . table . isVisible ( ) ) . resolves . toBe ( true ) ;
137- await expect ( diagnostics . table . getRowCount ( ) ) . resolves . toBeGreaterThan ( 0 ) ;
132+ // Wait for data to appear with active refreshing
133+ const hasData = await diagnostics . waitForTableDataWithRefresh ( ) ;
134+ expect ( hasData ) . toBe ( true ) ;
138135
139136 // Verify first row has non-empty values for key columns (test first 4 columns)
140137 for ( const column of QueryTopColumns . slice ( 0 , 4 ) ) {
0 commit comments