Exemple #1
0
        public void CriarCategoriaExistente()
        {
            LoginFlows loginFlows = new LoginFlows();
            EditarProjetoPageObjects editarProjetoPageObjects = new EditarProjetoPageObjects();
            CriarCategoriaFlows      criarCategoriaFlows      = new CriarCategoriaFlows();

            string categoria = "Categoria Projeto Base2";

            loginFlows.EfetuarLoginComUsuarioDefault();
            criarCategoriaFlows.CriarCategoriaDefault();

            editarProjetoPageObjects.ClicarGerenciar();
            editarProjetoPageObjects.ClicarGerenciarProjetos();
            editarProjetoPageObjects.PreencherCategoriaProjeto(categoria);
            editarProjetoPageObjects.ClicarAdicionarCategoria();

            Assert.IsTrue(editarProjetoPageObjects.RetornaSeCategoriaExiste());
        }
Exemple #2
0
        public void EditarCategoria()
        {
            LoginFlows loginFlows = new LoginFlows();
            EditarProjetoPageObjects editarProjetoPageObjects = new EditarProjetoPageObjects();
            CriarCategoriaFlows      criarCategoriaFlows      = new CriarCategoriaFlows();

            string categoria = "-Parte1";

            loginFlows.EfetuarLoginComUsuarioDefault();
            criarCategoriaFlows.CriarCategoriaDefault();

            editarProjetoPageObjects.ClicarGerenciar();
            editarProjetoPageObjects.ClicarGerenciarProjetos();
            editarProjetoPageObjects.ClicarAlterarCategoria();
            editarProjetoPageObjects.PreencherCategoriaProjeto(categoria);
            editarProjetoPageObjects.ClicarAtualizarCategoria();

            Assert.IsTrue(editarProjetoPageObjects.RetornaSeCategoriaAlterada());
        }