test(e2e): update all E2E specs for latest API and fixtures
Update 17 E2E test files including admin, auth, inquiries, listings, payments, search, subscriptions, and MCP specs. Update listings fixture and global setup to align with latest schema changes. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -6,7 +6,7 @@ test.describe('POST /auth/login', () => {
|
||||
const user = createTestUser();
|
||||
await registerUser(request, user);
|
||||
|
||||
const res = await request.post('/auth/login', {
|
||||
const res = await request.post('auth/login', {
|
||||
data: { phone: user.phone, password: user.password },
|
||||
});
|
||||
|
||||
@@ -20,7 +20,7 @@ test.describe('POST /auth/login', () => {
|
||||
const user = createTestUser();
|
||||
await registerUser(request, user);
|
||||
|
||||
const res = await request.post('/auth/login', {
|
||||
const res = await request.post('auth/login', {
|
||||
data: { phone: user.phone, password: 'WrongPassword!1' },
|
||||
});
|
||||
|
||||
@@ -29,7 +29,7 @@ test.describe('POST /auth/login', () => {
|
||||
});
|
||||
|
||||
test('rejects login with non-existent phone', async ({ request }) => {
|
||||
const res = await request.post('/auth/login', {
|
||||
const res = await request.post('auth/login', {
|
||||
data: { phone: '0900000001', password: 'Test@1234!' },
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user