Google Plus footer link and mission editor test has more agents

James Peret преди 10 години
родител
ревизия
dd4bb96b06
променени са 2 файла, в които са добавени 35 реда и са изтрити 3 реда
  1. 3 3
      app/views/layouts/footer/_footer_social.html.erb
  2. 32 0
      features/mission_editor.feature

+ 3 - 3
app/views/layouts/footer/_footer_social.html.erb

@@ -1,3 +1,3 @@
1
-
2
-	<a href="https://www.facebook.com/pages/Avalanche-Network/932907863393529"><i class="fa fa-facebook-square fa-4x"></i></a>
3
-	<a href="https://twitter.com/avalanche_net"><i class="fa fa-twitter fa-4x"></i></a>
1
+<a href="https://twitter.com/avalanche_net"><i class="fa fa-twitter fa-3x"></i></a>
2
+<a href="https://www.facebook.com/pages/Avalanche-Network/932907863393529"><i class="fa fa-facebook-square fa-3x"></i></a>
3
+<a href="https://plus.google.com/106797406122101652361" rel="publisher"><i class="fa fa-google-plus fa-3x"></i></a>

+ 32 - 0
features/mission_editor.feature

@@ -66,6 +66,38 @@ Feature: Mission Editor
66 66
 		And within the ".step_form" number "4" I fill in "Step Title" with "Wait for the pickup"
67 67
 		And within the ".step_form" number "4" I fill in "Description" with "Somebody is gonna come and take you to the next checkpoint"
68 68
 		And I click in the button "Save Agent"
69
+		And I click in the link "Add Agent Role"
70
+		Then within "h1" I should see "Add Agent"
71
+		And I fill in "Agent Role" with "Treasure Hunter"
72
+		And I fill in "Objective" with "Follow the step to find the treasure."
73
+		And I fill in "Briefing" with "Follow each step carefully to get to the secret location where the treasure is hidden."
74
+		Then within the ".step_form" number "1" I click in the link "Step"
75
+		Then within the ".step_form" number "1" I fill in "Step Title" with "Go to the train station"
76
+		And  within the ".step_form" number "1" I fill in "Description" with "Start of by going to the train station."
77
+		And  within the ".step_form" number "1" I click in the link "Add Validation"
78
+		And  within the ".step_form" number "1" I click in the link "Text Validation"
79
+		And  within the ".step-validation" number "1" I fill in "Validation description" with "What is the name of the station?"
80
+		And  within the ".step_form" number "1" I click in the link "Add Validation"
81
+		And  within the ".step_form" number "1" I click in the link "Add Validation"
82
+		And  within the ".step_form" number "1" I click in the link "Text Validation"
83
+		And  within the ".step-validation" number "2" I fill in "Validation description" with "What time did you arrive?"
84
+		And I click in the button "Save Agent"
85
+		And I click in the link "Add Agent Role"
86
+		Then within "h1" I should see "Add Agent"
87
+		And I fill in "Agent Role" with "Treasure Hunter"
88
+		And I fill in "Objective" with "Follow the step to find the treasure."
89
+		And I fill in "Briefing" with "Follow each step carefully to get to the secret location where the treasure is hidden."
90
+		Then within the ".step_form" number "1" I click in the link "Step"
91
+		Then within the ".step_form" number "1" I fill in "Step Title" with "Go to the train station"
92
+		And  within the ".step_form" number "1" I fill in "Description" with "Start of by going to the train station."
93
+		And  within the ".step_form" number "1" I click in the link "Add Validation"
94
+		And  within the ".step_form" number "1" I click in the link "Text Validation"
95
+		And  within the ".step-validation" number "1" I fill in "Validation description" with "What is the name of the station?"
96
+		And  within the ".step_form" number "1" I click in the link "Add Validation"
97
+		And  within the ".step_form" number "1" I click in the link "Add Validation"
98
+		And  within the ".step_form" number "1" I click in the link "Text Validation"
99
+		And  within the ".step-validation" number "2" I fill in "Validation description" with "What time did you arrive?"
100
+		And I click in the button "Save Agent"
69 101
 		Then within "h1" I should see "Agents"
70 102
 		And I should see "Treasure Hunter"
71 103
 		And I click in the link "Next"