Skip to content

Commit

Permalink
Merge pull request #15 from ThePalaceProject/refactoring_ios
Browse files Browse the repository at this point in the history
Refactoring palace runs
  • Loading branch information
AEkaterina authored Oct 13, 2023
2 parents eef675c + c4c5c63 commit ff00849
Show file tree
Hide file tree
Showing 35 changed files with 371 additions and 331 deletions.
18 changes: 9 additions & 9 deletions src/test/java/features/AudiobookOverdrive.feature
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Feature: Audiobooks in A1QA library
When Open Catalog
And Open search modal

@logout @returnBooks @tier2
@logout @returnBooks @palace
Scenario: Audiobooks: Open the audiobook at the last open chapter and check time code
When Search for "Catching Fire" and save bookName as 'bookNameInfo'
And Switch to 'Audiobooks' catalog tab
Expand Down Expand Up @@ -56,7 +56,7 @@ Feature: Audiobooks in A1QA library
And Chapter name on audio player screen is equal to 'chapterNameKey2' saved chapter name
And Play time is the same with 'timeAhead' play time before restart on books detail screen

@logout @returnBooks @tier2
@logout @returnBooks @palace
Scenario: Audiobooks: Navigate by Audiobook
When Search for "The Hunger Games" and save bookName as 'bookNameInfo'
And Switch to 'Audiobooks' catalog tab
Expand All @@ -82,7 +82,7 @@ Feature: Audiobooks in A1QA library
Then Play button is present on audio player screen
And Playback has been moved behind by 15 seconds from 'timeBehind' and 'chapterTimeKey' seconds on audio player screen

@logout @returnBooks @tier2
@logout @returnBooks @palace
Scenario: Audiobooks: Check end of chapter sleep timer
When Search for "Waking the Tiger" and save bookName as 'bookNameInfo'
And Switch to 'Audiobooks' catalog tab
Expand All @@ -102,7 +102,7 @@ Feature: Audiobooks in A1QA library
And Open toc audiobook screen
Then Chapter name next to 'chapterNumber' on toc audiobook screen is equal to 'nextChapter' saved chapter name

@logout @returnBooks @tier2 @exclude_android
@logout @returnBooks @palace @exclude_android
Scenario: Audiobooks: Check of line for time remaining
When Search for "Mockingjay" and save bookName as 'bookNameInfo'
And Switch to 'Audiobooks' catalog tab
Expand All @@ -113,7 +113,7 @@ Feature: Audiobooks in A1QA library
Then Audio player screen of book 'bookInfo' is opened
And Line for time remaining is displayed on audio player screen

@logout @returnBooks @tier2
@logout @returnBooks @palace
Scenario: Audiobooks: Check of switching to the next chapter
When Search for "The King's Taster" and save bookName as 'bookNameInfo'
And Switch to 'Audiobooks' catalog tab
Expand All @@ -128,7 +128,7 @@ Feature: Audiobooks in A1QA library
And Listen a chapter on audio player screen
Then Next chapter play automatically and chapter name is not 'chapterName' on audio player screen

@logout @returnBooks @tier2
@logout @returnBooks @palace
Scenario: Audiobooks: Check closing playback speed and sleep timer
When Search for "The Lost Symbol" and save bookName as 'bookNameInfo'
And Switch to 'Audiobooks' catalog tab
Expand All @@ -147,7 +147,7 @@ Feature: Audiobooks in A1QA library
And Close sleep timer screen
Then Play button is present on audio player screen

@logout @returnBooks @tier2
@logout @returnBooks @palace
Scenario: Audiobooks: Check time tracking line
When Search for "The Art of Racing in the Rain" and save bookName as 'bookNameInfo'
And Switch to 'Audiobooks' catalog tab
Expand All @@ -169,7 +169,7 @@ Feature: Audiobooks in A1QA library
And Wait for 5 seconds
Then Playing time is not equal to 'timeInfo2' on audio playing screen

@logout @returnBooks @tier2
@logout @returnBooks @palace
Scenario: Audiobooks: Check of not rewinding forward and back by tapping on time bar
When Search for "Master and Commander" and save bookName as 'bookNameInfo'
And Switch to 'Audiobooks' catalog tab
Expand All @@ -192,7 +192,7 @@ Feature: Audiobooks in A1QA library
And Save book play time as 'timeBackward' on audio player screen
Then Play times 'timeBehind' and 'timeBackward' are equals

