fix: Ensure passed Id filters get applied on top of maybe link filter (#7182)

This commit is contained in:
Stevche Radevski
2024-05-01 11:25:24 +02:00
committed by GitHub
parent 3bf6e50744
commit d930d88369
5 changed files with 62 additions and 1 deletions

View File

@@ -247,6 +247,18 @@ medusaIntegrationTestRunner({
])
})
it("should list products by id", async () => {
let response = await api.get(`/store/products?id[]=${product.id}`)
expect(response.status).toEqual(200)
expect(response.data.count).toEqual(1)
expect(response.data.products).toEqual([
expect.objectContaining({
id: product.id,
}),
])
})
it("should throw error when publishable key is invalid", async () => {
let error = await api
.get(`/store/products?sales_channel_id[]=does-not-exist`, {