public void ProfileNameIsNotValidIfItOnlyContainsSpaces() { createProfileNamePage = createProfileNamePage .PopulateProfileName(CommonUsedVariables.OnlySpacesString); Assert.IsFalse(createProfileNamePage.CheckIfNextButtonIsEnabled(), "Button is not disabled."); }
public void ProfileNameMustNotBeEmpty() { createProfileNamePage = listProfilesViewPage .CreateNewProfile(); Assert.IsFalse(createProfileNamePage.CheckIfNextButtonIsEnabled(), "Button is not disabled."); }
public void ProfileNameIsRequiredField() { ExpectedProfileName = "Profile_" + _rand.NextDouble(); createProfileNamePage = createProfileNamePage .ClickOnLogoToReturnOnAllProfilesPage() .GoToProfilesScreen() .CreateNewProfile() .PopulateProfileName(ExpectedProfileName); Assert.IsTrue(createProfileNamePage.CheckIfNextButtonIsEnabled(), "Next button is not enabled."); }
public void ExistingProfileIsRetrievedAsSuggesetedWhileCreatingNewProfileWithExactSameName() { CreateProfileNamePage = ListProfilesViewPage .CreateNewProfile() .PopulateProfileName(expectedProfileName); IList <SuggestedMatchingResults> SuggestedMatchingResults = CreateProfileNamePage .ClickNextButton() .findAlreadyCreatedProfileWithExactName(expectedProfileName); //TODO Assert if the objects are equal Assert.AreEqual(SuggestedMatchingResults.Count, 1, "The suggested results are not correct."); }