Commit 884e86f7 authored by Christophe Maudoux's avatar Christophe Maudoux 🐛
Browse files

Improve unit test (#2019)

parent 33b0942a
...@@ -114,9 +114,9 @@ m%<input name="password" type="text" class="form-control key" autocomplete="off" ...@@ -114,9 +114,9 @@ m%<input name="password" type="text" class="form-control key" autocomplete="off"
' New captcha image inserted' ); ' New captcha image inserted' );
ok( ok(
$res->[2]->[0] =~ $res->[2]->[0] =~
m#<img class="renewcaptchaclick" src="/static/common/icons/arrow_refresh.png" alt="Renew Captcha" title="Renew Captcha" class="img-thumbnail mb-3" />#, m#<img class="renewcaptchaclic" src="/static/common/icons/arrow_refresh.png" alt="Renew Captcha" title="Renew Captcha" class="img-thumbnail mb-3" />#,
' Renew Captcha button found' ' Renew Captcha button found'
); ) or explain( $res->[2]->[0], 'Renew captcha button not found' );
# Try to renew captcha # Try to renew captcha
ok( $res = $client->_get( '/renewcaptcha', accept => 'text/html' ), ok( $res = $client->_get( '/renewcaptcha', accept => 'text/html' ),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment