Skip to content

Commit b24e06a

Browse files
committed
test fixes
1 parent 38910ec commit b24e06a

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

test/public/defaults.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -773,15 +773,15 @@ module.exports.testTableSortingByColumn = async (page, columnId) => {
773773
const notOrderData = await getColumnCellsInnerTexts(page, columnId);
774774

775775
// Sort in ASCENDING manner
776-
await this.pressElement(page, `th#${columnId}`);
776+
await this.pressElement(page, `th#${columnId}`, true);
777777
this.expectColumnValues(page, columnId, [...notOrderData].sort());
778778

779779
// Sort in DESCENDING manner
780-
await this.pressElement(page, `th#${columnId}`);
780+
await this.pressElement(page, `th#${columnId}`, true);
781781
this.expectColumnValues(page, columnId, [...notOrderData].sort().reverse());
782782

783783
// Revoke sorting
784-
await this.pressElement(page, `th#${columnId}`);
784+
await this.pressElement(page, `th#${columnId}`, true);
785785
this.expectColumnValues(page, columnId, notOrderData);
786786
};
787787

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ const {
2929
getInnerText,
3030
expectUrlParams,
3131
fillInput,
32+
expectColumnValues,
3233
} = require('../defaults.js');
3334
const { RUN_QUALITIES, RunQualities } = require('../../../lib/domain/enums/RunQualities.js');
3435
const { resetDatabaseContent } = require('../../utilities/resetDatabaseContent.js');
@@ -152,9 +153,9 @@ module.exports = () => {
152153
await page.waitForSelector(`${amountSelectorId} .dropup-menu`);
153154

154155
const amountItems5 = `${amountSelectorId} .dropup-menu .menu-item:first-child`;
155-
await pressElement(page, amountItems5);
156-
await expectInnerText(page, '.dropup button', 'Rows per page: 5 ');
156+
await pressElement(page, amountItems5, true);
157157
await waitForTableLength(page, 4);
158+
await expectInnerText(page, '.dropup button', 'Rows per page: 5 ');
158159

159160
// Expect the custom per page input to have red border and text color if wrong value typed
160161
await fillInput(page, `${amountSelectorId} input[type=number]`, '1111');
@@ -190,7 +191,7 @@ module.exports = () => {
190191
const targetFileName = 'runs.json';
191192

192193
// First export
193-
await pressElement(page, EXPORT_RUNS_TRIGGER_SELECTOR);
194+
await pressElement(page, EXPORT_RUNS_TRIGGER_SELECTOR, true);
194195
await page.waitForSelector('select.form-control', { timeout: 200 });
195196
await page.select('select.form-control', 'runQuality', 'runNumber', 'definition', 'lhcPeriod');
196197
await expectInnerText(page, '#send:enabled', 'Export');

0 commit comments

Comments
 (0)