-
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.
- Loading branch information
Showing
4 changed files
with
70 additions
and
70 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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
describe('Foreign language phrase search', () => { | ||
// See #6 | ||
// Thematische Suche#L30 | ||
it('en all fields query matches en not ar', () => { | ||
cy.visit({ | ||
url: '/Results', | ||
qs: { | ||
lookfor: 'Egyptian Language', | ||
type: 'AllFields' | ||
} | ||
}) | ||
cy.get('.resultlist') | ||
// PPN JST063665204 | ||
.contains('The Egyptian Language') | ||
cy.get('.resultlist') | ||
// PPN DOAJ008736839 | ||
.should('not.contain', 'المعانی الثانیة للأمر فی النص المصری القدیم دراسة بلاغیة مقارنة ') | ||
|
||
}) | ||
|
||
it('en subject query matches en and ar', () => { | ||
cy.visit({ | ||
url: '/Results', | ||
qs: { | ||
lookfor: 'Egyptian Language', | ||
type: 'Subject' | ||
} | ||
}) | ||
cy.get('.resultlist') | ||
// PPN JST063665204 | ||
.contains('The Egyptian Language') | ||
cy.get('.resultlist') | ||
// PPN DOAJ008736839 | ||
.contains('المعانی الثانیة للأمر فی النص المصری القدیم دراسة بلاغیة مقارنة ') | ||
|
||
}) | ||
}) |
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
describe('Parent Work', () => { | ||
// see #8 | ||
describe("African American Review", () => { | ||
// 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 | ||
before(() => { | ||
cy.visit({ | ||
url: '/Results', | ||
qs: { | ||
lookfor: 'African American Review', | ||
type: 'Title', | ||
"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 ') | ||
}) | ||
}) | ||
}) |
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
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