📦️ 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,12 +1,12 @@
import { expect, Page, test } from "@playwright/test";
import smtpTester, { SmtpTester } from "smtp-tester";
import smtpTester, { MailServer } from "smtp-tester";
import { EditOptionsPage } from "tests/edit-options-page";
import { NewPollPage } from "tests/new-poll-page";
test.describe("edit options", () => {
let page: Page;
let editOptionsPage: EditOptionsPage;
let mailServer: SmtpTester;
let mailServer: MailServer;
test.beforeAll(async ({ browser }) => {
page = await browser.newPage();
@ -19,7 +19,7 @@ test.describe("edit options", () => {
});
test.afterAll(async () => {
mailServer.stop();
mailServer.stop(() => {});
});
test("should show warning when deleting options with votes in them", async () => {