From 792960ee880f633c78b79cbc3886338e2d6955f9 Mon Sep 17 00:00:00 2001 From: AEkaterina Date: Fri, 9 Feb 2024 01:21:55 +0400 Subject: [PATCH 1/2] changed step to check library on iOS --- src/test/java/stepdefinitions/CatalogSteps.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/java/stepdefinitions/CatalogSteps.java b/src/test/java/stepdefinitions/CatalogSteps.java index 03119b3..645df9c 100644 --- a/src/test/java/stepdefinitions/CatalogSteps.java +++ b/src/test/java/stepdefinitions/CatalogSteps.java @@ -73,6 +73,7 @@ public void isLibraryOpenedInCatalog(String libraryName){ menuBarScreen.openBottomMenuTab(MenuBar.SETTINGS); settingsScreen.openLibraries(); Assert.assertTrue(libraryName + " is not present on Libraries screen", librariesScreen.isLibraryPresent(libraryName)); + menuBarScreen.openBottomMenuTab(MenuBar.CATALOG); }); } From caeec731301c1c466661619304ade0d8eaaa94d2 Mon Sep 17 00:00:00 2001 From: AEkaterina Date: Fri, 9 Feb 2024 04:15:17 +0400 Subject: [PATCH 2/2] updated pdf palace ios --- src/test/java/screens/pdf/BookmarksPdfScreen.java | 2 +- src/test/java/screens/pdf/SearchPdfScreen.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/screens/pdf/BookmarksPdfScreen.java b/src/test/java/screens/pdf/BookmarksPdfScreen.java index 481df9a..5adf719 100644 --- a/src/test/java/screens/pdf/BookmarksPdfScreen.java +++ b/src/test/java/screens/pdf/BookmarksPdfScreen.java @@ -17,7 +17,7 @@ public class BookmarksPdfScreen extends Screen { public BookmarksPdfScreen() { super(LocatorUtils.getLocator( new AndroidLocator(By.xpath("")), - new IosLocator(By.xpath("//XCUIElementTypeCollectionView"))), "Bookmarks screen"); + new IosLocator(By.xpath("//XCUIElementTypeStaticText[contains(@name=\"no bookmarks\")]"))), "Bookmarks screen"); } public int getCountOfBookmarks() { diff --git a/src/test/java/screens/pdf/SearchPdfScreen.java b/src/test/java/screens/pdf/SearchPdfScreen.java index 7559565..a77cf10 100644 --- a/src/test/java/screens/pdf/SearchPdfScreen.java +++ b/src/test/java/screens/pdf/SearchPdfScreen.java @@ -21,7 +21,7 @@ public class SearchPdfScreen extends Screen { private final IButton returnKey = getElementFactory().getButton(By.xpath("//XCUIElementTypeButton[@name=\"Return\"]"), "Return key"); private static final String NUMBER_OF_FOUND_TEXT_LOCATOR_IOS = "//XCUIElementTypeCell/XCUIElementTypeStaticText[2]"; - private static final String FOUND_TEXT_NUMBER_LOCATOR_IOS = "//XCUIElementTypeCell[%d]/XCUIElementTypeOther[2]/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeStaticText[2]"; + private static final String FOUND_TEXT_NUMBER_LOCATOR_IOS = "//XCUIElementTypeCell[%d]/XCUIElementTypeOther[2]/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeStaticText[2]"; private static final String FOUND_TEXT_LOCATOR_IOS = "//XCUIElementTypeCell/XCUIElementTypeStaticText[1]"; public SearchPdfScreen() {