public void RegisterDevice_Success_Test() { // Create driver manager and navigate to Register Device page var manager = GatekeeperFactory.CreateDriverManager(); manager.NavigateTo(PageAlias.Coordinator_RegisterDevice); // Sign in with valid username/password/dc var registerDevicePage = GatekeeperFactory.CreatePageManager <CoordinatorRegisterDevicePage>(manager.Driver); registerDevicePage.AuthenticateChurch("ft.tester", "FT4life!", "dc"); // Waiting & Check: the next page - Activity Code page is loaded Assert.True(manager.IsCurrentPage(PageAlias.Coordinator_ActivityCode)); // Check the church name is showing on Activity Code page (in the header) var activityCodePage = GatekeeperFactory.CreatePageManager <CoordinatorActivityCodePage>(manager.Driver); Assert.Equal("Dynamic Church", activityCodePage.HeaderChurchName); //Once register successfully, the sign in page won't come up the next time manager.NavigateTo(PageAlias.Coordinator_RegisterDevice, false); Assert.True(manager.IsCurrentPage(PageAlias.Coordinator_ActivityCode)); manager.Driver.Close(); }
public void SignIn_Success() { //Create manager & Navigate page to Login. var manager = GatekeeperFactory.CreateDriverManager(); manager.NavigateTo(PageAlias.Launchpad_SignIn); var signInPage = GatekeeperFactory.CreatePageManager <LaunchpadSignInPage>(manager.Driver); signInPage.Action_SignIn("*****@*****.**", "FT4life!"); //Waiting & Check page. Assert.True(manager.IsCurrentPage(PageAlias.Launchpad_Home)); manager.Driver.Close(); }
public void SignIn_Success() { //Create manager & Navigate page to Login. var manager = GatekeeperFactory.CreateDriverManager(); manager.NavigateTo(PageAlias.Dashboard_SignIn); var signInPage = GatekeeperFactory.CreatePageManager <DashboardSignInPage>(manager.Driver); signInPage.Action_SignIn("Alfred", "Alfred1@", "dc"); //Waiting & Check page. Assert.True(manager.IsCurrentPage(PageAlias.Dashboard_Home)); manager.Driver.Close(); }
public void LaunchpadSignOut(string action) { _driverManager.NavigateTo(PageAlias.Launchpad_Home); var launchpadHomepage = GatekeeperFactory.CreatePageManager <Homepage>(_driverManager.Driver); var manager = GatekeeperFactory.CreateDriverManager(); launchpadHomepage.SignOut(); System.Threading.Thread.Sleep(5000); //Assert.Contains("Sign In", "sign out failed!"); Assert.True(manager.IsCurrentPage(PageAlias.Launchpad_SignIn)); //verify url is correct //var isExpected = passwordSettingsPage.IsErrorMsgExpected(msg); //Assert.True(isExpected, "Message is incorrect"); }
public void LoginUrl_WrongUrlRedirect() { var manager = GatekeeperFactory.CreateDriverManager(); //Url1 is https://launchpad.fellowshipone.com manager.NavigateToUnstablePage(PageAlias.Launchpad_SignIn_WrongUrl1); Assert.True(manager.IsCurrentPage(PageAlias.Launchpad_SignIn_ChurchUndefined), "The redirected Url is wrong."); //manager.Driver.Close(); //Url2 is https://launchpad.fellowshipone.com/dc manager.NavigateToUnstablePage(PageAlias.Launchpad_SignIn_WrongUrl2); Assert.True(manager.IsCurrentPage(PageAlias.Launchpad_SignIn), "The redirected Url is wrong."); //Url3 is https://launchpad.fellowshipone.com/#/dc manager.NavigateToUnstablePage(PageAlias.Launchpad_SignIn_WrongUrl3); Assert.True(manager.IsCurrentPage(PageAlias.Launchpad_SignIn), "The redirected Url is wrong."); manager.Driver.Close(); }
public DashboardAuthorizedUserFixture() : base() { //sign in dashboard //Create manager & Navigate page to Login. var manager = this.DriverManager ?? GatekeeperFactory.CreateDriverManager(); manager.NavigateTo(PageAlias.Dashboard_SignIn); var signInPage = GatekeeperFactory.CreatePageManager <DashboardSignInPage>(manager.Driver); signInPage.Action_SignIn("Alfred", "Alfred1@", "dc"); //Waiting & Check page. Assert.True(manager.IsCurrentPage(PageAlias.Dashboard_Home)); this.CurrentUser = new CurrentUserModel { UserName = "******", Password = "******" }; }
public void LoginUrl_NonExistsChurchCode() { string msgWrongChurchSignIn = "Your login attempt has failed. Church is not found."; string msgWrongChurch = "Church Not Found, ChurchCode: unexistschurchcode"; var manager = GatekeeperFactory.CreateDriverManager(); manager.NavigateTo(PageAlias.Launchpad_SignIn_WrongChurch); var signInPage = GatekeeperFactory.CreatePageManager <LaunchpadSignInPage>(manager.Driver); //Check Sign In message signInPage.Action_SignIn("*****@*****.**", "111111"); var isExpected1 = signInPage.IsErrorMsgExpected(msgWrongChurchSignIn); Assert.True(isExpected1, "Message for sign in with non-exists church code is incorrect!"); //Check Sign Up message signInPage.linkSignUp.Click(); signInPage.Action_SignUp("f1", "l1", "*****@*****.**", "111111", "111111"); var isExpected2 = signInPage.IsErrorMsgExpectedSignUp(msgWrongChurch); Assert.True(isExpected2, "Message for sign up with non-exists church code is incorrect!"); signInPage.Action_Cancel(); //Check forgot password page message signInPage.linkForgotPassword.Click(); signInPage.Action_PwdSendEmail("*****@*****.**"); var isExpected3 = signInPage.IsErrorMsgExpectedPassword(msgWrongChurch); Assert.True(isExpected3, "Message for Forgot Password with non-exists church code is incorrect!"); signInPage.Action_Cancel(); manager.Driver.Close(); }
public MemberShipAuthorizedUserFixture() : base() { //build current user. CurrentUserModel user = new CurrentUserModel { UserName = "******", Password = "******" }; //Create manager & Navigate page to Login. var manager = this.DriverManager ?? GatekeeperFactory.CreateDriverManager(); manager.NavigateTo(PageAlias.AUI_SignIn, false); var signInPage = GatekeeperFactory.CreatePageManager <MembershipSignInPage>(manager.Driver); signInPage.Action_SignIn(user.UserName, user.Password); //Waiting & Check page. Assert.True(manager.IsCurrentPage(PageAlias.AUI_Organization_Home)); this.CurrentUser = user; }
public void LoginUrl_NoChurchCode() { string msgNoChurchSignIn = "Login attempt has failed because your church is not identified in the URL. Please contact your church for further assistance."; string msgNoChurchSignUp = "Sign up cannot be launched because your church is not identified in the URL. Please contact your church for further assistance."; string msgNoChurchGetPassword = "******"; var manager = GatekeeperFactory.CreateDriverManager(); manager.NavigateTo(PageAlias.Launchpad_SignIn_ChurchUndefined); var signInPage = GatekeeperFactory.CreatePageManager <LaunchpadSignInPage>(manager.Driver); //Check Sign In message signInPage.Action_SignIn(); var isExpected1 = signInPage.IsErrorMsgExpected(msgNoChurchSignIn); Assert.True(isExpected1, "Message for sign in without church code is incorrect!"); //Check Sign Up message signInPage.Action_SignUp(); var isExpected2 = signInPage.IsErrorMsgExpectedSignUp(msgNoChurchSignUp); Assert.True(isExpected2, "Message for sign up without church code is incorrect!"); signInPage.Action_Cancel(); //Check forgot password page message signInPage.Action_GetPassword(); var isExpected3 = signInPage.IsErrorMsgExpectedPassword(msgNoChurchGetPassword); Assert.True(isExpected3, "Message for Forgot Password without church code is incorrect!"); signInPage.Action_Cancel(); manager.Driver.Close(); }
public LaunchpadHighestAuthorityUserFixture() : base() { //Sign in Launchpad //Create manager & Navigate page to login. var manager = this.DriverManager ?? GatekeeperFactory.CreateDriverManager(); manager.NavigateTo(PageAlias.Launchpad_SignIn); var signInPage = GatekeeperFactory.CreatePageManager <LaunchpadSignInPage>(manager.Driver); signInPage.Action_SignIn("*****@*****.**", "111111"); //Waiting & Check page. Assert.True(manager.IsCurrentPage(PageAlias.Launchpad_Home)); this.CurrentUser = new CurrentUserModel { UserName = "******", Password = "******", ChurchCode = "dc", ChurchId = 15 }; }
public InitialConfigurationFixture() : base() { //sign in dashboard //Create manager & Navigate page to Login. var manager = this.DriverManager ?? GatekeeperFactory.CreateDriverManager(); manager.NavigateTo(PageAlias.Dashboard_Configuration); var configPage = GatekeeperFactory.CreatePageManager <ConfigurationPage>(manager.Driver); configPage.Action_UnableAllActiveWidgets(); Assert.True(configPage.ActiveWidgets.Count >= 4, "ActiveWidgets is list than 4!"); for (var i = 0; i < 4; i++) { var widget = configPage.ActiveWidgets[i]; widget.Enabled = true; } configPage.Action_SaveConfiguratorAndClosePage(); //Waiting & Check page. Assert.True(manager.IsCurrentPage(PageAlias.Dashboard_Home)); }