mirror of
https://github.com/lukevella/rallly.git
synced 2025-05-20 12:26:20 +02:00
📦️ Update smtp-tester and fix test environment config (#1181)
This commit is contained in:
parent
0a0c38f1d4
commit
f66653c21a
8 changed files with 45 additions and 128 deletions
|
@ -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 () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue