Skip to content

Commit 5239e22

Browse files
author
GuustMetz
committed
properly set the rowcount before exporting
1 parent a055513 commit 5239e22

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

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

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -201,18 +201,13 @@ module.exports = () => {
201201
// Revert changes for next test
202202
await page.evaluate(() => {
203203
// eslint-disable-next-line no-undef
204-
model.runs.perLhcPeriodOverviewModel.pagination.itemsPerPage = 10;
204+
model.runs.perLhcPeriodOverviewModel.pagination.itemsPerPage = 2;
205205
});
206-
await waitForTableLength(page, 4);
206+
await waitForTableLength(page, 2);
207207
});
208208

209209

210210
it('should successfully export all runs per lhc Period', async () => {
211-
await page.evaluate(() => {
212-
// eslint-disable-next-line no-undef
213-
model.runs.perLhcPeriodOverviewModel.pagination.itemsPerPage = 2;
214-
});
215-
216211
const targetFileName = 'data.json';
217212
await waitForButtonToBecomeActive(page, EXPORT_RUNS_TRIGGER_SELECTOR);
218213
// First export

0 commit comments

Comments
 (0)