Exemplo n.º 1
0
        public override void BeforeEachTest()
        {
            base.BeforeEachTest();

            LoginPage.WaitForPageToLoad();

            BackdoorHelpers.BypassLoginScreen(App);

            FirstPage.WaitForPageToLoad();
        }
        public override void BeforeEachTest()
        {
            base.BeforeEachTest();

            LoginPage.WaitForPageToLoad();

            App.InvokeBackdoorMethod(BackdoorMethodConstants.BypassLoginScreen);

            FirstPage.WaitForPageToLoad();
        }
Exemplo n.º 3
0
        virtual public void BeforeEachTest()
        {
            app = AppInitializer.StartApp(platform);
            app.Screenshot("App Initialized");

            FirstPage         = new FirstPage(app, platform);
            ListPage          = new ListPage(app, platform);
            LoginPage         = new LoginPage(app, platform);
            NewUserSignUpPage = new NewUserSignUpPage(app, platform);

            LoginPage.WaitForLoginScreen();
        }
Exemplo n.º 4
0
        public void CreateNewUserAndLogin(bool shouldUseKeyboardReturnButton)
        {
            //Arrange
            var username = _username;
            var password = "******";

            //Act
            LoginPage.PressSignUpButton();
            NewUserSignUpPage.CreateNewUserWithPassword(username, password, shouldUseKeyboardReturnButton);

            LoginPage.WaitForPageToLoad();
            LoginPage.LoginWithUsernamePassword(username, password, shouldUseKeyboardReturnButton);

            //Assert
            FirstPage.WaitForPageToLoad();
        }
Exemplo n.º 5
0
        public void CreateNewUserAndLogin(bool shouldUseKeyboardReturnButton)
        {
            //Arrange
            var username = _username;
            var password = "******";
            var expectedFirstPageTitle = "First Page";

            //Act
            LoginPage.PressSignUpButton();
            NewUserSignUpPage.CreateNewUserWithPassword(username, password, shouldUseKeyboardReturnButton);

            LoginPage.WaitForLoginScreen();
            LoginPage.LoginWithUsernamePassword(username, password, shouldUseKeyboardReturnButton);

            //Assert
            var actualFirstPageTitle = FirstPage.GetTitle();

            Assert.AreEqual(expectedFirstPageTitle, actualFirstPageTitle);
        }
        public void EnterText(bool shouldUseKeyboardReturnButton)
        {
            //Arrange
            var textInput = "Hello World";

            //Act
            switch (shouldUseKeyboardReturnButton)
            {
            case true:
                FirstPage.EnterTextAndPressEnter(textInput);
                break;

            case false:
                FirstPage.EnterText(textInput);
                FirstPage.ClickGo();
                break;
            }

            FirstPage.WaitForNoActivityIndicator();

            //Assert
            Assert.AreEqual(FirstPage.GetEntryFieldText(), textInput);
        }