Skip to content

Commit

Permalink
updated reservations feature file
Browse files Browse the repository at this point in the history
  • Loading branch information
AEkaterina committed Jan 24, 2024
1 parent 29c88cb commit 6ee7d09
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions src/test/java/features/Reservations.feature
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ Feature: Reservation of book in LYRASIS
When Activate sync bookmarks on Sign in screen
And Open Catalog
And Open search modal
And Search for "Peter Pan" and save bookName as "bookNameInfo"
And Switch to 'Audiobooks' catalog tab
And Click RESERVE action button on AUDIOBOOK book with 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo'
And Click REMOVE action button on AUDIOBOOK book with 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo'
Then AUDIOBOOK book with RESERVE action button and 'bookInfo' bookInfo is present on Catalog books screen
And Search 'unavailable' book of distributor 'Bibliotheca' and bookType 'EBOOK' and save as 'bookNameInfo'
And Switch to 'eBooks' catalog tab
And Click RESERVE action button on EBOOK book with 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo'
And Click REMOVE action button on EBOOK book with 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo'
Then EBOOK book with RESERVE action button and 'bookInfo' bookInfo is present on Catalog books screen

@logout @returnBooks @tier1
Scenario: Reserve from Book Detail View and and Remove a Reserved Book from Reservations
Expand All @@ -32,19 +32,19 @@ Feature: Reservation of book in LYRASIS
When Activate sync bookmarks on Sign in screen
And Open Catalog
And Open search modal
And Search for "Ladies' Night" and save bookName as "bookNameInfo"
And Switch to 'Audiobooks' catalog tab
And Search 'unavailable' book of distributor 'Palace Marketplace' and bookType 'EBOOK' and save as 'bookNameInfo'
And Switch to 'eBooks' catalog tab
Then Subcategory screen is opened
When Open AUDIOBOOK book with RESERVE action button and 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo'
When Open EBOOK book with RESERVE action button and 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo'
Then Book 'bookInfo' is opened on book details screen
When Click RESERVE action button on Book details screen
And Open Reservations
Then AUDIOBOOK book with REMOVE action button and 'bookInfo' bookInfo is present on Reservations screen
When Open AUDIOBOOK book with REMOVE action button and 'bookInfo' bookInfo on Reservations screen
Then EBOOK book with REMOVE action button and 'bookInfo' bookInfo is present on Reservations screen
When Open EBOOK book with REMOVE action button and 'bookInfo' bookInfo on Reservations screen
And Click REMOVE action button on Book details screen
And Open Reservations
And Wait for 7 seconds
Then AUDIOBOOK book with REMOVE action button and 'bookInfo' bookInfo is not present on Reservations screen
Then EBOOK book with REMOVE action button and 'bookInfo' bookInfo is not present on Reservations screen

@logout @returnBooks @tier1
Scenario: Reserve from Book Detail View and Remove a Reserved Book from Book Detail View
Expand All @@ -59,10 +59,10 @@ Feature: Reservation of book in LYRASIS
When Activate sync bookmarks on Sign in screen
And Open Catalog
And Open search modal
And Search for "The 9/11 Commission Report" and save bookName as "bookNameInfo"
And Switch to 'Audiobooks' catalog tab
And Search 'unavailable' book of distributor 'Palace Marketplace' and bookType 'EBOOK' and save as 'bookNameInfo'
And Switch to 'eBooks' catalog tab
Then Subcategory screen is opened
When Open AUDIOBOOK book with RESERVE action button and 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo'
When Open EBOOK book with RESERVE action button and 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo'
Then Book 'bookInfo' is opened on book details screen
When Click RESERVE action button on Book details screen
And Click REMOVE action button on Book details screen
Expand All @@ -81,16 +81,16 @@ Feature: Reservation of book in LYRASIS
When Activate sync bookmarks on Sign in screen
And Open Catalog
And Open search modal
And Search for "The Secret Garden" and save bookName as 'bookNameInfo'
And Switch to 'Audiobooks' catalog tab
And Open AUDIOBOOK book with RESERVE action button and 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo'
And Search 'unavailable' book of distributor 'Axis 360' and bookType 'EBOOK' and save as 'bookNameInfo'
And Switch to 'eBooks' catalog tab
And Open EBOOK book with RESERVE action button and 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo'
Then Book 'bookInfo' is opened on book details screen
When Click RESERVE action button on Book details screen
Then Check that book contains REMOVE action button on Book details screen
When Click REMOVE action button on book details screen and click CANCEL action button on alert. Only for ios
Then Check that book contains REMOVE action button on Book details screen
When Open Reservations
Then AUDIOBOOK book with REMOVE action button and 'bookInfo' bookInfo is present on Reservations screen
Then EBOOK book with REMOVE action button and 'bookInfo' bookInfo is present on Reservations screen

