This page tests that TodaysDate (!today) renders in a preformatted text block
- First create a page with a preformatted text in it using TodaysDate
script | |
start | Page Builder |
line | {{{ |
line | today is !today |
line | tomorrow is !today +1 |
line | }}} |
page | TodaysDateInPreformattedText |
- Then request that page
Response Requester. | ||
uri | valid? | contents? |
TodaysDateInPreformattedText | true |
- Make sure the html is correct
Response Examiner. | |||
type | pattern | matches? | wrapped html? |
contents | today is 07 Dec, 2024 | true |
- Check rendered content
Response Examiner. | ||
type | number | string? |
line | 1 | <pre> |
line | 2 | today is 07 Dec, 2024 |
line | 3 | tomorrow is 08 Dec, 2024 |
line | 4 | </pre> |