File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -293,19 +293,15 @@ export const metricsPage = {
293293 cy . get ( Classes . MenuItem ) . contains ( timespan ) . should ( 'be.visible' ) . click ( ) ;
294294 cy . byPFRole ( 'progressbar' ) . should ( 'be.visible' ) ;
295295 cy . byPFRole ( 'progressbar' ) . should ( 'not.exist' ) ;
296- cy . get ( '[id^="' + IDs . ChartAxis0ChartLabel + '"]' ) . should ( 'be.visible' ) ;
297- cy . byTestID ( DataTestIDs . MetricGraph ) . find ( '[data-ouia-component-id^="' + DataTestIDs . MetricsGraphAlertDanger + '"]' ) . should ( 'not.exist' ) ;
298296 } ,
299297
300298 enterGraphTimespan : ( timespan : GraphTimespan ) => {
301299 cy . log ( 'metricsPage.enterGraphTimespan' ) ;
302- cy . byTestID ( DataTestIDs . MetricGraphTimespanInput ) . type ( '{selectall}{backspace}' , { delay : 1000 } ) ;
300+ cy . byTestID ( DataTestIDs . MetricGraphTimespanInput ) . scrollIntoView ( ) . should ( 'be.visible' ) . type ( '{selectall}{backspace}' , { delay : 1000 } ) ;
303301 cy . byTestID ( DataTestIDs . MetricGraphTimespanInput ) . type ( timespan ) ;
304302 cy . byTestID ( DataTestIDs . MetricGraphTimespanInput ) . should ( 'have.attr' , 'value' , timespan ) ;
305303 cy . byPFRole ( 'progressbar' ) . should ( 'be.visible' ) ;
306304 cy . byPFRole ( 'progressbar' ) . should ( 'not.exist' ) ;
307- cy . get ( '[id^="' + IDs . ChartAxis0ChartLabel + '"]' ) . should ( 'be.visible' ) ;
308- cy . byTestID ( DataTestIDs . MetricGraph ) . find ( '[data-ouia-component-id^="' + DataTestIDs . MetricsGraphAlertDanger + '"]' ) . should ( 'not.exist' ) ;
309305 } ,
310306
311307 graphTimespanDropdownAssertion : ( ) => {
You can’t perform that action at this time.
0 commit comments