Skip to content

Commit

Permalink
test: delete cy.wait command and modify primary click event declare
Browse files Browse the repository at this point in the history
  • Loading branch information
LTakhyunKim committed May 16, 2024
1 parent 1dced91 commit 996b307
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/insight-viewer-dev-e2e/src/e2e/interaction.custom.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,14 @@ describe(

it('click after panning', { scrollBehavior: false }, () => {
cy.get('.primary-drag-pan').click() // for dragging
cy.get('.primary-click').click()

cy.get('.cornerstone-canvas-wrapper').dragCanvas({
x: 140,
y: 30,
button: 0,
})
cy.wait(500)
cy.get('.primary-click').click()

cy.get('.cornerstone-canvas-wrapper').mouseclick({
x: CLIENT_X,
y: CLIENT_Y,
Expand Down Expand Up @@ -197,14 +197,14 @@ describe(

it('click after panning', { scrollBehavior: false }, () => {
cy.get('.primary-drag-pan').click() // for dragging
cy.get('.primary-click').click()

cy.get('.cornerstone-canvas-wrapper').dragCanvas({
x: -140,
y: -60,
button: 0,
})
cy.wait(500)
cy.get('.primary-click').click()

cy.get('.cornerstone-canvas-wrapper').mouseclick({
x: CLIENT_X,
y: CLIENT_Y,
Expand Down

0 comments on commit 996b307

Please sign in to comment.