Skip to content

Commit 609e78b

Browse files
committed
fx
1 parent f6f54e7 commit 609e78b

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

test/public/runs/navigationUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ exports.navigateToRunsOverview = async (page) => {
3535
exports.navigateToRunsPerLhcPeriod = async (page, lhcPeriodId, expectedRowsCount, tabPanel='detectorQualities') => {
3636
await waitForNavigation(page, () => pressElement(page, 'a#lhc-period-overview', true));
3737
await waitForNavigation(page, () => pressElement(page, `#row${lhcPeriodId}-associatedRuns a`, true));
38-
await waitForNavigation(page, () => pressElement(page, `#${tabPanel}-tab a`, true));
38+
await pressElement(page, `#${tabPanel}-tab`, true);
3939
expectUrlParams(page, { page: 'runs-per-lhc-period', lhcPeriodId, panel: tabPanel }, ['pdpBeamType']);
4040
await waitForTableLength(page, expectedRowsCount);
4141
};

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const {
3030
expectUrlParams,
3131
fillInput,
3232
expectColumnValues,
33+
openFilteringPanel,
3334
} = require('../defaults.js');
3435
const { RUN_QUALITIES, RunQualities } = require('../../../lib/domain/enums/RunQualities.js');
3536
const { resetDatabaseContent } = require('../../utilities/resetDatabaseContent.js');
@@ -243,7 +244,7 @@ module.exports = () => {
243244
});
244245

245246
it('should successfully apply detectors notBadFraction filters', async () => {
246-
await pressElement(page, '#openFilterToggle', true);
247+
await openFilteringPanel(page);
247248

248249
await page.waitForSelector('#inelasticInteractionRateAvg-operator');
249250
await page.select('#inelasticInteractionRateAvg-operator', '<=');
@@ -281,7 +282,7 @@ module.exports = () => {
281282
expect(exportContent.trim()).to.be.eql([
282283
'runNumber,ITS',
283284
'105,""',
284-
'56,Good (from: 1565294400000 to: 1565298000000)',
285+
'56,"Good (from: 1565294400000 to: 1565298000000)"',
285286
'54,""',
286287
'49,""',
287288
].join('\r\n'));

test/public/runs/runsPerSimulationPass.overview.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,8 @@ module.exports = () => {
278278
expect(exportContent.trim()).to.be.eql([
279279
'runNumber,CPV',
280280
'108,""',
281-
'107,"Bad (from: 1565272000000 to: 1565337000000) | Bad (from: 1565340600000 to: 1565359200000)"',
282-
'106,""'
281+
'107,""',
282+
'106,"Bad (from: 1565272000000 to: 1565337000000) | Bad (from: 1565340600000 to: 1565359200000)"'
283283
].join('\r\n'));
284284
fs.unlinkSync(path.resolve(downloadPath, targetFileName));
285285
});

0 commit comments

Comments
 (0)