fix(image-orientation): Prevent incorrect orientation marker display for single-slice US images (#4275)
This commit is contained in:
1 parent
6fd3c7e293
commit
6d11048ca5
5 files changed
+28
-9
No files matched your search
@@ -15,7 +15,7 @@ export function initCornerstoneToolsAliases() {
|
||||
}
|
||||
|
||||
//Creating aliases for Common page elements
|
||||
export function initCommonElementsAliases() {
|
||||
export function initCommonElementsAliases(skipMarkers) {
|
||||
cy.get('[data-cy="trackedMeasurements-btn"]').as('measurementsBtn');
|
||||
cy.get('.cornerstone-viewport-element').as('viewport');
|
||||
cy.get('[data-cy="seriesList-btn"]').as('seriesBtn');
|
||||
@@ -33,8 +33,17 @@ export function initCommonElementsAliases() {
|
||||
cy.get('[data-cy="viewport-overlay-bottom-right"]').as('viewportInfoBottomRight');
|
||||
cy.get('[data-cy="viewport-overlay-bottom-left"]').as('viewportInfoBottomLeft');
|
||||
|
||||
cy.get('.left-mid.orientation-marker').as('viewportInfoMidLeft');
|
||||
cy.get('.top-mid.orientation-marker').as('viewportInfoMidTop');
|
||||
console.debug('🚀 ~ skipMarkers:', skipMarkers);
|
||||
if (skipMarkers) {
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
cy.get('.left-mid.orientation-marker')?.as('viewportInfoMidLeft');
|
||||
cy.get('.top-mid.orientation-marker')?.as('viewportInfoMidTop');
|
||||
} catch (error) {
|
||||
console.log('Error: ', error);
|
||||
}
|
||||
}
|
||||
|
||||
//Creating aliases for Routes
|
||||
|
||||
@@ -232,8 +232,8 @@ Cypress.Commands.add('initCornerstoneToolsAliases', () => {
|
||||
});
|
||||
|
||||
//Initialize aliases for Common page elements
|
||||
Cypress.Commands.add('initCommonElementsAliases', () => {
|
||||
initCommonElementsAliases();
|
||||
Cypress.Commands.add('initCommonElementsAliases', skipMarkers => {
|
||||
initCommonElementsAliases(skipMarkers);
|
||||
});
|
||||
|
||||
//Initialize aliases for Routes
|
||||
|
||||
Reference in new issue
Block a user