示例#1
0
        public void CriarCategoriaDefault()
        {
            LoginFlows loginFlows = new LoginFlows();
            EditarProjetoPageObjects editarProjetoPageObjects = new EditarProjetoPageObjects();

            string categoria = "Categoria Projeto Base2";

            loginFlows.EfetuarLoginComUsuarioDefault();

            editarProjetoPageObjects.ClicarGerenciar();
            editarProjetoPageObjects.ClicarGerenciarProjetos();
            editarProjetoPageObjects.PreencherCategoriaProjeto(categoria);
            editarProjetoPageObjects.ClicarAdicionarCategoria();
        }
示例#2
0
        public void CriarCategoria()//Não precisa de um projeto criado
        {
            LoginFlows loginFlows = new LoginFlows();
            EditarProjetoPageObjects editarProjetoPageObjects = new EditarProjetoPageObjects();

            string categoria = "Categoria Projeto Base2";

            loginFlows.EfetuarLoginComUsuarioDefault();

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

            Assert.IsTrue(editarProjetoPageObjects.RetornaSeCategoriaCriada());
        }
示例#3
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());
        }