Skip to content

Commit 6c3b9ba

Browse files
committed
Fix tests by removing \. in regular expression (as it is not included in the email confirmation text anymore to make copying the URL less error-prone)
1 parent 1b0995e commit 6c3b9ba

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

backend/test/Integration/GraphQl/Users/ChangeUserEmailTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ await LoginUser(
4343
EmailsShouldContainSingle(
4444
to: (name, newEmail),
4545
subject: "Confirm your email change",
46-
bodyRegEx: @"^Please confirm your email address change by clicking the link https:\/\/local\.buildingenvelopedata\.org:4041\/users\/confirm-email-change\?currentEmail=john\.doe@ise\.fraunhofer\.de&newEmail=new.john\.doe@ise\.fraunhofer\.de&confirmationCode=\w+\.$"
46+
bodyRegEx: @"^Please confirm your email address change by clicking the link https:\/\/local\.buildingenvelopedata\.org:4041\/users\/confirm-email-change\?currentEmail=john\.doe@ise\.fraunhofer\.de&newEmail=new.john\.doe@ise\.fraunhofer\.de&confirmationCode=\w+$"
4747
);
4848
}
4949

backend/test/Integration/GraphQl/Users/RegisterUserTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public async Task ValidData_RegistersUser()
3535
EmailsShouldContainSingle(
3636
to: (name, email),
3737
subject: "Confirm your email",
38-
bodyRegEx: @"^Please confirm your email address by clicking the link https:\/\/local\.buildingenvelopedata\.org:4041\/users\/confirm-email\?email=john\.doe@ise\.fraunhofer\.de&confirmationCode=\w+\.$"
38+
bodyRegEx: @"^Please confirm your email address by clicking the link https:\/\/local\.buildingenvelopedata\.org:4041\/users\/confirm-email\?email=john\.doe@ise\.fraunhofer\.de&confirmationCode=\w+$"
3939
);
4040
}
4141

backend/test/Integration/GraphQl/Users/ResendUserEmailConfirmationTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ await RegisterUser(
2929
EmailsShouldContainSingle(
3030
to: (name, email),
3131
subject: "Confirm your email",
32-
bodyRegEx: @"^Please confirm your email address by clicking the link https:\/\/local\.buildingenvelopedata\.org:4041\/users\/confirm-email\?email=john\.doe@ise\.fraunhofer\.de&confirmationCode=\w+\.$"
32+
bodyRegEx: @"^Please confirm your email address by clicking the link https:\/\/local\.buildingenvelopedata\.org:4041\/users\/confirm-email\?email=john\.doe@ise\.fraunhofer\.de&confirmationCode=\w+$"
3333
);
3434
}
3535

backend/test/Integration/GraphQl/Users/ResendUserEmailVerificationTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ await RegisterAndConfirmAndLoginUser(
3535
EmailsShouldContainSingle(
3636
to: (name, email),
3737
subject: "Confirm your email",
38-
bodyRegEx: @"^Please confirm your email address by clicking the link https:\/\/local\.buildingenvelopedata\.org:4041\/users\/confirm-email\?email=john\.doe@ise\.fraunhofer\.de&confirmationCode=\w+\.$"
38+
bodyRegEx: @"^Please confirm your email address by clicking the link https:\/\/local\.buildingenvelopedata\.org:4041\/users\/confirm-email\?email=john\.doe@ise\.fraunhofer\.de&confirmationCode=\w+$"
3939
);
4040
}
4141

0 commit comments

Comments
 (0)