2019-06-22 16:02:07 +02:00
|
|
|
describe('OHIFStandaloneViewer', () => {
|
|
|
|
|
beforeEach(() => {
|
|
|
|
|
cy.visit('/');
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
it('loads route with at least 2 rows', () => {
|
2019-10-15 19:09:14 +02:00
|
|
|
cy.screenshot();
|
2019-10-15 20:52:23 +02:00
|
|
|
cy.percySnapshot();
|
|
|
|
|
|
2019-06-22 16:02:07 +02:00
|
|
|
cy.get('#studyListData tr')
|
|
|
|
|
.its('length')
|
|
|
|
|
.should('be.gt', 2);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
it('first 2 rows has values', () => {
|
|
|
|
|
cy.get('#studyListData > :nth-child(1) > .patientId').should('be.visible');
|
|
|
|
|
cy.get('#studyListData > :nth-child(2) > .patientId').should('be.visible');
|
|
|
|
|
});
|
|
|
|
|
});
|