@logout @returnBooks @tier2
@logout @returnBooks @palace
Scenario Outline: Audiobooks: Playback speed: Check of playback speed
When Search for "The Lightning Thief" and save bookName as 'bookNameInfo'
And Switch to 'Audiobooks' catalog tab
Expand Down
26 changes: 13 additions & 13 deletions src/test/java/features/BooksTransactions.feature
Original file line number Diff line number Diff line change
Expand Up @@ -11,40 +11,40 @@ Feature: Books transactions in Palace Bookshelf
And Open search modal
And Search for 'Flower Fables' and save bookName as 'bookNameInfo'

@tier2
@palace
Scenario: Check of GET button
Then Check that book 'bookNameInfo' contains GET action button on catalog book screen
When Click GET action button on EBOOK book with 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo'
Then Check that book 'bookNameInfo' contains READ action button on catalog book screen
And Check that book 'bookNameInfo' contains RETURN action button on catalog book screen

@tier2 @exclude_ios
@palace @exclude_ios
Scenario: Get a book from Subcategory List View and Return from Subcategory List View (ANDROID)
When Click GET action button on EBOOK book with 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo'
And Click RETURN action button on EBOOK book with 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo'
Then EBOOK book with GET action button and 'bookInfo' bookInfo is present on Catalog books screen

@tier2 @exclude_android
@palace @exclude_android
Scenario: Get a book Subcategory List View and Return from Subcategory List View (IOS)
When Click GET action button on EBOOK book with 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo'
And Click DELETE action button on EBOOK book with 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo'
Then EBOOK book with GET action button and 'bookInfo' bookInfo is present on Catalog books screen

@tier2 @exclude_ios
@palace @exclude_ios
Scenario: Get a book from Subcategory List View and Read from Subcategory List View (ANDROID)
When Click GET action button on EBOOK book with 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo'
And EBOOK book with READ action button and 'bookInfo' bookInfo is present on Catalog books screen
And Click READ action button on EBOOK book with 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo'
Then 'bookInfo' book is present on epub reader screen

@tier2 @exclude_android
@palace @exclude_android
Scenario: Get a book from Subcategory List View and Read from Subcategory List View (IOS)
When Click GET action button on EBOOK book with 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo'
And EBOOK book with READ action button and 'bookInfo' bookInfo is present on Catalog books screen
And Click READ action button on EBOOK book with 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo'
Then 'bookInfo' book is present on epub reader screen

@tier2 @exclude_ios
@palace @exclude_ios
Scenario: Get a book from Subcategory List View and Return from Books (ANDROID)
When Click GET action button on EBOOK book with 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo'
And Open Books
Expand All @@ -54,7 +54,7 @@ Feature: Books transactions in Palace Bookshelf
And Open Books
Then EBOOK book with GET action button and 'bookInfo' bookInfo is not present on books screen

@tier2 @exclude_android
@palace @exclude_android
Scenario: Get a book from Subcategory List View and Return from Books (IOS)
When Click GET action button on EBOOK book with 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo'
And Open Books
Expand All @@ -64,7 +64,7 @@ Feature: Books transactions in Palace Bookshelf
And Open Books
Then EBOOK book with GET action button and 'bookInfo' bookInfo is not present on books screen

@tier2 @exclude_ios
@palace @exclude_ios
Scenario: Get a book from Book Detail View and Return from Books (ANDROID)
When Open EBOOK 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
Expand All @@ -75,7 +75,7 @@ Feature: Books transactions in Palace Bookshelf
And Open Books
Then EBOOK book with GET action button and 'bookInfo' bookInfo is not present on books screen

@tier2 @exclude_android
@palace @exclude_android
Scenario: Get a book from Book Detail View and Return from Books (IOS)
When Open EBOOK 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
Expand All @@ -86,28 +86,28 @@ Feature: Books transactions in Palace Bookshelf
And Open Books
Then EBOOK book with GET action button and 'bookInfo' bookInfo is not present on books screen

@tier2 @exclude_ios
@palace @exclude_ios
Scenario: Get a book from Book Detail View and Return from Book Detail View (ANDROID)
When Open EBOOK 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
And Click RETURN action button on Book details screen
Then Check that book contains GET action button on Book details screen

@tier2 @exclude_android
@palace @exclude_android
Scenario: Get a book from Book Detail View and Return from Book Detail View (IOS)
When Open EBOOK 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
And Click DELETE action button on Book details screen
Then Check that book contains GET action button on Book details screen

