Skip to content

Instantly share code, notes, and snippets.

@rafaelbrandao
Created April 4, 2013 07:43
Show Gist options
  • Save rafaelbrandao/5308570 to your computer and use it in GitHub Desktop.
Save rafaelbrandao/5308570 to your computer and use it in GitHub Desktop.
This is a set of tests that I will use to handle contextual changes, i.e. given user is logged, apply data automatically on forms when possible.
diff --git a/test/cucumber/BookChapter.feature b/test/cucumber/BookChapter.feature
index 001c81d..547a3b3 100644
--- a/test/cucumber/BookChapter.feature
+++ b/test/cucumber/BookChapter.feature
@@ -31,3 +31,9 @@ Feature: BookChapter
When I select the "Book Chapter" option at the publication menu
And I select the Novo BookChapter option at the book chapter page
Then I can fill the book chapter details
+
+ Scenario: new book chapter filled with user data by default
+ Given I am at the publication menu
+ When I select the "Book Chapter" option at the publication menu
+ And I select the Novo BookChapter option at the book chapter page
+ Then I see my user listed as a member of book chapter by default
\ No newline at end of file
diff --git a/test/cucumber/Conferencia.feature b/test/cucumber/Conferencia.feature
index 44230a7..4813936 100644
--- a/test/cucumber/Conferencia.feature
+++ b/test/cucumber/Conferencia.feature
@@ -28,4 +28,10 @@ Feature: conferencia
Scenario: list conferencia web
Given I am at the publications menu
When I select the conferencia option at the publications menu
- Then a list of conferencias stored by the system is displayed at the conferencia page
\ No newline at end of file
+ Then a list of conferencias stored by the system is displayed at the conferencia page
+
+ Scenario: new conferencia web has user data filled by default
+ Given I am at the publications and conferencias menu
+ When I select the conferencia option at the publications menu
+ And I select the new conferencia option at the conferencia page
+ Then I see my user listed as an author member of conferencia by default
diff --git a/test/cucumber/Dissertacao.feature b/test/cucumber/Dissertacao.feature
index e3a7e2b..49dbba2 100644
--- a/test/cucumber/Dissertacao.feature
+++ b/test/cucumber/Dissertacao.feature
@@ -41,4 +41,9 @@ Scenario: delete dissertation
And I delete it
Then the system has no dissertation entitled "Dissertacao Teste4"
-
\ No newline at end of file
+Scenario: create a new dissertation with user data already filled by default
+ Given I am at the publications menu
+ When I select the "Dissertacao" option at the program menu
+ And I select the new dissertation option at the dissertation page
+ Then I see my user listed as an author member of dissertation by default
+ And I see my school name as school of dissertation by default
diff --git a/test/cucumber/Ferramenta.feature b/test/cucumber/Ferramenta.feature
index 0532f8a..d83dd02 100644
--- a/test/cucumber/Ferramenta.feature
+++ b/test/cucumber/Ferramenta.feature
@@ -26,5 +26,8 @@ Scenario: new ferramenta without any information
And I select the create option at the ferramenta page
Then The ferramenta is not stored
-
-
\ No newline at end of file
+Scenario: new ferramenta filled with user data by default
+ Given I am at the publications menu
+ When I select the "Ferramenta" option at the program menu
+ And I select the new ferramenta option at the ferramenta page
+ Then I see my user listed as an author member of ferramenta by default
diff --git a/test/cucumber/TechnicalReport.feature b/test/cucumber/TechnicalReport.feature
index 09476f3..6284c40 100644
--- a/test/cucumber/TechnicalReport.feature
+++ b/test/cucumber/TechnicalReport.feature
@@ -27,9 +27,9 @@ Scenario: edit existing technical report wrong value
Given The system has an technical report entitled "NFL Languages System" with file name "NFL.pdf"
When I edit the technical report title from "NFL Languages System" to ""
Then The technical report "NFL Languages System" is not updated by the system
-
-
-
-
-
-
+
+Scenario: new technical report web has user data already filled by default
+ Given I am at the publications menu
+ And I select the "Technical Report" option at the publications menu
+ When I click on "New TechnicalReport" option at Technical Report list
+ Then I see my user listed as an author member of technical report by default
diff --git a/test/cucumber/steps/BookChapterSteps.groovy b/test/cucumber/steps/BookChapterSteps.groovy
index e0c03eb..bebb53f 100644
--- a/test/cucumber/steps/BookChapterSteps.groovy
+++ b/test/cucumber/steps/BookChapterSteps.groovy
@@ -97,3 +97,8 @@ And (~'^I fill only the title field at book chapter create page$') { ->
Then(~'^I still on the book chapter create page$') { ->
at BookChapterCreatePage
}
+
+Then(~'^I see my user listed as a member of book chapter by default$') { ->
+ // FIXME: implement this function.
+ assert false
+}
\ No newline at end of file
diff --git a/test/cucumber/steps/ConferenciaSteps.groovy b/test/cucumber/steps/ConferenciaSteps.groovy
index 42fcd39..5421e1a 100644
--- a/test/cucumber/steps/ConferenciaSteps.groovy
+++ b/test/cucumber/steps/ConferenciaSteps.groovy
@@ -66,4 +66,9 @@ Then(~'^I can fill the conferencia details$') { ->
Then(~'^a list of conferencias stored by the system is displayed at the conferencia page$') { ->
at ConferenciaPage
page.listConferencia()
-}
\ No newline at end of file
+}
+
+Then(~'^I see my user listed as an author member of conferencia by default$') { ->
+ // FIXME: implement this function.
+ assert false
+}
diff --git a/test/cucumber/steps/DissertacaoSteps.groovy b/test/cucumber/steps/DissertacaoSteps.groovy
index 26cfdef..fa3a790 100644
--- a/test/cucumber/steps/DissertacaoSteps.groovy
+++ b/test/cucumber/steps/DissertacaoSteps.groovy
@@ -77,4 +77,14 @@ Then(~'^the dissertation "([^"]*)" is not stored twice$') { String title ->
When(~'^I create the dissertation "([^"]*)" with file name "([^"]*)" without school$') { String title, filename ->
TestDataAndOperations.createDissertacaoWithotSchool(title, filename);
-}
\ No newline at end of file
+}
+
+Then(~'^I see my user listed as an author member of dissertation by default$') { ->
+ // FIXME: implement this function.
+ assert false
+}
+
+Then(~'^I see my school name as school of dissertation by default$') { ->
+ // FIXME: implement this function.
+ assert false
+}
diff --git a/test/cucumber/steps/FerramentaSteps.groovy b/test/cucumber/steps/FerramentaSteps.groovy
index da80d7e..596e926 100644
--- a/test/cucumber/steps/FerramentaSteps.groovy
+++ b/test/cucumber/steps/FerramentaSteps.groovy
@@ -84,3 +84,8 @@ Then(~'^the ferramenta "([^"]*)" is properly stored by the system$') { String ti
assert ferramenta != null
}
+Then(~'^I see my user listed as an author member of ferramenta by default$') { ->
+ // FIXME: implement this function.
+ assert false
+}
+
diff --git a/test/cucumber/steps/TechnicalReportSteps.groovy b/test/cucumber/steps/TechnicalReportSteps.groovy
index 3cd1522..7ee9c20 100644
--- a/test/cucumber/steps/TechnicalReportSteps.groovy
+++ b/test/cucumber/steps/TechnicalReportSteps.groovy
@@ -79,3 +79,8 @@ Then(~'^The technical report "([^"]*)" is not updated by the system$') { String
assert tech != null
}
+Then(~'^I see my user listed as an author member of technical report by default$') { ->
+ // FIXME: implement this function.
+ assert false
+}
+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment