chore: perauset customer project
This commit is contained in:
22
e2e/tests/steps/kitchen.steps.ts
Normal file
22
e2e/tests/steps/kitchen.steps.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import { When } from '@cucumber/cucumber'
|
||||
import type { PerausetWorld } from '../support/world.js'
|
||||
|
||||
When('I create a meal service of type {string} on {string} with headcount {int}', async function (this: PerausetWorld, serviceType: string, serviceDate: string, plannedHeadcount: number) {
|
||||
await this.post('/kitchen/meal-services', {
|
||||
serviceType,
|
||||
serviceDate,
|
||||
plannedHeadcount,
|
||||
})
|
||||
})
|
||||
|
||||
When('I list meal services', async function (this: PerausetWorld) {
|
||||
await this.get('/kitchen/meal-services')
|
||||
})
|
||||
|
||||
When('I upsert my dietary profile as vegan with nut allergy', async function (this: PerausetWorld) {
|
||||
await this.put('/kitchen/dietary-profile', {
|
||||
isVegan: true,
|
||||
hasNutAllergy: true,
|
||||
allergyNotes: 'Severe nut allergy',
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user