Skip to content

Commit 7925287

Browse files
authored
Small edits.
1 parent b8b4d25 commit 7925287

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/test/actions.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,9 @@ Learn more in [Handling a REST API response](../metadata.md#rest-response).
181181

182182
## Actions specifying HTML values
183183

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.
185185

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">`
187187

188188
After passing `<h1 class="login-header">` through CyberChef we get `&#60;h1 class&#61;&#34;login-header&#34;&#62;` which can be used in a test like:
189189

@@ -880,7 +880,7 @@ See [dontSeeInSource docs on codeception.com](http://codeception.com/docs/module
880880

881881
Attribute|Type|Use|Description
882882
---|---|---|---
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.
884884
`stepKey`|string|required| A unique identifier of the action.
885885
`skipReadiness`|boolean|optional| A flag to skip the readiness check.
886886
`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
19761976

19771977
Attribute|Type|Use|Description
19781978
---|---|---|---
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.
19801980
`stepKey`|string|required| A unique identifier of the action.
19811981
`skipReadiness`|boolean|optional| A flag to skip the readiness check.
19821982
`before`|string|optional| `stepKey` of action that must be executed next.

0 commit comments

Comments
 (0)