use default config for login specs

This commit is contained in:
Jacob Overgaard
2022-08-04 14:49:22 +02:00
parent 50f45920a0
commit b1398d38af

View File

@@ -1,7 +1,5 @@
import { expect, test } from '@playwright/test';
import config from '../playwright.config';
test('login', async ({ page }) => {
// Go to /login
await page.goto('/login');
@@ -15,5 +13,5 @@ test('login', async ({ page }) => {
// Click [aria-label="Login"]
await page.locator('[aria-label="Login"]').click();
await expect(page).toHaveURL(`${config.use?.baseURL}/section/content/dashboard/welcome`);
await expect(page).toHaveURL(`/section/content/dashboard/welcome`);
});