test: E2E Intermittent Failures (#1071)
This commit is contained in:
1 parent
cefa480979
commit
5cc78c867f
2 files changed
+12
-12
No files matched your search
@@ -57,12 +57,11 @@ describe('OHIF Cornerstone Toolbar', () => {
|
|||||||
|
|
||||||
//drags the mouse inside the viewport to be able to interact with series
|
//drags the mouse inside the viewport to be able to interact with series
|
||||||
cy.get('@viewport')
|
cy.get('@viewport')
|
||||||
.trigger('mousedown', 'top', { which: 1 })
|
.trigger('mousedown', 'center', { which: 1 })
|
||||||
.trigger('mousemove', 'center', { which: 1 })
|
.trigger('mousemove', 'top', { which: 1 })
|
||||||
.trigger('mouseup');
|
.trigger('mouseup');
|
||||||
|
|
||||||
const expectedText =
|
const expectedText =
|
||||||
'Ser: 1Img: 14 14/26256 x 256Loc: 0.00 mm Thick: 5.00 mm';
|
'Ser: 1Img: 1 1/26256 x 256Loc: -30.00 mm Thick: 5.00 mm';
|
||||||
cy.get('@viewportInfoBottomLeft').should('have.text', expectedText);
|
cy.get('@viewportInfoBottomLeft').should('have.text', expectedText);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -76,11 +75,11 @@ describe('OHIF Cornerstone Toolbar', () => {
|
|||||||
|
|
||||||
//drags the mouse inside the viewport to be able to interact with series
|
//drags the mouse inside the viewport to be able to interact with series
|
||||||
cy.get('@viewport')
|
cy.get('@viewport')
|
||||||
.trigger('mousedown', 'top', { which: 1 })
|
.trigger('mousedown', 'center', { which: 1 })
|
||||||
.trigger('mousemove', 'center', { which: 1 })
|
.trigger('mousemove', 'top', { which: 1 })
|
||||||
.trigger('mouseup');
|
.trigger('mouseup');
|
||||||
|
|
||||||
const expectedText = 'Zoom: 884%W: 820 L: 410Lossless / Uncompressed';
|
const expectedText = 'Zoom: 50%W: 958 L: 479Lossless / Uncompressed';
|
||||||
cy.get('@viewportInfoBottomRight').should('have.text', expectedText);
|
cy.get('@viewportInfoBottomRight').should('have.text', expectedText);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -94,14 +93,14 @@ describe('OHIF Cornerstone Toolbar', () => {
|
|||||||
|
|
||||||
//drags the mouse inside the viewport to be able to interact with series
|
//drags the mouse inside the viewport to be able to interact with series
|
||||||
cy.get('@viewport')
|
cy.get('@viewport')
|
||||||
.trigger('mousedown', 'top', { which: 1 })
|
.trigger('mousedown', 'center', { which: 1 })
|
||||||
.trigger('mousemove', 'center', { which: 1 })
|
.trigger('mousemove', 'top', { which: 1 })
|
||||||
.trigger('mouseup')
|
.trigger('mouseup')
|
||||||
.trigger('mousedown', 'center', { which: 1 })
|
.trigger('mousedown', 'center', { which: 1 })
|
||||||
.trigger('mousemove', 'left', { which: 1 })
|
.trigger('mousemove', 'left', { which: 1 })
|
||||||
.trigger('mouseup');
|
.trigger('mouseup');
|
||||||
|
|
||||||
const expectedText = 'Zoom: 211%W: 544 L: 626Lossless / Uncompressed';
|
const expectedText = 'Zoom: 211%W: 635 L: 226Lossless / Uncompressed';
|
||||||
cy.get('@viewportInfoBottomRight').should('have.text', expectedText);
|
cy.get('@viewportInfoBottomRight').should('have.text', expectedText);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -197,7 +196,7 @@ describe('OHIF Cornerstone Toolbar', () => {
|
|||||||
//Click on reset button
|
//Click on reset button
|
||||||
cy.get('@resetBtn').click();
|
cy.get('@resetBtn').click();
|
||||||
|
|
||||||
const expectedText = 'Zoom: 211%W: 820 L: 410Lossless / Uncompressed';
|
const expectedText = 'Zoom: 211%W: 958 L: 479Lossless / Uncompressed';
|
||||||
cy.get('@viewportInfoBottomRight').should('have.text', expectedText);
|
cy.get('@viewportInfoBottomRight').should('have.text', expectedText);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -44,7 +44,8 @@ Cypress.Commands.add('openStudy', patientName => {
|
|||||||
cy.wait('@getStudies');
|
cy.wait('@getStudies');
|
||||||
cy.get('#studyListData .studylistStudy', { timeout: 5000 })
|
cy.get('#studyListData .studylistStudy', { timeout: 5000 })
|
||||||
.contains(patientName)
|
.contains(patientName)
|
||||||
.first().click();
|
.first()
|
||||||
|
.click({ force: true });
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in new issue
Block a user