Skip to content

Commit

Permalink
BGDIINF_SB-3187: Don't assign cypress return value
Browse files Browse the repository at this point in the history
From https://docs.cypress.io/guides/references/best-practices#Assigning-Return-Values
it is a bad practice to assign cypress command return value.
  • Loading branch information
ltshb committed Nov 8, 2023
1 parent fc3f562 commit 8378bf2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/e2e-cypress/integration/search/coordinates-search.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,8 @@ describe('Testing coordinates typing in search bar', () => {
})
}
const standardCheck = (x, y, acceptableDelta = 0.0) => {
const searchBar = cy.get(searchbarSelector)
searchBar.should('be.visible')
searchBar.paste(`${x} ${y}`)
cy.get(searchbarSelector).should('be.visible')
cy.get(searchbarSelector).paste(`${x} ${y}`)
checkCenterInStore(acceptableDelta)
checkZoomLevelInStore()
checkThatCoordinateAreHighlighted(acceptableDelta)
Expand Down

0 comments on commit 8378bf2

Please sign in to comment.