Test ID: test_
describe('API Auth Tests', () => {
it('should login with valid credentials', async () => {
const response = await fetch('/api/auth/login', {
method: 'POST',
body: JSON.stringify({
email: 'test@example.com',
password: 'secret123'
})
});
expect(response.status).toBe(200);
const data = await response.json();
expect(data.token).toBeDefined();
});
it('should reject invalid credentials', async () => {
const response = await fetch('/api/auth/login', {
method: 'POST',
body: JSON.stringify({
email: 'wrong@email.com',
password: 'wrongpass'
})
});
expect(response.status).toBe(401);
});
});Latest 4 execution runs
2026-08-23 14:30
Ali V. by
2026-08-23 11:15
Auto by
2026-08-22 16:45
Bekzod T. by
2026-08-22 09:20
Auto by