Skip to content

VTK toolbar is not displayed if user clicks on 2D MPR button before image loads in viewport #1167

@mirnasilva

Description

@mirnasilva

Bug Report

Description

If user drags a thumbnail and clicks on 2D MPR button too fast, without waiting for the image to load on the single viewport the button Exit 2D MPR is displayed with the Cornerstone toolbar instead of the VTK toolbar.

This scenario is tricky to reproduce manually, but it is constantly falling on the test automation.

Steps to Reproduce

  1. Load studies for patient name: Juno
  2. Drag the 3rd thumbnail into the viewport
  3. Before waiting the image to load, click on button 2D MPR

Steps to Reproduce on Test Automation:

  1. Go to file platform/viewer/cypress/integration/pwa/OHIFExtensionVTK.spec.js
  2. Comment the command cy.wait(1000) in line 26.
  3. On terminal, navigate to path: Viewers/platform/viewer/
  4. Execute the test automation by running: yarn run test:e2e

Actual Result

The button Exit 2D MPR is displayed with the Cornerstone toolbar instead of the VTK toolbar.

Screen Shot 2019-11-12 at 17 58 37

Expected Result

The button Exit 2D MPR should only be displayed when the VTK tools are active and the viewport layout split into 3 viewports.

Metadata

Metadata

Assignees

Labels

BugsBug reported, reproducible, and verified.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions