Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski
2025-01-27 13:47:59 +00:00
parent 9df36659c4
commit 0d7963681e
3 changed files with 12 additions and 5 deletions

View File

@@ -29,7 +29,9 @@ export async function registerAccountMas(
let code: string;
await expect(async () => {
const text = await mailpit.renderMessageText();
const messages = await mailpit.listMessages();
expect(messages.messages[0].To[0].Address).toEqual(email);
const text = await mailpit.renderMessageText(messages.messages[0].ID);
[, code] = text.match(/Your verification code to confirm this email address is: (\d{6})/);
}).toPass();