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: docs/test/actions.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -181,9 +181,9 @@ Learn more in [Handling a REST API response](../metadata.md#rest-response).
181
181
182
182
## Actions specifying HTML values
183
183
184
-
To use HTML in actions you must encode the HTML string using a tool. We recommend [CyberChef](https://gchq.github.io/CyberChef/#recipe=To_HTML_Entity(false,'Numeric%20entities')). Using CyberChef or a similar tool is easy. You just need to enter in your HTML string, copy the encoded result, and paste that value into your MFTF test.
184
+
To use HTML in actions you must encode the HTML string. We recommend using [CyberChef](https://gchq.github.io/CyberChef/#recipe=To_HTML_Entity(false,'Numeric%20entities')). Using CyberChef or a similar tool is straightforward: enter in your HTML string, copy the encoded result, and paste that value into your MFTF test.
185
185
186
-
For example, we want to ensure we don't see this HTML: `<h1 class="login-header">`
186
+
For example, we want to ensure that this value is presented as a string and not rendered as a H1 tag: `<h1 class="login-header">`
187
187
188
188
After passing `<h1 class="login-header">` through CyberChef we get `<h1 class="login-header">` which can be used in a test like:
189
189
@@ -880,7 +880,7 @@ See [dontSeeInSource docs on codeception.com](http://codeception.com/docs/module
880
880
881
881
Attribute|Type|Use|Description
882
882
---|---|---|---
883
-
`html`|string|optional| HTML code to search for within the source code. The value must be encoded. See example.
883
+
`html`|string|optional| HTML code to search for within the source code. The value must be entity-encoded. See example.
884
884
`stepKey`|string|required| A unique identifier of the action.
885
885
`skipReadiness`|boolean|optional| A flag to skip the readiness check.
886
886
`before`|string|optional| `stepKey` of action that must be executed next.
@@ -1976,7 +1976,7 @@ See [seeInSource docs on codeception.com](http://codeception.com/docs/modules/We
1976
1976
1977
1977
Attribute|Type|Use|Description
1978
1978
---|---|---|---
1979
-
`html`|string|optional| HTML code to be searched for within the page source. The value must be encoded. See example.
1979
+
`html`|string|optional| HTML code to be searched for within the page source. The value must be entity-encoded. See example.
1980
1980
`stepKey`|string|required| A unique identifier of the action.
1981
1981
`skipReadiness`|boolean|optional| A flag to skip the readiness check.
1982
1982
`before`|string|optional| `stepKey` of action that must be executed next.
0 commit comments