-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added pdf tests for Lyrasis and Palace
- Loading branch information
AEkaterina
committed
Sep 5, 2023
1 parent
5b7d70f
commit 83bd424
Showing
15 changed files
with
1,007 additions
and
252 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
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,212 @@ | ||
Feature: Read PDF in LYRASIS Reads on Android | ||
|
||
Background: | ||
Given Close tutorial screen | ||
Then Welcome screen is opened | ||
When Close welcome screen | ||
Then Add library screen is opened | ||
When Add library "LYRASIS Reads" on Add library screen | ||
Then Library "LYRASIS Reads" is opened on Libraries screen | ||
When Enter credentials for 'LYRASIS Reads' library | ||
Then Login is performed successfully | ||
When Open Catalog | ||
|
||
@logout @returnBooks @tier1 @exclude_ios | ||
Scenario: Check of book title | ||
When Open search modal | ||
And Search 'available' book of distributor 'Biblioboard' and bookType 'EBOOK' and save as 'bookNameInfo' | ||
And Click GET action button on EBOOK book with 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo' | ||
Then EBOOK book with READ action button and 'bookInfo' bookInfo is present on Catalog books screen | ||
When Open EBOOK book with READ action button and 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo' | ||
And Click READ action button on Book details screen | ||
Then Reader pdf screen is opened | ||
And The book name is 'bookNameInfo' on pdf reader screen | ||
|
||
|
||
@logout @returnBooks @tier1 @exclude_ios | ||
Scenario: Check of settings screen and page navigation in Lyrasis | ||
When Open search modal | ||
And Search 'available' book of distributor 'Biblioboard' and bookType 'EBOOK' and save as 'bookNameInfo' | ||
And Click GET action button on EBOOK book with 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo' | ||
Then EBOOK book with READ action button and 'bookInfo' bookInfo is present on Catalog books screen | ||
When Open EBOOK book with READ action button and 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo' | ||
And Click READ action button on Book details screen | ||
Then Reader pdf screen is opened | ||
When Save the number of the last page as 'lastPageInfo' on pdf reader screen | ||
And Open pdf settings screen on pdf reader screen | ||
When Tap Go to last page button on pdf settings screen | ||
Then Page number is equal to 'lastPageInfo' on pdf reader screen | ||
When Open pdf settings screen on pdf reader screen | ||
Then PDF settings screen is opened | ||
When Tap Go to first page button on pdf settings screen | ||
Then The first page is opened on pdf reader screen | ||
|
||
@logout @returnBooks @tier1 @exclude_ios | ||
Scenario: Settings: Check of Vertical scrolling in Lyrasis | ||
When Open search modal | ||
And Search 'available' book of distributor 'Biblioboard' and bookType 'EBOOK' and save as 'bookNameInfo' | ||
And Click GET action button on EBOOK book with 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo' | ||
Then EBOOK book with READ action button and 'bookInfo' bookInfo is present on Catalog books screen | ||
When Open EBOOK book with READ action button and 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo' | ||
And Click READ action button on Book details screen | ||
Then Reader pdf screen is opened | ||
When Open pdf settings screen on pdf reader screen | ||
And Tap Vertical scrolling on pdf settings screen | ||
And Open pdf settings screen on pdf reader screen | ||
Then Vertical scrolling is chosen on settings screen | ||
And Spreads options are available on settings screen | ||
When Open pdf settings screen on pdf reader screen | ||
And Save page number as 'pageInfo' on pdf reader screen | ||
And Scroll page down on pdf reader screen | ||
Then Page number is not equal to 'pageInfo' on pdf reader screen | ||
When Save page number as 'pageInfo2' on pdf reader screen | ||
And Scroll page up on pdf reader screen | ||
Then Page number is not equal to 'pageInfo2' on pdf reader screen | ||
|
||
@logout @returnBooks @tier1 @exclude_ios | ||
Scenario: Settings: Check of Horizontal scrolling in Lyrasis | ||
When Open search modal | ||
And Search 'available' book of distributor 'Biblioboard' and bookType 'EBOOK' and save as 'bookNameInfo' | ||
And Click GET action button on EBOOK book with 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo' | ||
Then EBOOK book with READ action button and 'bookInfo' bookInfo is present on Catalog books screen | ||
When Open EBOOK book with READ action button and 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo' | ||
And Click READ action button on Book details screen | ||
Then Reader pdf screen is opened | ||
When Open pdf settings screen on pdf reader screen | ||
And Tap Horizontal scrolling on pdf settings screen | ||
And Open pdf settings screen on pdf reader screen | ||
Then Horizontal scrolling is chosen on settings screen | ||
And Spreads options are not available on settings screen | ||
When Open pdf settings screen on pdf reader screen | ||
And Save page number as 'pageInfo' on pdf reader screen | ||
And Go to next page on reader pdf screen | ||
Then Page number is not equal to 'pageInfo' on pdf reader screen | ||
When Save page number as 'pageInfo2' on pdf reader screen | ||
And Go to previous page on reader pdf screen | ||
Then Page number is not equal to 'pageInfo2' on pdf reader screen | ||
|
||
@logout @returnBooks @tier1 @exclude_ios | ||
Scenario: Settings: Check of Wrapped scrolling in Lyrasis | ||
When Open search modal | ||
And Search 'available' book of distributor 'Biblioboard' and bookType 'EBOOK' and save as 'bookNameInfo' | ||
And Click GET action button on EBOOK book with 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo' | ||
Then EBOOK book with READ action button and 'bookInfo' bookInfo is present on Catalog books screen | ||
When Open EBOOK book with READ action button and 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo' | ||
And Click READ action button on Book details screen | ||
Then Reader pdf screen is opened | ||
When Open pdf settings screen on pdf reader screen | ||
And Tap Wrapped scrolling on pdf settings screen | ||
And Open pdf settings screen on pdf reader screen | ||
Then Wrapped scrolling is chosen on settings screen | ||
And Spreads options are available on settings screen | ||
When Open pdf settings screen on pdf reader screen | ||
And Save page number as 'pageInfo' on pdf reader screen | ||
And Go to next page on reader pdf screen | ||
Then Page number is not equal to 'pageInfo' on pdf reader screen | ||
When Save page number as 'pageInfo2' on pdf reader screen | ||
And Go to previous page on reader pdf screen | ||
Then Page number is not equal to 'pageInfo2' on pdf reader screen | ||
|
||
@ignore @logout @returnBooks @tier1 @exclude_ios | ||
Scenario: Open book to last page read in Lyrasis | ||
When Open search modal | ||
And Search 'available' book of distributor 'Biblioboard' and bookType 'EBOOK' and save as 'bookNameInfo' | ||
And Click GET action button on EBOOK book with 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo' | ||
Then EBOOK book with READ action button and 'bookInfo' bookInfo is present on Catalog books screen | ||
When Open EBOOK book with READ action button and 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo' | ||
And Click READ action button on Book details screen | ||
Then Reader pdf screen is opened | ||
When Swipe pdf page down from 7 to 10 times on reader pdf screen | ||
And Save page number as 'pageNumber' on pdf reader screen | ||
And Return to previous screen for epub and pdf | ||
And Click READ action button on Book details screen | ||
Then Reader pdf screen is opened | ||
And Page number is equal to 'pageNumber' on pdf reader screen | ||
When Restart app | ||
And Open Books | ||
Then EBOOK book with READ action button and 'bookInfo' bookInfo is present on books screen | ||
When Open EBOOK book with READ action button and 'bookInfo' bookInfo on books screen | ||
And Click READ action button on Book details screen | ||
Then Reader pdf screen is opened | ||
And Page number is equal to 'pageNumber' on pdf reader screen | ||
|
||
@smoke @logout @returnBooks @exclude_ios | ||
Scenario: Android: Read pdfs: Table of contents: Perform check of navigation of TOC button | ||
When Close tutorial screen | ||
Then Welcome screen is opened | ||
When Close welcome screen | ||
Then Add library screen is opened | ||
When Add library "LYRASIS Reads" on Add library screen | ||
Then Library "LYRASIS Reads" is opened on Libraries screen | ||
When Enter credentials for 'LYRASIS Reads' library | ||
Then Login is performed successfully | ||
When Activate sync bookmarks on Sign in screen | ||
And Open Catalog | ||
And Open search modal | ||
And Search for "Comprehension and Critical Thinking Grade 6" and save bookName as 'bookNameInfo' | ||
And Click GET action button on EBOOK book with 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo' | ||
Then EBOOK book with READ action button and 'bookInfo' bookInfo is present on Catalog books screen | ||
When Open EBOOK book with READ action button and 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo' | ||
And Click READ action button on Book details screen | ||
Then Reader pdf screen is opened | ||
When Open TOC on pdf reader screen | ||
Then There are content list with thumbnails and chapter content on pdf toc screen | ||
When Return to pdf reader screen from pdf toc screen | ||
Then PDF toc screen is closed | ||
When Open TOC on pdf reader screen | ||
And Open TOC on pdf reader screen | ||
Then PDF toc screen is closed | ||
When Open TOC on pdf reader screen | ||
And Close pdf toc screen by back button | ||
Then PDF toc screen is closed | ||
|
||
@smoke @logout @returnBooks @exclude_ios | ||
Scenario: Android: Read pdfs: Perform check of Settings | ||
When Close tutorial screen | ||
Then Welcome screen is opened | ||
When Close welcome screen | ||
Then Add library screen is opened | ||
When Add library "LYRASIS Reads" on Add library screen | ||
Then Library "LYRASIS Reads" is opened on Libraries screen | ||
When Enter credentials for 'LYRASIS Reads' library | ||
Then Login is performed successfully | ||
When Activate sync bookmarks on Sign in screen | ||
And Open Catalog | ||
And Open search modal | ||
And Search for "Comprehension and Critical Thinking Grade 6" and save bookName as 'bookNameInfo' | ||
And Click GET action button on EBOOK book with 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo' | ||
Then EBOOK book with READ action button and 'bookInfo' bookInfo is present on Catalog books screen | ||
When Open EBOOK book with READ action button and 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo' | ||
And Click READ action button on Book details screen | ||
Then Reader pdf screen is opened | ||
When Open pdf settings screen on pdf reader screen | ||
Then PDF settings screen is opened | ||
|
||
@smoke @logout @returnBooks @exclude_ios | ||
Scenario: Android: Read pdfs: Perform check of scrolling by default (down and up) | ||
When Close tutorial screen | ||
Then Welcome screen is opened | ||
When Close welcome screen | ||
Then Add library screen is opened | ||
When Add library "LYRASIS Reads" on Add library screen | ||
Then Library "LYRASIS Reads" is opened on Libraries screen | ||
When Enter credentials for 'LYRASIS Reads' library | ||
Then Login is performed successfully | ||
When Activate sync bookmarks on Sign in screen | ||
And Open Catalog | ||
And Open search modal | ||
And Search for "Comprehension and Critical Thinking Grade 6" and save bookName as 'bookNameInfo' | ||
And Click GET action button on EBOOK book with 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo' | ||
Then EBOOK book with READ action button and 'bookInfo' bookInfo is present on Catalog books screen | ||
When Open EBOOK book with READ action button and 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo' | ||
And Click READ action button on Book details screen | ||
Then Reader pdf screen is opened | ||
When Save page number as 'pageInfo' on pdf reader screen | ||
And Open pdf settings screen on pdf reader screen | ||
Then Vertical scrolling is chosen by default on settings screen | ||
When Open pdf settings screen on pdf reader screen | ||
And Scroll page down on pdf reader screen | ||
Then Page number is not equal to 'pageInfo' on pdf reader screen | ||
When Save page number as 'pageInfo2' on pdf reader screen | ||
And Scroll page up on pdf reader screen | ||
Then Page number is not equal to 'pageInfo2' on pdf reader screen |
Oops, something went wrong.