@logout @returnBooks @tier1 @exclude_ios
Scenario: Check books sorting in Reservations
Expand All @@ -105,15 +105,15 @@ Feature: Reservation of book in LYRASIS
When Activate sync bookmarks on Sign in screen
And Open Catalog
And Open search modal
And Search for "Wwii Airmen" and save bookName as 'bookNameInfo'
And Search 'unavailable' book of distributor 'Axis 360' and bookType 'AUDIOBOOK' and save as 'bookNameInfo'
And Click RESERVE action button on AUDIOBOOK book with 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo'
And Open Catalog
And Open search modal
And Search for "The Secret Garden" and save bookName as 'bookNameInfo'
And Search 'unavailable' book of distributor 'Palace Marketplace' and bookType 'AUDIOBOOK' and save as 'bookNameInfo'
And Click RESERVE action button on AUDIOBOOK book with 'bookNameInfo2' bookName on Catalog books screen and save book as 'bookInfo2'
And Clear search field on Catalog books screen
And Search for "Peter Pan" and save bookName as 'bookNameInfo'
And Click RESERVE action button on EBOOK book with 'bookNameInfo3' bookName on Catalog books screen and save book as 'bookInfo3'
And Search 'unavailable' book of distributor 'Bibliotheca' and bookType 'AUDIOBOOK' and save as 'bookNameInfo'
And Click RESERVE action button on AUDIOBOOK book with 'bookNameInfo3' bookName on Catalog books screen and save book as 'bookInfo3'
And Open Reservations
Then Books are sorted by Title by default on Reservations screen
And Books are sorted by Title ascending on Reservations screen
Expand All @@ -133,16 +133,16 @@ Feature: Reservation of book in LYRASIS
Then Login is performed successfully
When Open Catalog
And Open search modal
And Search for "Wwii Airmen" and save bookName as 'bookNameInfo'
And Switch to 'Audiobooks' catalog tab
And Open AUDIOBOOK book with RESERVE action button and 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo'
And Search 'unavailable' book of distributor 'Bibliotheca' and bookType 'EBOOK' and save as 'bookNameInfo'
And Switch to 'eBooks' catalog tab
And Open EBOOK book with RESERVE action button and 'bookNameInfo' bookName on Catalog books screen and save book as 'bookInfo'
And Click RESERVE action button on Book details screen
And Open Reservations
Then AUDIOBOOK book with REMOVE action button and 'bookInfo' bookInfo is present on Reservations screen
When Open AUDIOBOOK book with REMOVE action button and 'bookInfo' bookInfo on Reservations screen
Then EBOOK book with REMOVE action button and 'bookInfo' bookInfo is present on Reservations screen
When Open EBOOK book with REMOVE action button and 'bookInfo' bookInfo on Reservations screen
And Click REMOVE button but cancel the action by clicking CANCEL button on the alert
And Open Reservations
Then AUDIOBOOK book with REMOVE action button and 'bookInfo' bookInfo is present on Reservations screen
Then EBOOK book with REMOVE action button and 'bookInfo' bookInfo is present on Reservations screen

@smoke @logout @returnBooks
Scenario: Reservations: Perform check of book appearance and remove it
Expand Down

0 comments on commit 6ee7d09

Please sign in to comment.