fix(thumbnail): Avoid multiple promise creations for thumbnails (#3756)

This commit is contained in:
Joe Boccanfuso authored and GitHub committed 2023-11-02 12:07:52 -04:00
1 parent 09ff293f5f
commit b23eeff937
6 files changed
+30 -6

No files matched your search

+1 -1
View File
@@ -181,7 +181,7 @@ Cypress.Commands.add('expectMinimumThumbnails', (seriesToWait = 1) => {
//Command to wait DICOM image to load into the viewport
Cypress.Commands.add('waitDicomImage', (mode = '/basic-test', timeout = 50000) => {
cy.window()
.its('cornerstone')
.its('cornerstone', { timeout: 30000 })
.should($cornerstone => {
const enabled = $cornerstone.getEnabledElements();
if (enabled?.length) {