Skip to content

Commit 8707b18

Browse files
subirjollySubir Jolly
andauthored
fix: flaky tests fix: flows, operator (#4004)
Co-authored-by: Subir Jolly <sjolly@influxdata.com>
1 parent a7bb4b0 commit 8707b18

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

cypress/e2e/cloud/operator.test.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,13 @@ describe('Operator Page', () => {
4949
.invoke('attr', 'placeholder')
5050
.should('contain', 'Filter accounts by email')
5151

52-
cy.getByTestID('operator-resource--searchbar').type('asalem', {
53-
force: true,
54-
delay: 50,
55-
})
52+
cy.focused()
53+
cy.getByTestID('operator-resource--searchbar')
54+
.scrollIntoView()
55+
.type('asalem', {
56+
force: true,
57+
delay: 50,
58+
})
5659

5760
cy.getByTestID('table-body').within(() => {
5861
cy.getByTestID('table-row').should('have.length', 1)

cypress/e2e/shared/flows.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,9 @@ describe('Flows', () => {
548548
.children()
549549
.should('have.length', item.menuItems.length)
550550
item.menuItems.forEach(menuItem => {
551-
cy.getByTestID(menuItem + '--list-item').should('be.visible')
551+
cy.getByTestID(menuItem + '--list-item')
552+
.scrollIntoView()
553+
.should('be.visible')
552554
})
553555
})
554556
})

0 commit comments

Comments
 (0)