Skip to content

Commit

Permalink
2nd attempt at fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
martinboulais committed Apr 30, 2024
1 parent b5b187b commit 5750aaa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions test/public/runs/detail.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -438,14 +438,12 @@ module.exports = () => {
});

it('should not display the LHC Data when beam is not stable', async () => {
await goToPage(page, 'run-detail', { queryParameters: { id: 107 } });
await page.waitForSelector('#NoLHCDataNotStable');
await goToPage(page, 'run-detail', { queryParameters: { runNumber: 107 } });
await expectInnerText(page, '#NoLHCDataNotStable', 'No LHC Fill information, beam mode was: UNSTABLE BEAMS');
});

it('should display the LHC fill number when beam is stable', async () => {
await goToPage(page, 'run-detail', { queryParameters: { id: 108 } });
await page.waitForSelector('#lhc-fill-fillNumber');
await goToPage(page, 'run-detail', { queryParameters: { runNumber: 108 } });
await expectInnerText(page, '#lhc-fill-fillNumber', 'Fill number:\n1');
});

Expand Down
2 changes: 1 addition & 1 deletion test/public/runs/overview.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ module.exports = () => {
await page.waitForSelector('tbody tr:nth-child(3)', { timeout: 500 });

// Multiple pages, not very representative
await expectInnerText(page, '#totalRowsCount', '108');
await expectInnerText(page, '#totalRowsCount', '106');
});

it('should successfully filter on definition', async () => {
Expand Down

0 comments on commit 5750aaa

Please sign in to comment.