You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: general/development/tools/behat/writing.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -134,26 +134,26 @@ Most of the steps requires values, there are methods to provide values to steps,
134
134
- optgroup - for searching optgroup by its label
135
135
- option - for searching an option by its content
136
136
- dialogue - for searching a dialogue with the specified header text
137
-
- filemanager - for searching a filemanager by it's id or label
138
-
- block - for searching a Moodle block by it's English name or it's frankenstyle name
139
-
- section - for searching for a section on a course page by it's title or its written out date (e.g. "1 January - 7 January"). Use "frontpage" "section" for the frontpage section if it has no title (default)
140
-
- activity - for searching for an activity module in a course list by it's title
137
+
- filemanager - for searching a filemanager by its id or label
138
+
- block - for searching a Moodle block by its English name or its frankenstyle name
139
+
- section - for searching for a section on a course page by its title or its written out date (e.g. "1 January - 7 January"). Use "frontpage" "section" for the frontpage section if it has no title (default)
140
+
- activity - for searching for an activity module in a course list by its title
141
141
- region - for searching a Moodle page region with that id, in fact it works with all ids for <tt>div</tt>, <tt>section</tt>, <tt>aside</tt>, <tt>header</tt> or <tt>footer</tt> elements.
142
142
- table_row - for searching a table row which contains the specified text
143
143
- table - for searching a table by its id or caption
144
144
- icon - for searching an icon by its title
145
-
- fieldset - for searching a fieldset by it's id or legend
145
+
- fieldset - for searching a fieldset by its id or legend
146
146
- css_element - for searching an element by its CSS selector
147
147
- xpath_element - for searching an element by its XPath
148
148
-**A text selector** similar to a selector but those are the elements that returns an area of the DOM, they are useful in steps following the format **... in the "Community finder" "block"** where you are clicking or looking for some text inside a specific area. In the 'Acceptance testing' interface you can see a drop-down menu to select one of these options:
149
149
- dialogue - for searching a dialogue with the specified header text
150
-
- block - for searching a Moodle block by it's English name or it's frankenstyle name
151
-
- section - for searching for a section on a course page by it's title or its written out date (e.g. "1 January - 7 January"). Use "frontpage" "section" for the frontpage section if it has no title (default)
152
-
- activity - for searching for an activity module in a course list by it's title
150
+
- block - for searching a Moodle block by its English name or its frankenstyle name
151
+
- section - for searching for a section on a course page by its title or its written out date (e.g. "1 January - 7 January"). Use "frontpage" "section" for the frontpage section if it has no title (default)
152
+
- activity - for searching for an activity module in a course list by its title
153
153
- region - for searching a Moodle page region with that id, in fact it works with all ids for <tt>div</tt>, <tt>section</tt>, <tt>aside</tt>, <tt>header</tt> or <tt>footer</tt> elements.
154
154
- table_row - for searching a table row which contains the specified text
155
155
- table - for searching a table by its id or caption
156
-
- fieldset - for searching a fieldset by it's id or legend
156
+
- fieldset - for searching a fieldset by its id or legend
157
157
- list_item - for searching a list item which contains the specified text
158
158
- css_element - for searching an element by its CSS selector
159
159
- xpath_element - for searching an element by its XPath
@@ -185,7 +185,7 @@ Note than some tests requires files to be uploaded, in this case
185
185
186
186
- The **I upload "FILEPATH_STRING" file to "FILEPICKER_FIELD_STRING" filepicker** step can be used when located in the form page
187
187
- The file to upload should be included along with the Moodle codebase in `COMPONENTNAME/tests/fixtures/*`
188
-
- The file to upload is specified by it's path, which should be relative to the codebase root (`lib/tests/fixtures/users.csv` for example)
188
+
- The file to upload is specified by its path, which should be relative to the codebase root (`lib/tests/fixtures/users.csv` for example)
189
189
-**/** should be used as directory separator and the file names can not include this **/** character as all of them would be converted to the OS-dependant directory separator to maintain the compatibility with Windows systems.
190
190
- The scenarios that includes files uploading should be tagged using the **@_file_upload** tag
0 commit comments