Skip to content

Commit

Permalink
chore(build): try to publish to npm again (OHIF#3676)
Browse files Browse the repository at this point in the history
  • Loading branch information
sedghi authored and Sofien-Sellami committed Oct 5, 2023
1 parent d9504c3 commit bcfa771
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
3 changes: 3 additions & 0 deletions modes/segmentation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
"keywords": [
"ohif-mode"
],
"publishConfig": {
"access": "public"
},
"module": "src/index.tsx",
"engines": {
"node": ">=14",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe('OHIF Context Menu', function () {
// Add length measurement
cy.addLengthMeasurement();
cy.get('[data-cy="prompt-begin-tracking-yes-btn"]').as('yesBtn').click();
cy.get('[data-cy="measurement-item"]').click();
cy.get('[data-cy="measurement-item"]').as('measurementItem').click();

const [x1, y1] = [150, 100];
cy.get('@viewport')
Expand All @@ -24,13 +24,12 @@ describe('OHIF Context Menu', function () {
});

// Contextmenu is visible
cy.get('[data-cy="context-menu"]').should('be.visible');

cy.get('[data-cy="context-menu"]').as('contextMenu').should('be.visible');
// Click "Finding" subMenu
cy.get('[data-cy="context-menu-item"]').contains('Finding').click();
cy.get('[data-cy="context-menu-item"]').as('item').contains('Finding').click();

// Click "Finding" subMenu
cy.get('[data-cy="context-menu-item"]').contains('Aortic insufficiency').click();
cy.get('[data-cy="measurement-item"]').contains('Aortic insufficiency');
cy.get('[data-cy="context-menu-item"]').as('item').contains('Aortic insufficiency').click();
cy.get('[data-cy="measurement-item"]').as('measure-item').contains('Aortic insufficiency');
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe('OHIF Measurement Panel', function () {

it('checks if image would jump when clicked on a measurement item', function () {
// Add length measurement
cy.addLengthMeasurement();
cy.addLengthMeasurement().wait(250);
cy.get('[data-cy="prompt-begin-tracking-yes-btn"]').as('yesBtn').click();

cy.scrollToIndex(13);
Expand Down

0 comments on commit bcfa771

Please sign in to comment.