Skip to content

Commit 00166e7

Browse files
committed
fix: tests
1 parent 8915093 commit 00166e7

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

tests/suites/tenant/diagnostics/Diagnostics.ts

+8-8
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,15 @@ export class Table {
8888
}
8989

9090
async waitForCellValueByHeader(row: number, header: string, value: string) {
91-
const headers = await this.getHeaders();
92-
const colIndex = headers.indexOf(header);
93-
if (colIndex === -1) {
94-
throw new Error(`Header "${header}" not found`);
95-
}
96-
const cell = this.table.locator(
97-
`tr.data-table__row:nth-child(${row}) td:nth-child(${colIndex + 1})`,
98-
);
9991
await retryAction(async () => {
92+
const headers = await this.getHeaders();
93+
const colIndex = headers.indexOf(header);
94+
if (colIndex === -1) {
95+
throw new Error(`Header "${header}" not found`);
96+
}
97+
const cell = this.table.locator(
98+
`tr.data-table__row:nth-child(${row}) td:nth-child(${colIndex + 1})`,
99+
);
100100
const cellValue = (await cell.innerText()).trim();
101101
if (cellValue === value) {
102102
return true;

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

-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ test.describe('Diagnostics tab', async () => {
6565
const diagnostics = new Diagnostics(page);
6666
await diagnostics.clickTab(DiagnosticsTab.Queries);
6767
await diagnostics.clickRadioSwitch(QueriesSwitch.Running);
68-
expect(await diagnostics.table.getRowCount()).toBe(1);
6968
expect(
7069
await diagnostics.table.waitForCellValueByHeader(1, 'QueryText', longRunningQuery),
7170
).toBe(true);

0 commit comments

Comments
 (0)