ohif-viewer/platform/viewer/cypress/integration/common/OHIFStandaloneViewer.spec.js
Danny Brown 8a7706b286
test: percy visual testing (#1053)
* test: percy visual testing init

* Try PR checks with custom command

* Only run percy visual tests for PWA on merge for now
2019-10-15 14:52:23 -04:00

20 lines
480 B
JavaScript

describe('OHIFStandaloneViewer', () => {
beforeEach(() => {
cy.visit('/');
});
it('loads route with at least 2 rows', () => {
cy.screenshot();
cy.percySnapshot();
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');
});
});