diff --git a/tests/login.test.ts b/tests/login.test.ts index dcc6a8b..cc1f046 100644 --- a/tests/login.test.ts +++ b/tests/login.test.ts @@ -1,6 +1,8 @@ import { test, expect } from '@playwright/test'; import { config } from './config'; +test.describe.configure({ mode: 'parallel' }); + test('Login with registered email and correct password', async ({ browser, }) => { @@ -24,7 +26,7 @@ test('Login with registered email and correct password', async ({ } catch (error) { console.log('Login with registered email and correct password failed'); } finally { - await browser.close(); + await context.close(); } }); @@ -53,7 +55,7 @@ test('Login with registered email and incorrect password', async ({ } catch (error) { console.log('Login with registered email and incorrect password failed'); } finally { - await browser.close(); + await context.close(); } }); @@ -81,6 +83,6 @@ test('Login with unregistered email', async ({ browser }) => { console.log('Login with unregistered email failed'); console.error(error); } finally { - await browser.close(); + await context.close(); } }); diff --git a/tests/logout.test.ts b/tests/logout.test.ts index c835fc4..bbd9b7c 100644 --- a/tests/logout.test.ts +++ b/tests/logout.test.ts @@ -22,6 +22,6 @@ test('Logout after login', async ({ browser }) => { console.log('Logout failed'); console.error(error); } finally { - await browser.close(); + await context.close(); } });