public void ValidLoginAndPassword_OnSignIn_ShouldDogsListPage() { _dogsListViewObject = _mainPageViewObject.UserHasDogSignIn(); Assert.IsTrue(_dogsListViewObject.IsTextDisplayed(UiText.DOGS_LIST_PAGE_MAIN_TITLE)); Assert.IsTrue(_dogsListViewObject.IsTextDisplayed(UiText.DOGS_LIST_PAGE_MAIN_LABEL)); }
public void BeforeEachTest() { app = ConfigureApp.Android .ApkFile(@"C:\temp/com.companyname.appname.apk") .StartApp(); _mainPageViewObject = new MainPageViewObject(app); _dogsListViewObject = _mainPageViewObject.UserHasDogSignIn(); }
public void AuthenticatedUser_Deconnection_NavigateToMainPage() { var dogsListViewPage = _mainPageViewObject.UserHasDogSignIn(); _mainPageViewObject = dogsListViewPage.FromMasterDetailPageNavigateTo(UiText.BUTTON_DECONNEXION) as MainPageViewObject; Assert.IsTrue(_mainPageViewObject.IsTextDisplayed(UiText.WELCOME_ON_DOGFINDER)); }
public void AddToShoppingCart_DogsInformationsAreDisplayedInShoppingCartPage() { const string DOG_TO_SELECT = UiText.ANY_DOG_NAME; _dogsListPageObject = _mainPagePageObject.UserHasDogSignIn(); _dogDetailPageObject = _dogsListPageObject.OpenDogDetailViewPage(DOG_TO_SELECT); _dogDetailPageObject.TapAddDogToTheShoppingCart(); _dogDetailPageObject.FromMasterDetailPageNavigateTo(UiText.BUTTON_TO_SHOPPING_CART_PAGE); const string EXPECTED_NAME_DISPLAYED = UiText.ANY_DOG_NAME; const string EXPECTED_RACE_DISPLAYED = UiText.ANY_DOG_RACE; const string EXPECTED_SEX_DISPLAYED = UiText.ANY_DOG_SEX; const string EXPECTED_PRICE_DISPLAYED = "Le coût total est 259.99 $"; Assert.IsTrue(_dogDetailPageObject.IsTextDisplayed(EXPECTED_PRICE_DISPLAYED)); Assert.IsTrue(_dogDetailPageObject.IsTextDisplayed(EXPECTED_NAME_DISPLAYED)); Assert.IsTrue(_dogDetailPageObject.IsTextDisplayed(EXPECTED_RACE_DISPLAYED)); Assert.IsTrue(_dogDetailPageObject.IsTextDisplayed(EXPECTED_SEX_DISPLAYED)); }