Skip to content

Commit a7fc860

Browse files
committed
fix: remove excessive test
1 parent 0d14b6e commit a7fc860

File tree

1 file changed

+1
-37
lines changed

1 file changed

+1
-37
lines changed

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

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -181,43 +181,7 @@ test.describe('Diagnostics Queries tab', async () => {
181181
expect(await diagnostics.getSelectedQueryPeriod()).toBe(QueryPeriod.PerHour);
182182
});
183183

184-
test('FixedHeightQuery maintains consistent height and proper scrolling behavior', async ({
185-
page,
186-
}) => {
187-
// Setup mock with 100 rows for scrolling test
188-
await setupTopQueriesMock(page);
189-
190-
const pageQueryParams = {
191-
schema: tenantName,
192-
database: tenantName,
193-
tenantPage: 'diagnostics',
194-
diagnosticsTab: 'topQueries',
195-
};
196-
const tenantPage = new TenantPage(page);
197-
await tenantPage.goto(pageQueryParams);
198-
199-
const diagnostics = new Diagnostics(page);
200-
await expect(diagnostics.table.isVisible()).resolves.toBe(true);
201-
202-
// Verify we have enough rows to test scrolling
203-
const rowCount = await diagnostics.table.getRowCount();
204-
if (rowCount > 5) {
205-
// Test scrolling behavior: click on a row that might not be fully visible
206-
const targetRowIndex = Math.min(rowCount, 8); // Target a row further down
207-
208-
// Click on the target row to test scrolling
209-
await diagnostics.table.clickRow(targetRowIndex);
210-
211-
// Wait for any scrolling animation
212-
await page.waitForTimeout(500);
213-
214-
// Verify the row is now visible in the viewport
215-
const isVisible = await diagnostics.table.isRowVisible(targetRowIndex);
216-
expect(isVisible).toBe(true);
217-
}
218-
});
219-
220-
test('FixedHeightQuery components have consistent height across different query lengths', async ({
184+
test('Top Query rows components have consistent height across different query lengths', async ({
221185
page,
222186
}) => {
223187
// Setup mock with 100 rows for scrolling test

0 commit comments

Comments
 (0)