@@ -256,6 +256,7 @@ module.exports = () => {
256256 const meanRunDurationExpect = { selector : 'tbody tr:nth-child(1) td:nth-child(6)' , value : '01:40:00' } ;
257257 const totalRunsDurationExpect = { selector : 'tbody tr:nth-child(1) td:nth-child(7)' , value : '05:00:00' } ;
258258 const efficiencyExpect = { selector : 'tbody tr:nth-child(1) td:nth-child(8)' , value : '41.67%' } ;
259+ const schemeNameExpect = { selector : '#row6-fillingSchemeName > div:nth-child(1) > div:nth-child(1)' , value : 'Single_12b_8_1024_8_2018' } ;
259260
260261 await goToPage ( page , 'lhc-fill-overview' ) ;
261262
@@ -265,6 +266,7 @@ module.exports = () => {
265266 await expectInnerText ( page , meanRunDurationExpect . selector , meanRunDurationExpect . value ) ;
266267 await expectInnerText ( page , totalRunsDurationExpect . selector , totalRunsDurationExpect . value ) ;
267268 await expectInnerText ( page , efficiencyExpect . selector , efficiencyExpect . value ) ;
269+ await expectInnerText ( page , schemeNameExpect . selector , schemeNameExpect . value ) ;
268270 } ) ;
269271
270272 it ( 'should successfully display filter elements' , async ( ) => {
@@ -276,7 +278,7 @@ module.exports = () => {
276278 const filterRunDurationPlaceholderExpect = { selector : '#run-duration-filter-operand' , value : 'e.g 16:14:15 (HH:MM:SS)' } ;
277279 const filterSBDurationOperatorExpect = { value : true } ;
278280 const filterBeamTypeExpect = { selector : 'div.flex-row:nth-child(5) > div:nth-child(1)' , value : 'Beam Type' }
279-
281+ const filterSchemeNamePlaceholderExpect = { selector : '.fillingSchemeName-filter input' , value : 'e.g. Single_12b_8_1024_8_2018' }
280282
281283 await goToPage ( page , 'lhc-fill-overview' ) ;
282284 // Open the filtering panel
@@ -290,6 +292,7 @@ module.exports = () => {
290292 await expectInnerText ( page , filterRunDurationExpect . selector , filterRunDurationExpect . value ) ;
291293 await expectAttributeValue ( page , filterRunDurationPlaceholderExpect . selector , 'placeholder' , filterRunDurationPlaceholderExpect . value ) ;
292294 await expectInnerText ( page , filterBeamTypeExpect . selector , filterBeamTypeExpect . value ) ;
295+ await expectAttributeValue ( page , filterSchemeNamePlaceholderExpect . selector , 'placeholder' , filterSchemeNamePlaceholderExpect . value ) ;
293296 } ) ;
294297
295298 it ( 'should successfully un-apply Stable Beam filter menu' , async ( ) => {
@@ -350,4 +353,14 @@ module.exports = () => {
350353 await pressElement ( page , filterBeamTypePb_Pb ) ;
351354 await waitForTableLength ( page , 2 ) ;
352355 } ) ;
356+
357+ it ( 'should successfully apply scheme name filter' , async ( ) => {
358+ const filterSchemeNameInputField = '.fillingSchemeName-filter input' ;
359+ await goToPage ( page , 'lhc-fill-overview' ) ;
360+ await waitForTableLength ( page , 5 ) ;
361+
362+ await openFilteringPanel ( page ) ;
363+ await fillInput ( page , filterSchemeNameInputField , 'Single_12b_8_1024_8_2018' , [ 'change' ] ) ;
364+ await waitForTableLength ( page , 1 ) ;
365+ } ) ;
353366} ;
0 commit comments