-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
close #7
- Loading branch information
Showing
1 changed file
with
21 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,166 +1,22 @@ | ||
const YAML = require('yamljs') | ||
|
||
|
||
describe.skip('known item searches', () => { | ||
// If using Testserver visit page | ||
// before(() => { | ||
// cy.readFile('vufind/searchspecs.yaml').then((str) => { | ||
// parse the string into object literal | ||
// const searchspec = YAML.parse(str) | ||
// }) | ||
|
||
it('Newer should be higher', () => { | ||
cy.visit('/', { | ||
qs: { | ||
q: 'Klaus Hurrelmann, Gudrun Quenzel: Lebensphase Jugend' | ||
}, | ||
}) | ||
}) | ||
|
||
it('Newer should be higher', () => { | ||
cy.visit('/', { | ||
qs: { | ||
q: 'Lehrbuch Organisationspsychologie' | ||
}, | ||
}) | ||
}) | ||
|
||
// it('Parent before child', () => { | ||
// cy.visit('/', { | ||
// qs: { | ||
// q: 'African American Review' | ||
// }, | ||
// }) | ||
// }) | ||
|
||
it('child should be first when child is searched', () => { | ||
cy.visit('/', { | ||
qs: { | ||
q: 'Journal of Comparative Law 2021' | ||
}, | ||
}) | ||
}) | ||
|
||
it('Newest is first', () => { | ||
cy.visit('/', { | ||
qs: { | ||
q: 'Alois Hahn Konstruktionen des Selbst' | ||
}, | ||
}) | ||
}) | ||
|
||
it('primary before secondar work', () => { | ||
cy.visit('/', { | ||
qs: { | ||
q: 'Die Organisierte Welt Internationale Beziehungen und Organisationsforschung' | ||
}, | ||
}) | ||
}) | ||
|
||
it('primary before secondar work', () => { | ||
cy.visit('/', { | ||
qs: { | ||
q: 'Young, Iris Marion (2002): Inclusion and Democracy. Oxford: Oxford University Press' | ||
}, | ||
}) | ||
}) | ||
it('dupes', () => { | ||
cy.visit('/', { | ||
qs: { | ||
q: 'The Law of nature in the thought of Hugo grotius' | ||
}, | ||
}) | ||
}) | ||
it('exactness (mm)', () => { | ||
cy.visit('/', { | ||
qs: { | ||
q: 'Boundary and the Making of Home' | ||
}, | ||
}) | ||
}) | ||
|
||
it('author all fields', () => { | ||
cy.visit('/', { | ||
qs: { | ||
q: 'glaser karin' | ||
}, | ||
}) | ||
}) | ||
it('primary before secondar work', () => { | ||
cy.visit('/', { | ||
qs: { | ||
q: '36 strategeme harro von senger' | ||
}, | ||
}) | ||
}) | ||
it('linguistic context cjk', () => { | ||
cy.visit('/', { | ||
qs: { | ||
q: '阎连科' | ||
}, | ||
}) | ||
}) | ||
it('passes', () => { | ||
cy.visit('/', { | ||
qs: { | ||
q: 'Samuel Scheidt' | ||
}, | ||
}) | ||
}) | ||
it('passes', () => { | ||
cy.visit('/', { | ||
qs: { | ||
q: 'Karte von Tschili und Schantung' | ||
}, | ||
}) | ||
}) | ||
it('primary before secondar work', () => { | ||
cy.visit('/', { | ||
qs: { | ||
q: 'Liberty manik' | ||
}, | ||
}) | ||
}) | ||
it('Pro Print', () => { | ||
cy.visit('/', { | ||
qs: { | ||
q: 'Sadeleer, Environmental principles. From political slogans to legal rules' | ||
}, | ||
}) | ||
}) | ||
it('passes', () => { | ||
cy.visit('/', { | ||
qs: { | ||
q: 'Selam Berlin Yade Kara' | ||
}, | ||
}) | ||
}) | ||
it('strict search', () => { | ||
cy.visit('/', { | ||
qs: { | ||
q: '"Corte, Justine del"' | ||
}, | ||
}) | ||
}) | ||
it('parent before child', () => { | ||
cy.visit('/', { | ||
qs: { | ||
q: 'Allg. polit. Nachrichten Organ Bergbau Hüttenbetrieb 1858-' | ||
}, | ||
}) | ||
}) | ||
it('passes', () => { | ||
cy.visit('/', { | ||
qs: { | ||
q: 'Die Organisierte Welt Internationale Beziehungen und Organisationsforschung' | ||
}, | ||
}) | ||
}) | ||
it('data poverty', () => { | ||
cy.visit('/', { | ||
qs: { | ||
q: 'Eight International Congress of Refrigeration' | ||
}, | ||
}) | ||
}) | ||
describe('known item searches', () => { | ||
// see #7 | ||
// see https://forum.sbb.spk-berlin.de/t/warum-erscheinen-diese-treffer-fur-meine-anfrage/5599 | ||
|
||
describe('Metzler-Lexikon Theatertheorie', () => { | ||
beforeEach(() => { | ||
cy.visit({ | ||
url: '/Results', | ||
qs: { | ||
lookfor: 'Metzler-Lexikon Theatertheorie', | ||
type: 'allFields' | ||
} | ||
}) | ||
}) | ||
|
||
// I don't understand the reasoning behind the requirement | ||
it('should find exactly two matches', () => { | ||
cy.get('[id*="result"]') | ||
.should('have.length', 2) | ||
}) | ||
}) | ||
}) |