public MyAccountPage InputEmailPasswordForLogin(ISignedUser user) { Authentication login = new Authentication(); login.ClickClearEnterEmailInFieldForLogin(user.GetEmail()) .ClickClearEnterPassworForLogin(user.GetPassword()); return(login.ClickSignInButton()); }
public void LoginUserTest(ISignedUser externalValidUsers) { //Arrange LoginMethods login = new LoginMethods(); string expectedResult = "ALREADY REGISTERED?"; string expectedResult2 = "MY ACCOUNT"; //Step 1 string actualResult = login.GoToAuthentication().GetTextLogoAlreadyRegistered(); Assert.AreEqual(expectedResult, actualResult, "Step1: Go to Authentication page "); //Step 2 string actualResult2 = login.InputEmailPasswordForLogin(externalValidUsers).GetTextTitleMyAccount(); Assert.AreEqual(expectedResult2, actualResult2, "Step 2: User on MyAccount page"); }
//[Test, TestCaseSource("ValidUsers")] public void MultipleLoginUserTest(IApplicationSource applicationSource, ISignedUser validUsers) { //Arrange Application.GetMultipleBrowser(applicationSource).BaseUrlAction(); LoginMethods login = new LoginMethods(); string expectedResult = "ALREADY REGISTERED?"; string expectedResult2 = "MY ACCOUNT"; //Step 1 string actualResult = login.GoToAuthentication().GetTextLogoAlreadyRegistered(); Assert.AreEqual(expectedResult, actualResult, "Step1: Go to Authentication page "); //Step 2 string actualResult2 = login.InputEmailPasswordForLogin(validUsers).GetTextTitleMyAccount(); Assert.AreEqual(expectedResult2, actualResult2, "Step 2: User on MyAccount page"); }
public MyAccountPage SuccssefulLoginUser(ISignedUser user) { GoToAuthentication(); return(InputEmailPasswordForLogin(user)); }