Fix flaky playwright tests (#28989)

* Fix flaky playwright tests

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Fix flaky test

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Iterate

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Iterate

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Add slow

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski
2025-01-14 09:58:32 +00:00
committed by GitHub
parent e2bd040c88
commit 37f8d70d89
6 changed files with 17 additions and 32 deletions

View File

@@ -99,8 +99,8 @@ export const test = base.extend<TestFixtures, Services & Options>({
{ scope: "worker" },
],
mailhogClient: async ({ mailhog: container }, use) => {
await use(container.client);
await container.client.deleteAll();
await use(container.client);
},
synapseConfig: [{}, { scope: "worker" }],
@@ -141,6 +141,5 @@ export const test = base.extend<TestFixtures, Services & Options>({
await logger.onTestStarted(context);
await use(context);
await logger.onTestFinished(testInfo);
await mailhogClient.deleteAll();
},
});