Skip to content

Commit

Permalink
added pdf tests for Lyrasis and Palace
Browse files Browse the repository at this point in the history
  • Loading branch information
AEkaterina committed Sep 5, 2023
1 parent 5b7d70f commit 83bd424
Show file tree
Hide file tree
Showing 15 changed files with 1,007 additions and 252 deletions.
51 changes: 50 additions & 1 deletion src/test/java/features/AudiobookLyrasis.feature
Original file line number Diff line number Diff line change
Expand Up @@ -322,4 +322,53 @@ Feature: Audiobooks in LYRASIS Reads
And Save the name of chapter as 'chapterName' on audio player screen
And Open toc audiobook screen
And Open Bookmarks on toc audiobook screen
Then Bookmark for the chapter 'chapterName' with the time 'chapterTime' is saved on Bookmarks screen
Then Bookmark for the chapter 'chapterName' with the time 'chapterTime' is saved on Bookmarks screen

@smoke @logout @returnBooks
Scenario: Audiobooks: Perform check of Listen and Back button
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 Activate sync bookmarks on Sign in screen
And Open Catalog
And Open search modal
And Search for "Down The Hatch" and save bookName as 'bookNameInfo'
And Switch to 'Audiobooks' catalog tab
And Open AUDIOBOOK book with GET action button and 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo'
And Click GET action button on Book details screen
Then Check that book contains LISTEN action button on Book details screen
When Click LISTEN action button on Book details screen
Then Audio player screen of book 'bookInfo' is opened
When Return to previous screen from audio player screen
Then Book 'bookInfo' is opened on book details screen

@smoke @logout @returnBooks
Scenario: Audiobooks: Perform check of Play button and Pause buttons
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 Activate sync bookmarks on Sign in screen
And Open Catalog
And Open search modal
And Search for "Down The Hatch" and save bookName as 'bookNameInfo'
And Switch to 'Audiobooks' catalog tab
And Open AUDIOBOOK book with GET action button and 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo'
And Click GET action button on Book details screen
Then Check that book contains LISTEN action button on Book details screen
When Click LISTEN action button on Book details screen
Then Audio player screen of book 'bookInfo' is opened
When Tap play button on audio player screen
Then Pause button is present on audio player screen
When Tap pause button on audio player screen
Then Play button is present on audio player screen
And Book is not playing on audio player screen
212 changes: 212 additions & 0 deletions src/test/java/features/PdfLyrasisAndroid.feature
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
Loading

0 comments on commit 83bd424

Please sign in to comment.