MDL-66109 behat: Fix Example usage in feature files
authorAndrew Nicols <andrew@nicols.co.uk>
Wed, 22 Apr 2020 03:00:40 +0000 (11:00 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Mon, 11 May 2020 02:55:58 +0000 (10:55 +0800)
commit149d80e8190227c2dcc636e6198b259c2ffe6cf7
treeee1d3210cdf568954d923f8c39a4d756e2c9e006
parentbf6630a832354edacd1ebd44ed98f0693475f809
MDL-66109 behat: Fix Example usage in feature files

The gherkin-lint package now understands the use of "Examples" and
requries that their indentation be correct and consistent.

This change sets the indentatation for these to:

    "Examples": 4,
    "example": 6,

This is in-line with the examples given in the offical Cucumber/Gherkin
documentation at
https://cucumber.io/docs/gherkin/reference/#scenario-outline whereby the
Examples and individual rows of the Examples table are children of the
Scenario outline.

This is contrary to the default for Gherkin-lint which places them as
top-level nodes with an indentatio of 0, and 2 respectively.
12 files changed:
.gherkin-lintrc
course/tests/behat/category_resort.feature
course/tests/behat/course_category_management_listing.feature
course/tests/behat/course_resort.feature
grade/grading/form/rubric/tests/behat/grade_calculation.feature
grade/tests/behat/grade_override_letter.feature
mod/lesson/tests/behat/duplicate_lesson_page.feature
mod/resource/tests/behat/display_resource.feature
question/format/aiken/tests/behat/aiken_import.feature
user/tests/behat/filter_idnumber.feature
user/tests/behat/filter_participants.feature
user/tests/behat/set_default_homepage.feature