Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

two more tests African American Review #112

Merged
merged 2 commits into from
Oct 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 51 additions & 2 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,7 +9,7 @@ describe('Nested Work', () => {
url: '/Results',
qs: {
lookfor: 'African American Review',
type: 'Title',
type: 'allFields',
"filter[]": '~remote_bool:"false"'
}
})
Expand All @@ -25,6 +25,55 @@ describe('Nested Work', () => {
.contains(' Band einer Zeitschrift/Zeitung ')
})
})

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',
"filter[]": '~remote_bool:"false"'
}
})
})

it('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('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('should appear before child work', {tags: ['@next']}, () => {
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