Ejemplo n.º 1
0
        public void incluirManifestacaoLote()
        {
            ManifestacaoPage manifestacao = new ManifestacaoPage(driver);

            manifestacao.incluirManifestacao();


            // string textoValidacao = driver.FindElement(By.XPath("//*[@id='divAlerta']/div")).Text;
            //Assert.AreEqual("   Cadastrado com sucesso.", textoValidacao);
        }
Ejemplo n.º 2
0
        public void consultarManifestacaoPorData()
        {
            ManifestacaoPage manifestacao = new ManifestacaoPage(driver);

            manifestacao.consultarManifestacaoPorData("01/10/2020", "20/10/2020");

            string textoValidacao = driver.FindElement(By.XPath("//*[@id='tableManifest']/tbody/tr[4]/td[1]")).Text;

            Assert.AreEqual("2020.000079", textoValidacao);
        }
Ejemplo n.º 3
0
        public void consultarManifestacaoPorData()
        {
            ManifestacaoPage manifestacao = new ManifestacaoPage(driver);

            manifestacao.selecionarMenuConsultarManifestacao();
            manifestacao.consultarManifestacaoPorData("01/07/2021", "30/07/2021");

            string textoValidacao = driver.FindElement(By.XPath("//*[@id='tableManifest']/tbody/tr[1]/td[5]")).Text;

            Assert.That(textoValidacao.Contains("26/07/2021"));
        }
Ejemplo n.º 4
0
        public void consultarManifestacaoPorNumero()
        {
            ManifestacaoPage manifestacao = new ManifestacaoPage(driver);

            manifestacao.selecionarMenuConsultarManifestacao();
            manifestacao.consultarManifestacaoPorNumero("2021.000321");

            string textoValidacao = driver.FindElement(By.XPath("//*[@id='tableManifest']/tbody/tr/td[1]")).Text;

            Assert.AreEqual("2021.000321", textoValidacao);
        }
Ejemplo n.º 5
0
        public void incluirManifestacaoReclamacao()
        {
            ManifestacaoPage manifestacao = new ManifestacaoPage(driver);

            manifestacao.incluirManifestacao();
            manifestacao.incluirDadosManifestacao("Reclamacao");
            manifestacao.salvar();
            String textoValidacao = driver.FindElement(By.XPath("//*[@class='well']")).Text;

            Assert.That(textoValidacao.Contains("Sua manifestação foi enviada com sucesso"));
        }
Ejemplo n.º 6
0
        public void incluirManifestacaoLGPD()
        {
            ManifestacaoPage manifestacao = new ManifestacaoPage(driver);

            manifestacao.incluirManifestacao();
            manifestacao.incluirDadosManifestacao("Lei Geral de Proteção de Dados - LGPD");
            manifestacao.incluirDiversosAnexos();
            manifestacao.salvar();
            String textoValidacao = driver.FindElement(By.XPath("//*[@class='well']")).Text;

            Assert.That(textoValidacao.Contains("Sua manifestação foi enviada com sucesso"));
        }
Ejemplo n.º 7
0
        public void incluirAnaliseManifestacao()
        {
            AnalisarManifestacaoPage analisarManifestacao = new AnalisarManifestacaoPage(driver);
            ManifestacaoPage         manifestacaoPage     = new ManifestacaoPage(driver);

            analisarManifestacao.selecionarMenuAnalisarManifestacao();
            manifestacaoPage.consultarManifestacaoPorData("01/07/2021", "30/07/2021");
            analisarManifestacao.incluirAnaliseManifestacao();

            String textoValidacao = driver.FindElement(By.XPath("//*[@class='well']")).Text;

            Assert.That(textoValidacao.Contains("foi atualizada com sucesso."));
        }