This test ensures that we can keep refreshing a page until a condition is NOT met.

We use a mock server running to serve the HTML defined in this page.


!define HTML { {{{
<html>
<body>
<label for="field">Counter</label>
<input id="field" value="1">
</body>
</html>}}} }


!define HTML4 { {{{
<html>
<body>
<label for="field">Counter</label>
<input id="field" value="4">
</body>
</html>}}} }

|script      |mock xml server setup|
|add response|${HTML}              |
|add response|${HTML}              |
|add response|${HTML}              |
|add response|${HTML4}             |
|add response|${HTML}              |
|$url=       |get mock server url  |

|script                |browser test          |
|open                  |$url                  |
|repeat at most        |10          |times    |
|seconds before timeout|1                     |
|refresh until value of|Counter     |is not |1|
|check                 |repeat count|3        |
|check                 |value of    |Counter|4|

|script|mock xml server setup|
|stop                        |

