docs(faq): FAQ and Segmentation Mode Fix for some studies (#3762)

This commit is contained in:
Alireza authored and GitHub committed 2023-11-03 12:19:24 -04:00
1 parent f9f16bc69f
commit ee67bcc0f5
29 files changed
+321 -96

No files matched your search

@@ -18,12 +18,17 @@ describe('OHIF Study Browser', function () {
const dataTransfer = new DataTransfer();
cy.get('[data-cy="study-browser-thumbnail"]:nth-child(2)')
cy.get('[data-cy="study-browser-thumbnail"]:nth-child(2)').as('seriesThumbnail');
cy.get('@seriesThumbnail')
.first()
.trigger('mousedown', { which: 1, button: 0 })
.trigger('dragstart', { dataTransfer })
.trigger('drag', {});
cy.get('.cornerstone-canvas')
cy.get('.cornerstone-canvas').as('viewport');
cy.get('@viewport')
.trigger('mousemove', 'center')
.trigger('dragover', { dataTransfer, force: true })
.trigger('drop', { dataTransfer, force: true });
+3 -1
View File
@@ -125,6 +125,8 @@ Cypress.Commands.add('openStudyList', () => {
});
Cypress.Commands.add('waitStudyList', () => {
// wait 1 second for the studies to get updated
cy.wait(1000);
cy.get('@searchResult').should($list => {
expect($list).to.not.have.class('no-hover');
});
@@ -132,7 +134,7 @@ Cypress.Commands.add('waitStudyList', () => {
Cypress.Commands.add('waitViewportImageLoading', () => {
// Wait for finish loading
cy.get('[data-cy="viewprt-grid"]', { timeout: 30000 }).should($grid => {
cy.get('[data-cy="viewport-grid"]', { timeout: 30000 }).should($grid => {
expect($grid).not.to.contain.text('Load');
});
});