* feat: 🎸 Only allow reconstruction of datasets that make sense Only allow reconstruction of datasets which are imaging data, that have frames in the same orientation, with the same size and make sense to be reconstructed in 3D. Closes: #561
34 lines
1.4 KiB
JavaScript
34 lines
1.4 KiB
JavaScript
//Creating aliases for Cornerstone tools buttons
|
|
export function initCornerstoneToolsAliases() {
|
|
cy.get('.ToolbarRow > :nth-child(2)').as('stackScrollBtn');
|
|
cy.get('.ToolbarRow > :nth-child(3)').as('zoomBtn');
|
|
cy.get('.ToolbarRow > :nth-child(4)').as('levelsBtn');
|
|
cy.get('.ToolbarRow > :nth-child(5)').as('panBtn');
|
|
cy.get('.ToolbarRow > :nth-child(6)').as('lengthBtn');
|
|
cy.get('.ToolbarRow > :nth-child(7)').as('annotateBtn');
|
|
cy.get('.ToolbarRow > :nth-child(8)').as('angleBtn');
|
|
cy.get('.ToolbarRow > :nth-child(9)').as('resetBtn');
|
|
cy.get('.ToolbarRow > :nth-child(10)').as('cineBtn');
|
|
cy.get('.expandableToolMenu').as('moreBtn');
|
|
cy.get('.btn-group > .toolbar-button').as('layoutBtn');
|
|
}
|
|
|
|
//Creating aliases for Common page elements
|
|
export function initCommonElementsAliases() {
|
|
cy.get(
|
|
'.pull-right > .RoundedButtonGroup > .roundedButtonWrapper > .roundedButton'
|
|
).as('measurementsBtn');
|
|
cy.get('.viewport-element').as('viewport');
|
|
cy.get('section.sidepanel.from-right').as('measurementsPanel');
|
|
cy.get(
|
|
'.pull-left > .RoundedButtonGroup > .roundedButtonWrapper > .roundedButton'
|
|
).as('seriesBtn');
|
|
cy.get('section.sidepanel.from-left').as('seriesPanel');
|
|
cy.get('div.ViewportOverlay > div.bottom-left.overlay-element > div').as(
|
|
'viewportInfoBottomLeft'
|
|
);
|
|
cy.get('div.ViewportOverlay > div.bottom-right.overlay-element > div').as(
|
|
'viewportInfoBottomRight'
|
|
);
|
|
}
|