Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #59 from sergiocampos/master

testes Departamento-Curso-Disciplina-Professor
  • Loading branch information...
commit c24d9c9d32ce3f927e90214deba4a1e450c770ca 2 parents 338f2b7 + 57dae87
@rodrigovilar authored
View
2  test/functional/alocadorhorarios/DepartamentoFunctionalTests.groovy
@@ -110,7 +110,7 @@ class DepartamentoFunctionalTests extends BrowserTestCase {
click "Departamento List"
assertContentContains "dxu"
assertContentContains "preto"
- assertContentContains "Manoel"
+ assertContentContains "Paulo"
assertContentContains "List"
assertStatus 200
View
42 test/functional/alocadorhorarios/TelefoneFunctionalTests.groovy
@@ -0,0 +1,42 @@
+package alocadorhorarios
+
+import com.grailsrocks.functionaltest.*
+
+class TelefoneFunctionalTests extends BrowserTestCase {
+ void testSomeWebsiteFeature() {
+
+ get('/telefone/list')
+ assertContentContains "List"
+ assertStatus 200
+
+ get('/telefone/create')
+ assertContentContains "Create"
+ assertStatus 200
+
+ form {
+ numero "8332210011"
+ click "create"
+ }
+ assertContentContains "8332210011"
+ assertContentContains "created"
+ assertStatus 200
+
+ click "Edit"
+ //assertContentContains "Edit"
+ //assertStatus 200
+ form {
+ numero "8132210011"
+ click "_action_update"
+ }
+ assertContentContains "8132210011"
+ assertContentContains "updated"
+ assertStatus 200
+
+ click "Telefone List"
+ assertContentContains "8132210011"
+ assertContentContains "List"
+ assertStatus 200
+
+
+ }
+}
View
23 test/functional/alocadorhorarios/TurmaFunctionalTests.groovy
@@ -0,0 +1,23 @@
+package alocadorhorarios
+
+import com.grailsrocks.functionaltest.*
+
+class TurmaFunctionalTests extends BrowserTestCase {
+ void testSomeWebsiteFeature() {
+ get('/turma/list')
+ assertContentContains "List"
+ assertStatus 200
+
+ get('/turma/create')
+ assertContentContains "Create"
+ assertStatus 200
+
+ form {
+ selects['disciplina.id'].select "1"
+ selects['periodoLetivo.id'].select "1"
+ selects['professor.id'].select "1"
+ click "create"
+ }
+ assertStatus 200
+ }
+}
Please sign in to comment.
Something went wrong with that request. Please try again.