diff --git a/src/test/java/features/Reservations.feature b/src/test/java/features/Reservations.feature index 84a1935..767ea29 100644 --- a/src/test/java/features/Reservations.feature +++ b/src/test/java/features/Reservations.feature @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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