feat(admin-next, inventory-next, medusa, types): Add admin reservations flow (#7080)
* add reservation endpoints * add changeset * initial * add reservations table * add edit-item modal * udpate inventory item attributes * manage locations skeleton * add combi batch endpoint * cleanup * fix manage locations * add adjust inventory * prep for pr * minor fixes to region domain and api (#7042) * initial reservation * init * update reservation * create reservation * polishing * minor fix * prep for pr * prep for pr * polishing * inventory items reservations * Update packages/admin-next/dashboard/src/v2-routes/reservations/reservation-list/components/reservation-list-table/reservation-list-table.tsx Co-authored-by: Frane Polić <16856471+fPolic@users.noreply.github.com> * fix feedback * rename to ispending --------- Co-authored-by: Kasper Fabricius Kristensen <45367945+kasperkristensen@users.noreply.github.com> Co-authored-by: Frane Polić <16856471+fPolic@users.noreply.github.com>
This commit is contained in:
@@ -190,6 +190,25 @@ medusaIntegrationTestRunner({
|
||||
})
|
||||
})
|
||||
|
||||
it("should update a reservation item description", async () => {
|
||||
await breaking(null, async () => {
|
||||
const reservationResponse = await api.post(
|
||||
`/admin/reservations/${reservationId}`,
|
||||
{
|
||||
description: "test description 1",
|
||||
},
|
||||
adminHeaders
|
||||
)
|
||||
|
||||
expect(reservationResponse.status).toEqual(200)
|
||||
expect(reservationResponse.data.reservation).toEqual(
|
||||
expect.objectContaining({
|
||||
description: "test description 1",
|
||||
})
|
||||
)
|
||||
})
|
||||
})
|
||||
|
||||
it("should update a reservation item", async () => {
|
||||
await breaking(null, async () => {
|
||||
const reservationResponse = await api.post(
|
||||
|
||||
Reference in New Issue
Block a user