Skip to content

Commit

Permalink
Fixing a typo in parameter naming
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Kruchinin committed Aug 19, 2020
1 parent 6488db9 commit b096eea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,26 +65,26 @@ Cypress.Commands.add('openTaskJob', (taskName) => {
cy.openJob()
})

Cypress.Commands.add('createShape', (ferstX, ferstY, lastX, lastY) => {
Cypress.Commands.add('createShape', (firstX, firstY, lastX, lastY) => {
cy.get('.cvat-draw-rectangle-control').click()
cy.get('.cvat-draw-shape-popover-content')
.find('button')
.contains('Shape')
.click({force: true})
cy.get('.cvat-canvas-container')
.click(ferstX, ferstY)
.click(firstX, firstY)
cy.get('.cvat-canvas-container')
.click(lastX, lastY)
})

Cypress.Commands.add('createTrack', (ferstX, ferstY, lastX, lastY) => {
Cypress.Commands.add('createTrack', (firstX, firstY, lastX, lastY) => {
cy.get('.cvat-draw-rectangle-control').click()
cy.get('.cvat-draw-shape-popover-content')
.find('button')
.contains('Track')
.click({force: true})
cy.get('.cvat-canvas-container')
.click(ferstX, ferstY)
.click(firstX, firstY)
cy.get('.cvat-canvas-container')
.click(lastX, lastY)
})

0 comments on commit b096eea

Please sign in to comment.