Skip to content

Commit ced5111

Browse files
committed
[O2b-1517] Add table length wait in runsPerLhcPeriod overview test
Inserted calls to waitForTableLength before table data validation to ensure the table is fully loaded before assertions.
1 parent 59063b3 commit ced5111

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/public/runs/runsPerLhcPeriod.overview.test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ module.exports = () => {
110110
...Object.fromEntries(DETECTORS.map((detectorName) => [detectorName, (quality) => expect(quality).oneOf([...RUN_QUALITIES, ''])])),
111111
};
112112

113+
await waitForTableLength(page, 4);
113114
await validateTableData(page, new Map(Object.entries(tableDataValidatorsWithDetectorQualities)));
114115

115116
await waitForNavigation(page, () => pressElement(page, '#synchronousFlags-tab'));
@@ -122,6 +123,7 @@ module.exports = () => {
122123
])),
123124
};
124125

126+
await waitForTableLength(page, 4);
125127
await validateTableData(page, new Map(Object.entries(tableDataValidatorsWithQualityFromSynchronousFlags)));
126128
await expectInnerText(page, '#row56-FT0', '83');
127129
});

0 commit comments

Comments
 (0)