diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 043eb20..48a3509 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,6 +23,9 @@ jobs: uses: cypress-io/github-action@v6 with: build: npm install - config: baseUrl=https://stabikat.de/ - spec: cypress/e2e/spec.cy.js + config: baseUrl=https://stabikat.de/search/ + spec: | + cypress/e2e/spec.cy.js + cypress/e2e/reviews.cy.js + cypress/e2e/nested.cy.js # browser: firefox \ No newline at end of file diff --git a/cypress/e2e/nested.cy.js b/cypress/e2e/nested.cy.js index 7ecce94..93a45a3 100644 --- a/cypress/e2e/nested.cy.js +++ b/cypress/e2e/nested.cy.js @@ -15,7 +15,8 @@ describe('Nested Work', () => { }) }) - it('should appear before child work', () => { + // see #25 + it.skip('should appear before child work', () => { cy.get('#result0') .find('.media-type') .contains(' Zeitschrift (gedruckt) ') @@ -64,8 +65,8 @@ describe('Nested Work', () => { .should('exist') }) - // TODO(DP): failing is this desirable? - it('parent work should appear in initial results', () => { + // see #25 + it.skip('parent work should appear in initial results', () => { cy.get('[href*="521689139"]') .should('exist') }) diff --git a/cypress/e2e/reviews.cy.js b/cypress/e2e/reviews.cy.js index b91d196..f772ee1 100644 --- a/cypress/e2e/reviews.cy.js +++ b/cypress/e2e/reviews.cy.js @@ -19,7 +19,7 @@ describe('Review after reviewed', () => { .should('exist') }) - // TODO(DP): failing + // see #26 it.skip('first hit should not be a review', () => { cy.get('#result0') .contains('Strategeme') @@ -92,14 +92,14 @@ describe('Review after reviewed', () => { }) // PPN 315776242 - // TODO(DP): failing - it('first hit matches exact title', () => { + // see #26 + it.skip('first hit matches exact title', () => { cy.get('#result0') .find('[href*="315776242"]') .should('exist') }) - it.only('second hit should be a review', () => { + it('second hit should be a review', () => { cy.get('#result1') .should('exist') .contains('Review')