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:
@@ -14,7 +14,7 @@ test.describe('POST /listings/:id/media — Media upload', () => {
|
||||
});
|
||||
|
||||
test('rejects unauthenticated media upload', async ({ request }) => {
|
||||
const res = await request.post(`/listings/${listingId}/media`, {
|
||||
const res = await request.post(`listings/${listingId}/media`, {
|
||||
multipart: {
|
||||
file: {
|
||||
name: 'test.jpg',
|
||||
@@ -28,7 +28,7 @@ test.describe('POST /listings/:id/media — Media upload', () => {
|
||||
});
|
||||
|
||||
test('rejects upload without file', async ({ request }) => {
|
||||
const res = await request.post(`/listings/${listingId}/media`, {
|
||||
const res = await request.post(`listings/${listingId}/media`, {
|
||||
headers: { Authorization: `Bearer ${accessToken}` },
|
||||
multipart: {
|
||||
caption: 'Missing file',
|
||||
@@ -40,7 +40,7 @@ test.describe('POST /listings/:id/media — Media upload', () => {
|
||||
});
|
||||
|
||||
test('rejects upload with invalid MIME type', async ({ request }) => {
|
||||
const res = await request.post(`/listings/${listingId}/media`, {
|
||||
const res = await request.post(`listings/${listingId}/media`, {
|
||||
headers: { Authorization: `Bearer ${accessToken}` },
|
||||
multipart: {
|
||||
file: {
|
||||
@@ -56,7 +56,7 @@ test.describe('POST /listings/:id/media — Media upload', () => {
|
||||
});
|
||||
|
||||
test('rejects upload for non-existent listing', async ({ request }) => {
|
||||
const res = await request.post('/listings/non-existent-id/media', {
|
||||
const res = await request.post('listings/non-existent-id/media', {
|
||||
headers: { Authorization: `Bearer ${accessToken}` },
|
||||
multipart: {
|
||||
file: {
|
||||
|
||||
Reference in New Issue
Block a user