public void HomePage_UKPRN_When_NumericNumberUpdated_ShouldNotShowError() { HomeObjects homeWindow = WindowObjects.Windows.Main.SelectHomeTab; //select the learner tab string invalidUKPRN = RandomStrings.GetRandomNumber(8); homeWindow.SetUkPRN(invalidUKPRN); var error = homeWindow.GetUKPRNValidationMessage; Assert.True(string.IsNullOrEmpty(error)); }
public void HomePage_UKPRN_When_NonNumeric_ShouldShowError() { HomeObjects homeWindow = WindowObjects.Windows.Main.SelectHomeTab; //select the learner tab string invalidUKPRN = RandomStrings.GetRandomAlphabets(8); homeWindow.SetUkPRN(invalidUKPRN); var error = homeWindow.GetUKPRNValidationMessage; Assert.Equal(error.TrimEnd(), expectedUKPRNMessage); }