test: Improviment on VTK beforeEach hook (#1057)

This commit is contained in:
Mirna Silva 2019-10-16 16:59:50 -03:00 committed by Danny Brown
parent e4cfae7ad9
commit 8d49b31d03

View File

@ -17,7 +17,11 @@ describe('OHIF VTK Extension', () => {
cy.get('.PluginSwitch > .toolbar-button')
.as('twodmprBtn')
.should('be.visible')
.click();
.then(btn => {
if (!btn.text().includes('Exit')) {
btn.click();
}
});
cy.initVTKToolsAliases();
cy.wait(1000);