Skip to content

Commit 5c263a0

Browse files
committed
[O2B-1517] Fix table row loading check
Number of rows must be different to that of the previous test otherwise waitForTable will execute and move on before the new data has been loaded. Therefore new test case added that will result in different number of rows prior.
1 parent 5081ae9 commit 5c263a0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,16 @@ module.exports = () => {
153153
const amountSelectorButtonSelector = `${amountSelectorId} button`;
154154
await pressElement(page, amountSelectorButtonSelector);
155155

156+
await fillInput(page, `${amountSelectorId} input[type=number]`, '3', ['input', 'change']);
157+
await waitForTableLength(page, 3);
158+
await expectInnerText(page, '.dropup button', 'Rows per page: 3 ');
159+
160+
await pressElement(page, amountSelectorButtonSelector);
156161
await page.waitForSelector(`${amountSelectorId} .dropup-menu`);
157162

158163
const amountItems5 = `${amountSelectorId} .dropup-menu .menu-item:first-child`;
159164
await pressElement(page, amountItems5, true);
165+
// only 4 runs in LHC Period 1
160166
await waitForTableLength(page, 4);
161167
await expectInnerText(page, '.dropup button', 'Rows per page: 5 ');
162168

0 commit comments

Comments
 (0)