public void TEST_CreateNewBugSummaryRequired() { objLogin.NavigateToLoginPage().LogIn(); objNewBug.OpenNewBugPage().CreateNewBug(TestDataConfig.categoria, TestDataConfig.frequencia, TestDataConfig.gravidade, TestDataConfig.prioridade, false, "plataforma", "SO", "VErsao so", TestDataConfig.atribuir, String.Empty, TestDataConfig.descricao, TestDataConfig.passosReproduzir, TestDataConfig.informacoesAdicionais, false, false); JavaScriptExecutorHelper.ExecuteJavaScript("document.getElementById('summary').removeAttribute('required')"); objNewBug.saveNewBug(); ValidationResult.AssertElementContainsText(objNewBug.msgErro, MessagesNewBug.MensagemErroObrigatoriedade.Replace("@campo", "summary")); }
public void TEST_CreateNewBugDescriptionRequired() { LoginPage objLogin = new LoginPage(_driver); CreateNewBugPage objNewBug = new CreateNewBugPage(_driver); objLogin.NavigateToLoginPage().LogIn(); objNewBug.OpenNewBugPage().CreateNewBug(ConstanstsTestData.categoria, ConstanstsTestData.frequencia, ConstanstsTestData.gravidade, ConstanstsTestData.prioridade, false, "plataforma", "SO", "VErsao so", ConstanstsTestData.atribuir, ConstanstsTestData.resumo, String.Empty, ConstanstsTestData.passosReproduzir, ConstanstsTestData.informacoesAdicionais, false, false); // JavaScriptExecutorHelper.ExecuteJavaScript("document.getElementById('description').removeAttribute('required')"); objNewBug.saveNewBug(); //ValidationResult.AssertElementContainsText(objNewBug.msgErro, MessagesNewBug.MensagemErroObrigatoriedade.Replace("@campo", "description")); //A necessary field "description" was empty. Please recheck your inputs. }