tests: Test cases implemented: Cornerstone tools Clear and Eraser; Measurement panel Relabel and Description (#1014)
* Fix for test scripts that were failing in CI
* Test cases for tools: Length and Angle
* Test cases implemented: Scroll series, Levels, Pan, Reset, Zoom
* Added test cases for tools: Cine, More, Layout, Invert, Rotate, FlipH, FlipV
* Fixes made according to comments on PR review
* Fixes for failing scenarios: Layout and Cine
* Test cases implemented: Cornerstone tools Clear and Eraser; Measurement panel Relabel and Description
* Fix for CI failure
2019-10-10 21:46:41 +02:00
|
|
|
//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'
|
|
|
|
|
);
|
|
|
|
|
}
|
2019-10-16 17:39:41 +02:00
|
|
|
|
|
|
|
|
//Creating aliases for Routes
|
|
|
|
|
export function initRouteAliases() {
|
|
|
|
|
cy.server();
|
|
|
|
|
cy.route('GET', '/dcm4chee-arc/**/series').as('getStudySeries');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//Creating aliases for VTK tools buttons
|
|
|
|
|
export function initVTKToolsAliases() {
|
|
|
|
|
cy.get('.PluginSwitch > .toolbar-button').as('twodmprBtn');
|
|
|
|
|
cy.get('.ToolbarRow > :nth-child(2)').as('crosshairsBtn');
|
|
|
|
|
cy.get('.ToolbarRow > :nth-child(3)').as('wwwcBtn');
|
|
|
|
|
cy.get('.ToolbarRow > :nth-child(4)').as('rotateBtn');
|
|
|
|
|
cy.get('.slab-thickness').as('slabSlider');
|
|
|
|
|
cy.get('.select-ohif').as('modeDropdown');
|
|
|
|
|
cy.get('.ohif-check-label').as('modeCheckbox');
|
|
|
|
|
cy.get('.btn-group > .toolbar-button').as('layoutBtn');
|
|
|
|
|
}
|