diff --git a/tests/config.ts b/tests/config.ts new file mode 100644 index 000000000..a2bab70e8 --- /dev/null +++ b/tests/config.ts @@ -0,0 +1 @@ +export const API_URL = 'https://localhost:8080'; diff --git a/tests/scenarios/main.spec.ts b/tests/scenarios/appIntegrity.spec.ts similarity index 55% rename from tests/scenarios/main.spec.ts rename to tests/scenarios/appIntegrity.spec.ts index 6d2dea2ef..da2661897 100644 --- a/tests/scenarios/main.spec.ts +++ b/tests/scenarios/appIntegrity.spec.ts @@ -1,7 +1,8 @@ import { test, expect } from '@playwright/test'; +import { API_URL } from '../config'; -test('should display sign in page', async ({ page }) => { - await page.goto('https://localhost:10000'); +test('I can see sign in page', async ({ page }) => { + await page.goto(API_URL); await expect(page.getByRole('button', { name: /sign in with google/i })).toBeVisible(); });