Skip to content

Commit

Permalink
Exercise: Fix behat test to use 100 % instead of 100% BT#17983
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Nov 18, 2020
1 parent 75f0581 commit 8c595e4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions tests/behat/features/bootstrap/FeatureContext.php
Expand Up @@ -554,8 +554,8 @@ public function visitSavedUrlWithName($name)
/**
* Example: Then I should see the table "#category_results":
* | Categories | Absolute score | Relative score |
* | Categoryname2 | 50 / 70 | 71.43% |
* | Categoryname1 | 60 / 60 | 100% |
* | Categoryname2 | 50 / 70 | 71.43 % |
* | Categoryname1 | 60 / 60 | 100 % |
*
* @Then /^I should see the table "([^"]*)":$/
*
Expand Down
16 changes: 8 additions & 8 deletions tests/behat/features/toolExercise.feature
Expand Up @@ -402,10 +402,10 @@ Feature: Exercise tool
Then I should see "Score for the test: 190 / 190"
And I should see the table "#category_results":
| Categories | Absolute score | Relative score |
| Categoryname2 | 50 / 70 | 71.43% |
| Categoryname1 | 60 / 60 | 100% |
| none | 80 / 60 | 133.33% |
| Total | 190 / 190 | 100% |
| Categoryname2 | 50 / 70 | 71.43 % |
| Categoryname1 | 60 / 60 | 100 % |
| none | 80 / 60 | 133.33 % |
| Total | 190 / 190 | 100 % |

Scenario: Teacher looks at exercise results by categories
Given I am on "/user_portal.php"
Expand All @@ -420,10 +420,10 @@ Feature: Exercise tool
Then I should see "Score for the test: 190 / 190"
And I should see the table "#category_results":
| Categories | Absolute score | Relative score |
| Categoryname2 | 50 / 70 | 71.43% |
| Categoryname1 | 60 / 60 | 100% |
| none | 80 / 60 | 133.33% |
| Total | 190 / 190 | 100% |
| Categoryname2 | 50 / 70 | 71.43 % |
| Categoryname1 | 60 / 60 | 100 % |
| none | 80 / 60 | 133.33 % |
| Total | 190 / 190 | 100 % |

Scenario: Delete an exercise
Given I am on "/main/exercise/exercise.php?cidReq=TEMP"
Expand Down

0 comments on commit 8c595e4

Please sign in to comment.