Skip to content

Commit

Permalink
two more tests
Browse files Browse the repository at this point in the history
African American Review
close #75
see #25
close #78
  • Loading branch information
annekauf committed May 7, 2024
1 parent 7ffbc0a commit 268c0be
Showing 1 changed file with 31 additions and 7 deletions.
38 changes: 31 additions & 7 deletions cypress/e2e/nested.cy.js
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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) ')
Expand All @@ -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')
Expand All @@ -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(() => {
Expand Down

0 comments on commit 268c0be

Please sign in to comment.