Fix for VTK test

This commit is contained in:
Mirna Silva 2020-01-09 16:46:29 -03:00
parent 910d5c65d5
commit c74c80bb6f

View File

@ -28,7 +28,10 @@ describe('Visual Regression - OHIF VTK Extension', () => {
afterEach(() => {
//Select Exit 2D MPR button
cy.get('[data-cy="exit 2d mpr"]').click();
cy.get('[data-cy="exit 2d mpr"]').should($btn => {
expect($btn).to.be.visible;
$btn.click();
});
//Select 2D MPR button
cy.get('[data-cy="2d mpr"]').click();
});