Skip to content

Commit a127fb8

Browse files
committed
docs: add method titles
1 parent ef6dee9 commit a127fb8

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

user_guide_src/source/testing/response.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@ The response you get back contains a number of helper methods to inspect the HTM
143143
are useful for using within assertions in your tests.
144144

145145
The **see()** method checks the text on the page to see if it exists either by itself, or more specifically within
146+
see()
147+
-----
148+
146149
a tag, as specified by type, class, or id:
147150

148151
.. literalinclude:: response/018.php
@@ -152,19 +155,31 @@ The **dontSee()** method is the exact opposite:
152155
.. literalinclude:: response/019.php
153156

154157
The **seeElement()** and **dontSeeElement()** are very similar to the previous methods, but do not look at the
158+
seeElement()
159+
------------
160+
155161
values of the elements. Instead, they simply check that the elements exist on the page:
156162

157163
.. literalinclude:: response/020.php
158164

159165
You can use **seeLink()** to ensure that a link appears on the page with the specified text:
166+
seeLink()
167+
---------
168+
160169

161170
.. literalinclude:: response/021.php
162171

163172
The **seeInField()** method checks for any input tags exist with the name and value:
173+
seeInField()
174+
------------
175+
164176

165177
.. literalinclude:: response/022.php
166178

167179
Finally, you can check if a checkbox exists and is checked with the **seeCheckboxIsChecked()** method:
180+
seeCheckboxIsChecked()
181+
----------------------
182+
168183

169184
.. literalinclude:: response/023.php
170185

0 commit comments

Comments
 (0)