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:
Ho Ngoc Hai
2026-04-11 01:40:45 +07:00
parent 9914d02439
commit da10ac64c6
18 changed files with 132 additions and 119 deletions

View File

@@ -2,7 +2,7 @@ import { test, expect } from '../fixtures';
test.describe('PATCH /auth/kyc — KYC verification (admin only)', () => {
test('rejects unauthenticated KYC update', async ({ request }) => {
const res = await request.patch('/auth/kyc', {
const res = await request.patch('auth/kyc', {
data: {
userId: 'some-user-id',
kycStatus: 'VERIFIED',
@@ -13,7 +13,7 @@ test.describe('PATCH /auth/kyc — KYC verification (admin only)', () => {
});
test('rejects KYC update from non-admin user', async ({ authedRequest }) => {
const res = await authedRequest.patch('/auth/kyc', {
const res = await authedRequest.patch('auth/kyc', {
data: {
userId: 'some-user-id',
kycStatus: 'VERIFIED',
@@ -25,7 +25,7 @@ test.describe('PATCH /auth/kyc — KYC verification (admin only)', () => {
});
test('rejects KYC update with invalid status', async ({ authedRequest }) => {
const res = await authedRequest.patch('/auth/kyc', {
const res = await authedRequest.patch('auth/kyc', {
data: {
userId: 'some-user-id',
kycStatus: 'INVALID_STATUS',