From 0cc7df5a0d846e67387d242a56f383bf2df3170d Mon Sep 17 00:00:00 2001 From: annekauf <151649251+annekauf@users.noreply.github.com> Date: Tue, 7 May 2024 16:36:35 +0200 Subject: [PATCH] two more tests African American Review close #75 see #25 close #78 --- cypress/e2e/nested.cy.js | 38 +++++++++++++++++++++++++++++++------- 1 file changed, 31 insertions(+), 7 deletions(-) diff --git a/cypress/e2e/nested.cy.js b/cypress/e2e/nested.cy.js index 19a5f8b..c05b68a 100644 --- a/cypress/e2e/nested.cy.js +++ b/cypress/e2e/nested.cy.js @@ -1,6 +1,6 @@ describe('Nested Work', () => { // see #8 - describe('African American Review', () => { + describe('African American Review -All', () => { // Title search and online access false to limit noise // check if exact match first list item is the journal parent and subsequent entries are child works // a more elaborate test would compare the value of '.record-number' within the same family @@ -9,14 +9,14 @@ describe('Nested Work', () => { url: '/Results', qs: { lookfor: 'African American Review', - type: 'Title', + type: 'allFields', "filter[]": '~remote_bool:"false"' } }) }) // see #25 - it('should appear before child work', () => { + it.skip('should appear before child work', () => { cy.get('#result0') .find('.media-type') .contains(' Zeitschrift (gedruckt) ') @@ -26,21 +26,21 @@ describe('Nested Work', () => { }) }) - describe('African American Review', () => { + describe('African American Review -Journal', () => { // check if exact match first list item is the journal parent and subsequent entries are child works + // see #75 beforeEach(() => { cy.visit({ url: '/Results', qs: { lookfor: 'African American Review', - type: 'JournalSearch' - + type: 'JournalSearch', + "filter[]": '~remote_bool:"false"' } }) }) - // see #25 it('should appear before child work', () => { cy.get('#result0') .find('.media-type') @@ -50,6 +50,30 @@ describe('Nested Work', () => { .contains(' Band einer Zeitschrift/Zeitung ') }) }) + + describe('African American Review -Title', () => { + // check if exact match first list item is the journal parent and subsequent entries are child works + + beforeEach(() => { + cy.visit({ + url: '/Results', + qs: { + lookfor: 'African American Review', + type: 'title', + "filter[]": '~remote_bool:"false"' + } + }) + }) + + it.skip('should appear before child work', () => { + cy.get('#result0') + .find('.media-type') + .contains(' Zeitschrift (gedruckt) ') + cy.get('#result1') + .find('.media-type') + .contains(' Band einer Zeitschrift/Zeitung ') + }) + }) describe('Nachrichten Organ Bergbau Hüttenbetrieb', () => { beforeEach(() => {