Dev and Test run fixed. New Datepicker. Tests fixed. Message bookmarking fixed.
This commit is contained in:
@@ -6,7 +6,7 @@ test.describe('Smoke Tests - Backend Refactor', () => {
|
||||
const password = 'password123';
|
||||
|
||||
// 1. Register
|
||||
const registerRes = await request.post('http://localhost:3001/api/auth/register', {
|
||||
const registerRes = await request.post('http://localhost:3201/api/auth/register', {
|
||||
data: { email, password }
|
||||
});
|
||||
expect(registerRes.ok()).toBeTruthy();
|
||||
@@ -17,7 +17,7 @@ test.describe('Smoke Tests - Backend Refactor', () => {
|
||||
const token = registerBody.data.token;
|
||||
|
||||
// 2. Get Exercises
|
||||
const exercisesRes = await request.get('http://localhost:3001/api/exercises', {
|
||||
const exercisesRes = await request.get('http://localhost:3201/api/exercises', {
|
||||
headers: { Authorization: `Bearer ${token}` }
|
||||
});
|
||||
expect(exercisesRes.ok()).toBeTruthy();
|
||||
@@ -26,7 +26,7 @@ test.describe('Smoke Tests - Backend Refactor', () => {
|
||||
expect(Array.isArray(exercisesBody.data)).toBe(true);
|
||||
|
||||
// 3. Create Session
|
||||
const sessionRes = await request.post('http://localhost:3001/api/sessions', {
|
||||
const sessionRes = await request.post('http://localhost:3201/api/sessions', {
|
||||
headers: { Authorization: `Bearer ${token}` },
|
||||
data: {
|
||||
id: "test-session-" + Date.now(),
|
||||
@@ -40,7 +40,7 @@ test.describe('Smoke Tests - Backend Refactor', () => {
|
||||
expect(sessionBody.data).toHaveProperty('id');
|
||||
|
||||
// 4. Get Active Session
|
||||
const activeRes = await request.get('http://localhost:3001/api/sessions/active', {
|
||||
const activeRes = await request.get('http://localhost:3201/api/sessions/active', {
|
||||
headers: { Authorization: `Bearer ${token}` }
|
||||
});
|
||||
expect(activeRes.ok()).toBeTruthy();
|
||||
|
||||
Reference in New Issue
Block a user