* Creates E2E tests using Cypress and includes two tests * Improves yarn.lock file * Includes documentation * Cypress project id * test e2e w/ ci and video * run unit command before e2e * Also cache cypress * Persist cypress to next build step * Try a different path * Try without working dir * Persist less data, but restore yarn/cypress cache in next step * Install cypress to invalidate cache * Add e2e as a blocker for merged publishing
17 lines
434 B
JavaScript
17 lines
434 B
JavaScript
describe('OHIFStandaloneViewer', () => {
|
|
beforeEach(() => {
|
|
cy.visit('/');
|
|
});
|
|
|
|
it('loads route with at least 2 rows', () => {
|
|
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');
|
|
});
|
|
});
|