Skip to content

Commit

Permalink
test: rewrite e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoniePeters committed Jan 31, 2025
1 parent 93eda9d commit 215a6bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions tests/e2e/docker/nightwatch/support/pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const pages = {
'gallery foyer page': `${url}/en/galleries`,
'home page': `${url}/en`,
'Newspapers theme search page': `${url}/en/search?qf=collection%3Anewspaper`,
'newspaper entity page': `${url}/en/collections/topic/18-newspaper`,
'immersive story page': `${url}/en/stories/melitta-bentz-the-woman-who-invented-the-coffee-filter`,
'item page with a IIIF Image': `${url}/en/item/9200357/BibliographicResource_3000095247457`,
'item page with a IIIF Presentation': `${url}/en/item/9200301/BibliographicResource_3000126341277`,
Expand Down
6 changes: 3 additions & 3 deletions tests/e2e/features/search/advanced.feature
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ Feature: Advanced search
And I am on an accessible page

Scenario: Full-text search on a collection page shows hit highlights
When I open an `entity page`
When I open the `newspaper entity page`
And I click the `search list view toggle icon`
When I click the `toggle advanced search button`
And I enter "paris" in the `advanced search query builder: term control`
And I enter "berlin" in the `advanced search query builder: term control`
And I click the `advanced search query builder: field control`
And I click the `advanced search query builder: fulltext field option`
And I click the `advanced search query builder: modifier control`
And I click the `advanced search query builder: exact modifier option`
And I wait for an `item preview`
Then I see a `highlighted search term` with the text "paris"
Then I see a `highlighted search term` with the text "Berlin"
And I am on an accessible page

0 comments on commit 215a6bc

Please sign in to comment.