public void verifyUnverifiedUserIsUnableToCreateProfiles()
        {
            ListProfilesViewPage = dashboardPage.GoToProfilesScreen();
            ListProfilesViewPage = ListProfilesViewPage
                                   .ClickToCreateProfileUnverified();

            bool actualResults = ListProfilesViewPage.UnverifiedUserPopupIsPresent();

            ListProfilesViewPage = ListProfilesViewPage.CloseUnverifiedPopup();

            Assert.IsTrue(actualResults, "User Is Not Blocked From Creating Profile");
        }
        public void RoleTagIsARequiredFieldForProfileNameCreation()
        {
            //TODO I will need to add additional checks for clearing the state of the buttons
            createProfileRoleTagPage = createProfileRoleTagPage
                                       .ChooseMemberRoleTag(RoleTags.Drummer);

            bool actualResults = createProfileRoleTagPage.CheckIfCreateButtonIsEnabled();

            listProfilesViewPage = createProfileRoleTagPage
                                   .ClickToCreateProfile();

            Assert.IsTrue(actualResults, "Create Profile Button Is not enabled.");
        }
Esempio n. 3
0
        public void SetUp()
        {
            driver = new ChromeDriver();
            driver.Manage().Window.Maximize();
            driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(15);
            driver.Navigate().GoToUrl(EnvironmentVariables.QaLogin);
            LogInPage     = new LogInPage(driver);
            DashboardPage = LogInPage
                            .SuccessFullLogin(EnvironmentVariables.QaLoginEmail, EnvironmentVariables.QaLoginPassword);
            ListProfilesViewPage = DashboardPage.GoToProfilesScreen();

            Thread.Sleep(5000);
        }
 public void SetUp()
 {
     driver = new ChromeDriver();
     driver.Manage().Window.FullScreen();
     driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(15);
     driver.Navigate().GoToUrl(EnvironmentVariables.QaLogin);
     logInPage     = new LogInPage(driver);
     dashboardPage = logInPage
                     .SuccessFullLogin(EnvironmentVariables.QaLoginEmail, EnvironmentVariables.QaLoginPassword);
     listProfilesViewPage           = dashboardPage.GoToProfilesScreen();
     initialNumberOfCreatedProfiles = listProfilesViewPage.NumberOfCreatedProfiles();
     _rand = new Random();
     Thread.Sleep(5000);
 }
        public void SetUp()
        {
            driver = new ChromeDriver();
            driver.Manage().Window.Maximize();
            driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(15);
            driver.Navigate().GoToUrl(EnvironmentVariables.QaLogin);
            LogInPage     = new LogInPage(driver);
            DashboardPage = LogInPage
                            .SuccessFullLogin(EnvironmentVariables.QaLoginEmail, EnvironmentVariables.QaLoginPassword);
            ListProfilesViewPage = DashboardPage
                                   .GoToProfilesScreen()
                                   .CreateNewProfile()
                                   .PopulateProfileNameAndClickNext(expectedProfileName)
                                   .ChooseProfileLocationAndCLickNext(Locations.Stockholm)
                                   .ChooseProfileRoleTagsClickCreate(RoleTags.Diplo);

            Thread.Sleep(5000);
        }
Esempio n. 6
0
        public void validateProfileCanBeSuccessfullyCreated()
        {
            //toDo create a RandomName Generator to populate the profile name, Location and RoleTag
            double expectedResults = ListProfilesViewPage
                                     //.readNumberofMyProfiles()
                                     .NumberOfCreatedProfiles();

            ListProfilesViewPage = ListProfilesViewPage
                                   .CreateNewProfile()
                                   .PopulateProfileNameAndClickNext("FirstCreate" + DateTime.Now.ToUniversalTime())
                                   .ChooseProfileLocationAndCLickNext(Locations.Stockholm)
                                   .ChooseProfileRoleTagsClickCreate(RoleTags.Drummer);
            double actualResults = ListProfilesViewPage
                                   //.readNumberofMyProfiles()
                                   .NumberOfCreatedProfiles();

            Assert.AreEqual(expectedResults + 1, actualResults, "Newly Created profile is not present");
        }
Esempio n. 7
0
 public void AUserIsNavigatedOnProfilesPage()
 {
     ListProfilesViewPage = DashboardPage.GoToProfilesScreen();
     Assert.AreEqual("https://qa-spa.recordunion.com/profiles", ListProfilesViewPage.ValidateIAmOnProfilesPage());
 }