Skip to content

Commit fca89d2

Browse files
TD-4624 Fixing the test that is failing
1 parent 23c869e commit fca89d2

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

DigitalLearningSolutions.Web.Tests/TestHelpers/ErrorMessagesTestHelper.cs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,16 @@ public static class ErrorMessagesTestHelper
55
{
66
public const string InvalidFormatError =
77
@"The format you entered isn’t recognised. Please check and try again.
8-
Valid formats include
9-
7 digits - example, 1234567
10-
1-2 letters followed by 6 digits - example, AB123456
11-
‘P’ followed by 5-6 digits - example, P12345, P123456
12-
‘C’ or ‘P’ followed by 6 digits - example, C123456, P123456
13-
Optional letter followed by 5-6 digits - example, A12345, B123456
14-
‘L’ followed by 4-6 digits - example, L1234, L123456
15-
2 digits, hyphen, then 4-5 alphanumeric characters - example, 12-AB123";
8+
<br>Valid formats include:
9+
<ul>
10+
<li>7 digits - example, 1234567</li>
11+
<li>1–2 letters followed by 6 digits - example, AB123456</li>
12+
<li>‘P’ followed by 5–6 digits - example, P12345, P123456</li>
13+
<li>‘C’ or ‘P’ followed by 6 digits - example, C123456, P123456</li>
14+
<li>Optional letter followed by 5–6 digits - example, A12345, B123456</li>
15+
<li>‘L’ followed by 4–6 digits - example, L1234, L123456</li>
16+
<li>2 digits, hyphen, then 4–5 alphanumeric characters - example, 12-AB123</li>
17+
</ul>";
1618

1719
public const string MissingNumberError = "Enter a professional registration number";
1820
public const string LengthError = "Professional registration number must be between 4 and 8 characters";

0 commit comments

Comments
 (0)