Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
martinboulais committed Apr 29, 2024
1 parent 2c3a422 commit 02de76c
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion test/public/logs/create.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,15 @@ ${actions}\
const magnetDateTime = getLocaleDateAndTime(magnetTimestamp);
expect(lastLog.title).to.equal(expectedTitle);
// Sometimes, browser adds \r to the request to comply with text form data encoding

/*
* Expect 2 fills: 6 and 123123123, fill 6 because 123123123 has been created during previous tests, hence ending fill 6, and
* 123123123 is ended because fill 123123 is created a bit later (both in CreateLhcFillUseCase.test.js)
*
* On call log is created for DCS system right before this test and appear in `Central systems/services`
*
* Detector quality is changed for detector CPV twice in UpdateRunUseCase
*/
expect(lastLog.text
.replaceAll('\r', ''))
.to.equal(`\
Expand All @@ -606,7 +615,22 @@ Date: ${formatFullDate(new Date())}
## LHC
### Last 24h
-
Fill 6 (Single_12b_8_1024_8_2018)
* Beam type: null
* Stable beam start: 1565262000000
* Stable beam end: 1565305200000
* Duration: 43200
* Efficiency: 41.67%
* Time to first run: 03:00:00 (25.00%)
Fill 123123123 (schemename)
* Beam type: Pb-Pb
* Stable beam start: 1647961200000
* Stable beam end: 1647961200000
* Duration: 600
* Efficiency: 0.00%
* Time to first run: 00:00:00 (0.00%)
### Plans
${lhcPlans}
Expand Down Expand Up @@ -639,6 +663,7 @@ ${access}
* QC:
* CTP:
* DCS:
* [Short description of the issue - Call on-call for DCS](http://localhost:4000?page=log-detail&id=147)
* LHC_IF:
## Detectors
Expand All @@ -649,6 +674,8 @@ ${access}
* MID:
* PHOS:
* CPV:
* [Detector(s) quality for run 1 has been changed](http://localhost:4000?page=log-detail&id=138)
* [Detector(s) quality for run 1 has been changed](http://localhost:4000?page=log-detail&id=137)
* TOF:
* TPC:
* TRD:
Expand Down

0 comments on commit 02de76c

Please sign in to comment.