@@ -31,12 +31,6 @@ const { expect } = chai;
3131const percentageRegex = new RegExp ( / \d { 1 , 2 } .\d { 2 } % / ) ;
3232const durationRegex = new RegExp ( / \d { 2 } : \d { 2 } : \d { 2 } / ) ;
3333
34- const beamTypeExpect = { selector :'tbody tr:nth-child(1) td:nth-child(8)' , value : 'PROTON\nPROTON' } ;
35- const beforeFirststRunExpect = { selector :'tbody tr:nth-child(1) td:nth-child(5)' , value : '03:00:00\n(25.00%)' } ;
36- const collidingBunchesExpect = { selector :'tbody tr:nth-child(1) td:nth-child(9)' , value : '1024' } ;
37- const meanRunDurationExpect = { selector :'tbody tr:nth-child(1) td:nth-child(6)' , value : '01:40:00' } ;
38- const totalRunsDurationExpect = { selector :'tbody tr:nth-child(1) td:nth-child(7)' , value : '05:00:00\n(41.67%)' } ;
39-
4034module . exports = ( ) => {
4135 let page ;
4236 let browser ;
@@ -133,8 +127,8 @@ module.exports = () => {
133127 await page . waitForSelector ( `body > div:nth-child(3) > div:nth-child(1)` ) ;
134128 await expectInnerText ( page , `#copy-6 > div:nth-child(1)` , 'Copy Fill Number' )
135129
136- await expectLink ( page , 'body > div:nth-child(3) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > a:nth-child(2 )' , {
137- href : `http://localhost:4000/?page=log-create&lhcFillNumbers=6` , innerText : 'Add log to this fill'
130+ await expectLink ( page , 'body > div:nth-child(3) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > a:nth-child(3 )' , {
131+ href : `http://localhost:4000/?page=log-create&lhcFillNumbers=6` , innerText : ' Add log to this fill'
138132 } )
139133 // disable the popover
140134 await pressElement ( page , `#row6-fillNumber-text > div:nth-child(1) > div:nth-child(2)` )
@@ -217,6 +211,12 @@ module.exports = () => {
217211 } ) ;
218212
219213 it ( 'should successfully display some statistics' , async ( ) => {
214+ const beamTypeExpect = { selector : 'tbody tr:nth-child(1) td:nth-child(8)' , value : 'PROTON\nPROTON' } ;
215+ const beforeFirststRunExpect = { selector : 'tbody tr:nth-child(1) td:nth-child(5)' , value : '03:00:00\n(25.00%)' } ;
216+ const collidingBunchesExpect = { selector : 'tbody tr:nth-child(1) td:nth-child(9)' , value : '1024' } ;
217+ const meanRunDurationExpect = { selector : 'tbody tr:nth-child(1) td:nth-child(6)' , value : '01:40:00' } ;
218+ const totalRunsDurationExpect = { selector : 'tbody tr:nth-child(1) td:nth-child(7)' , value : '05:00:00\n(41.67%)' } ;
219+
220220 await goToPage ( page , 'lhc-fill-overview' ) ;
221221
222222 await expectInnerText ( page , beamTypeExpect . selector , beamTypeExpect . value ) ;
0 commit comments