Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
lemonldap-ng
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xavier Bachelot
lemonldap-ng
Commits
33b0942a
Commit
33b0942a
authored
Dec 27, 2019
by
Christophe Maudoux
🐛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve unit test (
#2019
)
parent
4c859032
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
lemonldap-ng-portal/t/41-Captcha.t
lemonldap-ng-portal/t/41-Captcha.t
+6
-1
No files found.
lemonldap-ng-portal/t/41-Captcha.t
View file @
33b0942a
...
...
@@ -6,7 +6,7 @@ require 't/test-lib.pm';
my
$res
;
my
$maintests
=
2
4
;
my
$maintests
=
2
5
;
SKIP:
{
eval
'
use GD::SecurityImage;use Image::Magick;
';
if
(
$@
)
{
...
...
@@ -112,6 +112,11 @@ m%<input name="password" type="text" class="form-control key" autocomplete="off"
ok
(
$newtoken
ne
$token
,
'
Token is refreshed
'
);
ok
(
$res
->
[
2
]
->
[
0
]
=~
m#<img id="captcha" src="data:image/png;base64#
,
'
New captcha image inserted
'
);
ok
(
$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" />#
,
'
Renew Captcha button found
'
);
# Try to renew captcha
ok
(
$res
=
$client
->
_get
(
'
/renewcaptcha
',
accept
=>
'
text/html
'
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment