Skip to content

Commit

Permalink
add functional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
amdomanska committed Nov 27, 2023
1 parent 11c2e8e commit 1e19aaa
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions doajtest/testbook/public_site/home_page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,31 @@ tests:
- step: Click enter
results:
- Focus is moved to the main content
- title: Test minisearch section
context:
role: anonymous
steps:
- step: Go to the landing page
- step: Click "Journals" radio button
- step: Open "In all fields" dropdown
results:
- Options Title, ISSN, Subject, Publisher and Country of Publisher are available
- step: Choose "Articles" radio button
- step: Open "In all fields" dropdown
results:
- Options Title, Abstract, Subject and Author are available
- step: perform search of Journal (eg. "Medicine", "Title")
results:
- You are redirected to /search/journals results page
- The top search fields are filled with the current query
- Correct search results are displayed
- step: perform search of Article (eg. "Medicine", "Title")
results:
- You are redirected to /search/articles results page
- The top search fields are filled with the current query
- Correct search results are displayed
- step: repeat searches for different fields
results:
- Each time correct results page is displayed


0 comments on commit 1e19aaa

Please sign in to comment.