add git diffs and permission support
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
import { test, expect } from '@playwright/test';
|
||||
import { E2E_BACKEND_URL } from '../playwright.config';
|
||||
|
||||
test.describe('Basic E2E Tests', () => {
|
||||
test('backend health check', async ({ request }) => {
|
||||
const response = await request.get('http://localhost:3000/api/health');
|
||||
const response = await request.get(`${E2E_BACKEND_URL}/api/health`);
|
||||
expect(response.ok()).toBeTruthy();
|
||||
const body = await response.json();
|
||||
expect(body.status).toBe('ok');
|
||||
@@ -15,7 +16,7 @@ test.describe('Basic E2E Tests', () => {
|
||||
});
|
||||
|
||||
test('sessions list loads empty', async ({ request }) => {
|
||||
const response = await request.get('http://localhost:3000/api/sessions');
|
||||
const response = await request.get(`${E2E_BACKEND_URL}/api/sessions`);
|
||||
expect(response.ok()).toBeTruthy();
|
||||
const sessions = await response.json();
|
||||
expect(Array.isArray(sessions)).toBeTruthy();
|
||||
|
||||
Reference in New Issue
Block a user