Browse Source

test: reset license key configuration

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/5530/head
Raju Udava 2 years ago
parent
commit
91a24455bc
  1. 6
      tests/playwright/setup/index.ts

6
tests/playwright/setup/index.ts

@ -48,6 +48,12 @@ const setup = async ({ page, isEmptyProject }: { page: Page; isEmptyProject?: bo
} }
const token = response.data.token; 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( await page.addInitScript(
async ({ token }) => { async ({ token }) => {
try { try {

Loading…
Cancel
Save