public void AdminLogsOutAndLogsInAsContractor()
 {
     homePage.LogOutAsAdmin().Click();
     homePage.UsernameInputField().SendKeys("IQService.contractor2");
     homePage.PasswordInputField().SendKeys("87108884-1cac-4b8d-a80e-692425c5f294");
     homePage.SignInButton().Click();
 }
 public void AdminLogsOutAndLogsInAsContractor1()
 {
     homePage.LogOutAsAdmin().Click();
     homePage.UsernameInputField().SendKeys("IQService.contractor2");
     homePage.PasswordInputField().SendKeys("87108884-1cac-4b8d-a80e-692425c5f294");
     homePage.SignInButton().Click();
     Assert.That(contrHomePage.IsCreatePageDisplayed(), Is.True, "Home page of contractor is not displayed.");
 }
Example #3
0
        public void UserEntersUsernameThatIsNotInDatabaseAndPassword()
        {
            Precondition homePage = new Precondition(Driver);

            Assert.That(homePage.IsSignInDisplayed(), Is.True, "Sign in page is not displayed.");

            homePage.UsernameInputField().SendKeys("aaaaaa");
            homePage.PasswordInputField().SendKeys("aaaaaaa");
        }
Example #4
0
 public void GivenUserNavigatesToInvoiceValidatorWebApp2()
 {
     Driver.Navigate().GoToUrl("http://intnstest:50080");
     Assert.That(homePage.IsSignInDisplayed(), Is.True, "Sign in page is not displayed.");
     homePage.UsernameInputField().SendKeys("IQService.contractor2");
     homePage.PasswordInputField().SendKeys("87108884-1cac-4b8d-a80e-692425c5f294");
     homePage.SignInButton().Click();
     Assert.That(contractorProfile.IsContractorPageDisplayed(), Is.True, "My account page is not displayed.");
     contractorProfile.ProfileConButton().Click();
     Assert.That(contractorProfile.EditContrPage(), Is.True, "Edit contractor page is not displayed.");
 }
Example #5
0
        public void ContractorLogsOutAdminLogsIn()
        {
            ContrClaims.LogOutButtonContractor().Click();
            Assert.That(homePage.IsSignInDisplayed(), Is.True, "Sign in page is not displayed.");
            homePage.UsernameInputField().SendKeys("IQService.admin2");
            homePage.PasswordInputField().SendKeys("87108884-1cac-4b8d-a80e-692425c5f294");
            homePage.SignInButton().Click();

            claim_categories2.ContractorClaimsButton().Click();
            claim_categories2.ContractorClaimsListButton().Click();
            Assert.That(claim_categories2.IsContractorClaimsListDisplayed(), Is.True, "Contractor claims list is not displayed.");
        }