@tier2 @exclude_ios
@palace @exclude_ios
Scenario: Get a book from Book Detail View and Read from Book Detail View (ANDROID)
When Open EBOOK 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
And Click READ action button on Book details screen
Then 'bookInfo' book is present on epub reader screen

@tier2 @exclude_android
@palace @exclude_android
Scenario: Get a book from Book Detail View and Read from Book Detail View (IOS)
When Open EBOOK 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
Expand Down
8 changes: 4 additions & 4 deletions src/test/java/features/Distributors.feature
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Feature: Distributors
| Biblioboard | EBOOK | eBooks | READ |
| Biblioboard | AUDIOBOOK | Audiobooks | LISTEN |

@logout @returnBooks @tier2
@logout @returnBooks @palace
Scenario: Getting and returning a book from Book Detail View for Overdrive
Given Close tutorial screen
Then Welcome screen is opened
Expand Down Expand Up @@ -95,7 +95,7 @@ Feature: Distributors
And Wait for 3 seconds
Then Book 'bookInfo' with EBOOK type is present on epub or pdf or audiobook screen

@logout @returnBooks @tier2
@logout @returnBooks @palace
Scenario: Getting and returning an audiobook from Book Detail View for Overdrive
Given Close tutorial screen
Then Welcome screen is opened
Expand Down Expand Up @@ -125,7 +125,7 @@ Feature: Distributors
And Wait for 3 seconds
Then Book 'bookInfo' with AUDIOBOOK type is present on epub or pdf or audiobook screen

@tier2
@palace
Scenario: Getting and returning a book from Book Detail View for Palace Bookshelf
Given Close tutorial screen
Then Welcome screen is opened
Expand Down Expand Up @@ -178,7 +178,7 @@ Feature: Distributors
| Biblioboard | EBOOK | eBooks |
| Biblioboard | AUDIOBOOK | Audiobooks |

@logout @returnBooks @tier2
@logout @returnBooks @palace
Scenario: Check of canceling the downloading from book details view for Overdrive
Given Close tutorial screen
Then Welcome screen is opened
Expand Down
8 changes: 4 additions & 4 deletions src/test/java/features/EpubOverdrive.feature
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ Feature: Read EPUB from Overdrive in A1QA
# And Click READ action button on book details screen
# Then The WHITE_TEXT_ON_BLACK background is correct

@logout @returnBooks @tier2
@logout @returnBooks @palace
Scenario: Epub: Open book to last page read
When Search for "Romeo and Juliet" 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'
Expand All @@ -155,7 +155,7 @@ Feature: Read EPUB from Overdrive in A1QA
Then 'bookInfo' book is present on epub reader screen
And PageNumber 'pageNumberKey' is correct

@logout @returnBooks @tier2
@logout @returnBooks @palace
Scenario: Epub: Navigate by Page
When Search for "The Book Thief" 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'
Expand All @@ -171,7 +171,7 @@ Feature: Read EPUB from Overdrive in A1QA
And Click on left book corner on epub reader screen
Then Previous page is opened and old page has 'pageNumberKey' pageNumber and 'chapterNameKey' chapterName on epub reader screen

@logout @returnBooks @tier2
@logout @returnBooks @palace
Scenario: Epub: Navigate by bookmarks
When Search for "Moby Dick" 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'
Expand All @@ -193,7 +193,7 @@ Feature: Read EPUB from Overdrive in A1QA
When Open random bookmark and save chapter name as 'chapterNameKey3' on bookmarks epub screen
Then 'chapterNameKey3' chapter name is displayed on reader epub screen

@logout @returnBooks @tier2
@logout @returnBooks @palace
Scenario: Epub: Delete bookmarks
When Search for "Little Women" 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'
Expand Down
12 changes: 6 additions & 6 deletions src/test/java/features/EpubPalace.feature
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Feature: Read EPUB in Palace Bookshelf
And Open search modal
And Search for 'Flower Fables' and save bookName as 'bookNameInfo'

@tier2
@palace
Scenario: Navigate by Page
When Click GET action button on EBOOK book with 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo'
And Open EBOOK book with READ action button and 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo'
Expand All @@ -26,7 +26,7 @@ Feature: Read EPUB in Palace Bookshelf
And Click on left book corner on epub reader screen
Then Previous page is opened and old page has 'pageNumberKey' pageNumber and 'chapterNameKey' chapterName on epub reader screen

