📦️ Update smtp-tester and fix test environment config (#1181)

This commit is contained in:
Luke Vella 2024-06-27 14:37:00 +01:00 committed by GitHub
parent 0a0c38f1d4
commit f66653c21a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 45 additions and 128 deletions

View file

@ -1,18 +1,18 @@
import { expect, Page, test } from "@playwright/test";
import smtpTester, { SmtpTester } from "smtp-tester";
import smtpTester, { MailServer } from "smtp-tester";
import { NewPollPage } from "tests/new-poll-page";
test.describe.serial(() => {
let page: Page;
let mailServer: SmtpTester;
let mailServer: MailServer;
test.beforeAll(async ({ browser }) => {
page = await browser.newPage();
mailServer = smtpTester.init(4025);
});
test.afterAll(async () => {
mailServer.stop();
mailServer.stop(() => {});
});
test("create a new poll", async () => {