From 91a24455bc3a166aa9bf7ca8927fa687945a1174 Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Thu, 4 May 2023 11:22:18 +0530 Subject: [PATCH] test: reset license key configuration Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- tests/playwright/setup/index.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/playwright/setup/index.ts b/tests/playwright/setup/index.ts index 8d04b75464..3c75c36e67 100644 --- a/tests/playwright/setup/index.ts +++ b/tests/playwright/setup/index.ts @@ -48,6 +48,12 @@ const setup = async ({ page, isEmptyProject }: { page: Page; isEmptyProject?: bo } const token = response.data.token; + try { + await axios.post(`http://localhost:8080/api/v1/license`, { key: '' }, { headers: { 'xc-auth': token } }); + } catch (e) { + console.error(`Error resetting project: ${process.env.TEST_PARALLEL_INDEX}`, e); + } + await page.addInitScript( async ({ token }) => { try {