Fix behat toolExercise test

pull/3285/head
Angel Fernando Quiroz Campos 5 years ago
parent 4fe421dc9b
commit f4bc362089
  1. 26
      tests/behat/features/toolExercise.feature

@ -262,13 +262,12 @@ Feature: Exercise tool
# Question 1
Then I should see "Multiple choice"
And I check the "Answer true" radio button
And wait for the page to be loaded
Then I press "Next question"
# Question 2
And wait for the page to be loaded
# Question 2
And I check the "Answer true" radio button
And wait for the page to be loaded
Then I press "Next question"
And wait for the page to be loaded
# Question 3
Then I fill in the following:
| choice_id_3_0 | Juliet |
@ -284,37 +283,41 @@ Feature: Exercise tool
| choice_id_3_10 | cherchent à |
| choice_id_3_11 | Übung |
Then I fill in select bootstrap static by text "#choice_id_3_12" select "Ärger"
And wait for the page to be loaded
Then I press "Next question"
And wait for the page to be loaded
# Question 4 - Matching
Then I select "A" from "choice_id_4_1"
Then I select "B" from "choice_id_4_2"
Then I press "Next question"
And wait for the page to be loaded
# Question 5 - Open question
Then wait for the page to be loaded
Then I fill the only ckeditor in the page with "Hello you"
Then wait for the page to be loaded
Then I press "Next question"
And wait for the page to be loaded
# Question 6 - Oral question
Then wait for the page to be loaded
Then I press "Next question"
And wait for the page to be loaded
# Question 7 - Exact answers combination
Then I check "Answer true"
Then I press "Next question"
Then wait for the page to be loaded
And wait for the page to be loaded
# Question 8 - Unique answer with unknown
And I check the "Answer true" radio button
Then I press "Next question"
Then wait for the page to be loaded
And wait for the page to be loaded
# Question 9 - Multiple answer true - false - dont know
#@todo
Then I press "Next question"
And wait for the page to be loaded
# Question 10 - Combination true - false - don't-know
#@todo
Then I press "Next question"
And wait for the page to be loaded
# Question 11 - Global multiple answer
Then I check "Answer true"
Then I press "End test"
And wait for the page to be loaded
Then I should see "Hello you"
Then I should see "Score for the test: 83 / 117"
@ -364,22 +367,28 @@ Feature: Exercise tool
And I follow "Start test"
When wait for the page to be loaded
And I press "Next question"
And wait for the page to be loaded
And I check "oligarchy"
And I check "oligopoly"
And I check "timocracy"
And I check "autocracy"
And I press "Next question"
And wait for the page to be loaded
And I check the "semantics" radio button
And I press "Next question"
And wait for the page to be loaded
And I check the "RNASL" radio button
And I press "Next question"
And wait for the page to be loaded
And I check the "10" radio button
And I press "Next question"
And wait for the page to be loaded
And fill in the following:
| choice_id_6_0 | words |
| choice_id_6_1 | fill |
| choice_id_6_2 | blanks |
And I press "Next question"
And wait for the page to be loaded
And I select "A" from "choice_id_7_1"
And I select "B" from "choice_id_7_2"
And I select "C" from "choice_id_7_3"
@ -389,6 +398,7 @@ Feature: Exercise tool
And I press "Next question"
And wait for the page to be loaded
And I press "End test"
And wait for the page to be loaded
Then I should see "Score for the test: 190 / 190"
And I should see the table "#category_results":
| Categories | Absolute score | Relative score |

Loading…
Cancel
Save