@tier2
@palace
Scenario: Navigate by bookmarks
When Click GET action button on EBOOK book with 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo'
And Open EBOOK book with READ action button and 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo'
Expand All @@ -47,7 +47,7 @@ Feature: Read EPUB in Palace Bookshelf
When Open random bookmark and save chapter name as 'chapterNameKey3' on bookmarks epub screen
Then 'chapterNameKey3' chapter name is displayed on reader epub screen

@tier2
@palace
Scenario: Delete bookmarks
When Click GET action button on EBOOK book with 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo'
And Open EBOOK book with READ action button and 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo'
Expand All @@ -69,14 +69,14 @@ Feature: Read EPUB in Palace Bookshelf
Then 'chapterNameKey' chapter name is displayed on reader epub screen
And Bookmark is not displayed on reader epub screen

@tier2
@palace
Scenario: Navigate by Table of Contents Menu
When Click GET action button on EBOOK book with 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo'
And 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 Random chapter of epub can be opened from toc epub screen

@tier2
@palace
Scenario: Navigate View options
When Click GET action button on EBOOK book with 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo'
And Open EBOOK book with READ action button and 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo'
Expand Down Expand Up @@ -200,7 +200,7 @@ Feature: Read EPUB in Palace Bookshelf
# And Click READ action button on book details screen
# Then The WHITE_TEXT_ON_BLACK background is correct

@tier2
@palace
Scenario: Open book to last page read
When Click GET action button on EBOOK book with 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo'
And Open EBOOK book with READ action button and 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo'
Expand Down
20 changes: 10 additions & 10 deletions src/test/java/features/ManageLibraries.feature
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Feature: Manage Libraries

@tier2
@palace
Scenario: Settings: Add library: general checks
When Close tutorial screen
Then Welcome screen is opened
Expand All @@ -15,13 +15,13 @@ Feature: Manage Libraries
Then Add library screen is opened
And Libraries are sorted in alphabetical order on add account screen

@tier2
@palace
Scenario: Navigate by Tutorial
Then Tutorial screen is opened
And Each tutorial page can be opened on Tutorial screen and close tutorial screen
And Welcome screen is opened

@tier2
@palace
Scenario: Settings: Add library
When Close tutorial screen
Then Welcome screen is opened
Expand All @@ -35,7 +35,7 @@ Feature: Manage Libraries
Then Category names are loaded on Catalog screen
And List of books on screen is not equal to list of books saved as 'nameOfBooks'

@tier2
@palace
Scenario: Settings: Add Library: Check of the added libraries sorting
When Close tutorial screen
Then Welcome screen is opened
Expand All @@ -55,7 +55,7 @@ Feature: Manage Libraries
When Click to 'Escondido Public Library' and save library name as 'libraryInfo' on libraries screen
Then The screen with settings for 'libraryInfo' library is opened

@tier2
@palace
Scenario: Settings: Libraries: Remove library
When Close tutorial screen
Then Welcome screen is opened
Expand All @@ -68,7 +68,7 @@ Feature: Manage Libraries
And Remove 'Palace Bookshelf' library
Then Library 'Palace Bookshelf' is not present on Libraries screen

@tier2 @exclude_ios
@palace @exclude_ios
Scenario: Switch library bookshelf (ANDROID)
When Close tutorial screen
Then Welcome screen is opened
Expand All @@ -90,7 +90,7 @@ Feature: Manage Libraries
And Open Books
Then There are not books on books screen

@tier2 @exclude_android
@palace @exclude_android
Scenario: Switch library bookshelf (IOS)
When Close tutorial screen
Then Welcome screen is opened
Expand Down Expand Up @@ -156,7 +156,7 @@ Feature: Manage Libraries
And Click the log out button on the account screen
Then Logout is performed successfully

@tier2
@palace
Scenario: Logo: Add library: Check of adding a library
When Close tutorial screen
Then Welcome screen is opened
Expand All @@ -168,7 +168,7 @@ Feature: Manage Libraries
And Add 'LYRASIS Reads' account by the logo
Then Category names are loaded on Catalog screen

@tier2
@palace
Scenario: Logo: Add Library: Check of sorting libraries
When Close tutorial screen
Then Welcome screen is opened
Expand All @@ -189,7 +189,7 @@ Feature: Manage Libraries
When Tap cancel button on find your library screen
Then Category names are loaded on Catalog screen

@tier2
@palace
Scenario: Logo: Switch library
When Close tutorial screen
Then Welcome screen is opened
Expand Down
Loading

0 comments on commit ff00849

Please sign in to comment.