public void QrCodeCreatorPage_EnterANotValidValue_ErrorIsDisplayed() { _mainPage.GoToQrCodeCreatorPage(); _mainPage.AddTextInEntry(UiText.GlobalsId.ModelEntry, "Bad model entry!"); var idDisplayed = _mainPage.IsIdDisplayed(UiText.ModelErrorMessages.LengthNotValid); Assert.IsTrue(idDisplayed); }
public void QrCodeCreatorPage_EnterAGoodValue_QrCodeImageWasDisplayed() { _mainPage.GoToQrCodeCreatorPage(); _mainPage.AddTextInEntry(UiText.GlobalsId.ModelEntry, "LEVSND"); _mainPage.AddTextInEntry(UiText.GlobalsId.SerialNumberEntry, "LEV0209"); _mainPage.TapOnButton(UiText.GlobalsId.ButtonInQrCodePageCreator); var idDisplayed = _mainPage.IsIdDisplayed(UiText.GlobalsId.IdQrCodeImage); Assert.IsTrue(idDisplayed); }