(e2e) fix flaky test

The URL may or may not include the "page" query parameter.
This commit is contained in:
Quentin BEY
2024-12-16 15:27:44 +01:00
committed by BEY Quentin
parent dd9a905dc0
commit 6e14c2e61f

View File

@@ -10,7 +10,7 @@ const interceptCommonApiCalls = async (
arrayMailDomains: MailDomain[],
) => {
const singleMailDomain = arrayMailDomains[0];
await page.route('**/api/v1.0/mail-domains/?page=*', async (route) => {
await page.route('**/api/v1.0/mail-domains/\?*', async (route) => {
await route.fulfill({
json: {
count: arrayMailDomains.length,