Skip to content

Commit bfdd3e2

Browse files
Merge pull request #725 from etmurasaki/etmura-flaky-metrics1
NO-JIRA: metrics automation failing only in periodics - fix click and type timespan
2 parents df0e531 + 8b9cd66 commit bfdd3e2

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

web/cypress/views/metrics.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff 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: () => {

0 commit comments

Comments
 (0)