* Instance metadata plus metadata provider overhaul. Fix consumption of wado-uri urls fallbacks + datatype agnosticism. WIP DICOMify things. fix various issues with naturalized variable naming migration. Remove metadata provider. Fix consumption of multiframe images and addition of CWIL metadata. Fix strange build issues. Fix CWIL style windowWidth to array from naturalized DICOM. Fix PT, CT, CR and DX issues for cornerstone + DX issues for vtkjs. Move color palette fetching down to the natuaralized JSON level. Remove unused StudyMetadataSummary Remove redundant dicom metadata dictionary. Working local + json routes. Fix SR read. Finished first round of testing + cleaned up debugging etc. * data => metadata for instance naturalizedJSON * Update dcmjs version * Correct github isssues. * Fix erroneously replaced files. * Danny's recommended changes. * Instance metadata plus metadata provider overhaul. Fix consumption of wado-uri urls fallbacks + datatype agnosticism. WIP DICOMify things. fix various issues with naturalized variable naming migration. Remove metadata provider. Fix consumption of multiframe images and addition of CWIL metadata. Fix strange build issues. Fix CWIL style windowWidth to array from naturalized DICOM. Fix PT, CT, CR and DX issues for cornerstone + DX issues for vtkjs. Move color palette fetching down to the natuaralized JSON level. Remove unused StudyMetadataSummary Remove redundant dicom metadata dictionary. Working local + json routes. Fix SR read. Finished first round of testing + cleaned up debugging etc. * data => metadata for instance naturalizedJSON * Update dcmjs version * Correct github isssues. * Fix erroneously replaced files. * Danny's recommended changes. * Update JSON CI * Update casing of import. * Fix jump for SR. * Fix unit tests for measurements service * Fix json CI test. * fix: update yarn lock * Fix local non-encapsulated pdf view * CI updated to new sucess message. Co-authored-by: Danny <danny.ri.brown@gmail.com>
96 lines
3.8 KiB
JavaScript
96 lines
3.8 KiB
JavaScript
//Creating aliases for Cornerstone tools buttons
|
|
export function initCornerstoneToolsAliases() {
|
|
cy.get('[data-cy="stack scroll"]').as('stackScrollBtn');
|
|
cy.get('[data-cy="zoom"]').as('zoomBtn');
|
|
cy.get('[data-cy="levels"]').as('levelsBtn');
|
|
cy.get('[data-cy="pan"]').as('panBtn');
|
|
cy.get('[data-cy="length"]').as('lengthBtn');
|
|
cy.get('[data-cy="annotate"]').as('annotateBtn');
|
|
cy.get('[data-cy="angle"]').as('angleBtn');
|
|
cy.get('[data-cy="reset"]').as('resetBtn');
|
|
cy.get('[data-cy="cine"]').as('cineBtn');
|
|
cy.get('[data-cy="more"]').as('moreBtn');
|
|
cy.get('[data-cy="layout"]').as('layoutBtn');
|
|
cy.get('.viewport-element').as('viewport');
|
|
}
|
|
|
|
//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'
|
|
);
|
|
cy.get('.left-mid.orientation-marker').as('viewportInfoMidLeft');
|
|
cy.get('.top-mid.orientation-marker').as('viewportInfoMidTop');
|
|
}
|
|
|
|
//Creating aliases for Routes
|
|
export function initRouteAliases() {
|
|
cy.server();
|
|
cy.route('GET', '**/series**').as('getStudySeries');
|
|
cy.route('GET', '**/studies**').as('getStudies');
|
|
}
|
|
|
|
//Creating aliases for VTK tools buttons
|
|
export function initVTKToolsAliases() {
|
|
cy.get('[data-cy="exit 2d mpr"]').as('exit2dmprBtn');
|
|
cy.get('[data-cy="crosshairs"]').as('crosshairsBtn');
|
|
cy.get('[data-cy="wwwc"]').as('wwwcBtn');
|
|
cy.get('[data-cy="rotate"]').as('rotateBtn');
|
|
cy.get('.slab-thickness').as('slabSlider');
|
|
cy.get('.select-ohif').as('modeDropdown');
|
|
cy.get('.ohif-check-label').as('modeCheckbox');
|
|
cy.get('[data-cy="layout"]').as('layoutBtn');
|
|
}
|
|
|
|
//Creating aliases for Study List page elements on Desktop experience
|
|
export function initStudyListAliasesOnDesktop() {
|
|
cy.get('.study-count').as('studyCount');
|
|
cy.get('#filter-PatientName').as('PatientName');
|
|
cy.get('#filter-PatientID').as('MRN');
|
|
cy.get('#filter-AccessionNumber').as('AccessionNumber');
|
|
cy.get('#start-date').as('studyListStartDate');
|
|
cy.get('#end-date').as('studyListEndDate');
|
|
cy.get('#filter-modalities').as('modalities');
|
|
cy.get('#filter-StudyDescription').as('StudyDescription');
|
|
cy.get('[data-cy="study-list-results"] > tr').as('searchResult');
|
|
}
|
|
|
|
//Creating aliases for Study List page elements on Tablet experience
|
|
export function initStudyListAliasesOnTablet() {
|
|
cy.get('.study-count').as('studyCount');
|
|
cy.get('#filter-patientNameOrId').as('patientNameOrMRN');
|
|
cy.get('#filter-accessionOrModalityOrDescription').as(
|
|
'accessionModalityDescription'
|
|
);
|
|
cy.get('#start-date').as('studyListStartDate');
|
|
cy.get('#end-date').as('studyListEndDate');
|
|
cy.get('[data-cy="study-list-results"] > tr').as('searchResult');
|
|
}
|
|
|
|
//Creating aliases for User Preferences modal
|
|
export function initPreferencesModalAliases() {
|
|
cy.get('.OHIFModal').as('preferencesModal');
|
|
cy.get('[data-cy="hotkeys"]').as('userPreferencesHotkeysTab');
|
|
cy.get('[data-cy="general"]').as('userPreferencesGeneralTab');
|
|
initPreferencesModalFooterBtnAliases();
|
|
}
|
|
|
|
//Creating aliases for User Preferences modal
|
|
export function initPreferencesModalFooterBtnAliases() {
|
|
cy.get('.active [data-cy="reset-default-btn"]').as('restoreBtn');
|
|
cy.get('.active [data-cy="cancel-btn"]').as('cancelBtn');
|
|
cy.get('.active [data-cy="save-btn"]').as('saveBtn');
|
|
}
|