Skip to content

Commit

Permalink
try to fix e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
sedghi committed Sep 19, 2023
1 parent 4d883cb commit b4f55a7
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
describe('OHIF HP', () => {
const beforeSetup = () => {
beforeEach(() => {
cy.checkStudyRouteInViewer(
'1.3.6.1.4.1.25403.345050719074.3824.20170125113417.1',
'&hangingProtocolId=@ohif/mnGrid'
Expand All @@ -8,17 +8,13 @@ describe('OHIF HP', () => {
cy.initCornerstoneToolsAliases();
cy.initCommonElementsAliases();
cy.waitDicomImage();
};
});

it('Should display 3 up', () => {
beforeSetup();

cy.get('[data-cy="viewport-pane"]').its('length').should('be.eq', 3);
});

it('Should navigate next/previous stage', () => {
beforeSetup();

cy.get('body').type(',');
cy.wait(250);
cy.get('[data-cy="viewport-pane"]').its('length').should('be.eq', 4);
Expand Down

0 comments on commit b4f55a7

Please sign in to comment.