public void DadoReportComCamposValidos()
        {
            //arrange
            var loginPO = new LoginPO(driver);

            loginPO.Visitar();
            loginPO.LoginValido();

            var dashboardPO = new DashboardPO(driver);

            dashboardPO.ClicarLinkReportIssues();

            var projetoPO = new SelecionarProjetoDoErroPO(driver);

            projetoPO.SelecionaProjeto("Ana Lima´s Project");
            projetoPO.SubmeteFormulario();

            var reportErroPO = new ReportarErroPO(driver);

            reportErroPO.PreencherFormulario("[All Projects] General", "ana7", "ana7");

            //act
            reportErroPO.SubmeteFormulario();

            //assert
            Assert.Contains("Operation successful", driver.PageSource);
        }
        public void DadoReportSemSummary()
        {
            ////arrange
            var loginPO = new LoginPO(driver);

            loginPO.Visitar();
            loginPO.LoginValido();

            var dashboardPO = new DashboardPO(driver);

            dashboardPO.ClicarLinkReportIssues();

            var projetoPO = new SelecionarProjetoDoErroPO(driver);

            projetoPO.SelecionaProjeto("Ana Lima´s Project");
            projetoPO.SubmeteFormulario();

            var reportErroPO = new ReportarErroPO(driver);

            reportErroPO.PreencherFormulario("[All Projects] General", "", "ana7");

            //act
            reportErroPO.SubmeteFormulario();

            //assert
            Assert.Contains("A necessary field \"Summary\" was empty.", driver.PageSource);
        }
Beispiel #3
0
        public void TabelaViewIssuesEstaVisivel()
        {
            //arrange
            var loginPO = new LoginPO(driver);

            loginPO.Visitar();
            loginPO.LoginValido();

            var dashboardPO = new DashboardPO(driver);

            dashboardPO.ClicarLinkViewIssues();

            var viewIssuesPO = new ViewIssuesPO(driver);

            //act
            var tabelaEstaVisivel = viewIssuesPO.TabelaBugsEstaVisivel();

            //assert
            Assert.True(tabelaEstaVisivel);
        }