-
-
Notifications
You must be signed in to change notification settings - Fork 286
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
4 changed files
with
45 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -97,6 +97,24 @@ test 'Trying to register with an invalid name' => sub { | |
like($mech->uri, qr{/register}, 'stays on registration page'); | ||
$mech->content_contains('username contains invalid characters', 'form has error message for consecutive spaces in username'); | ||
|
||
$mech->submit_form( with_fields => { | ||
'register.username' => "test\N{HANGUL FILLER}\N{HALFWIDTH HANGUL FILLER}\N{BRAILLE PATTERN BLANK}\N{HANGUL CHOSEONG FILLER}\N{HANGUL JUNGSEONG FILLER}", | ||
'register.password' => 'foo', | ||
'register.confirm_password' => 'foo', | ||
'register.email' => '[email protected]', | ||
}); | ||
like($mech->uri, qr{/register}, 'stays on registration page'); | ||
$mech->content_contains('username contains invalid characters', 'form has error message for invisible characters in username'); | ||
|
||
$mech->submit_form( with_fields => { | ||
'register.username' => "test\N{TAG LATIN CAPITAL LETTER T}\N{TAG LATIN CAPITAL LETTER E}\N{TAG LATIN CAPITAL LETTER S}\N{TAG LATIN CAPITAL LETTER T}", | ||
'register.password' => 'foo', | ||
'register.confirm_password' => 'foo', | ||
'register.email' => '[email protected]', | ||
}); | ||
like($mech->uri, qr{/register}, 'stays on registration page'); | ||
$mech->content_contains('username contains invalid characters', 'form has error message for tag characters in username'); | ||
|
||
$mech->submit_form( with_fields => { | ||
'register.username' => 'looks://like_a_url_to_me', | ||
'register.password' => 'foo', | ||
|