Skip to content

Commit 891161e

Browse files
committed
fix: per minute
1 parent 2d90d3e commit 891161e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/suites/tenant/diagnostics/tabs/queries.test.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,17 @@ test.describe('Diagnostics Queries tab', async () => {
129129

130130
const diagnostics = new Diagnostics(page);
131131

132+
// Switch to "Per minute" view for testing
133+
await diagnostics.selectQueryPeriod(QueryPeriod.PerMinute);
134+
135+
// Wait for the table to refresh with new data
136+
await page.waitForTimeout(2000);
137+
132138
// Wait for data to appear with active refreshing
133139
const hasData = await diagnostics.waitForTableDataWithRefresh();
134140
expect(hasData).toBe(true);
135141

136-
// Verify first row has non-empty values for key columns (test first 4 columns)
142+
// Verify first row has non-empty values for key columns in "Per minute" view
137143
for (const column of QueryTopColumns.slice(0, 4)) {
138144
const columnValue = await diagnostics.table.getCellValueByHeader(1, column);
139145
expect(columnValue.trim()).toBeTruthy();

0 commit comments

Comments
 (0)