chore: perauset customer project
This commit is contained in:
29
e2e/tests/features/kitchen.feature
Normal file
29
e2e/tests/features/kitchen.feature
Normal file
@@ -0,0 +1,29 @@
|
||||
Feature: Kitchen Management
|
||||
|
||||
Scenario: Create meal service as admin
|
||||
Given I login as "admin@perauset.org"
|
||||
When I create a meal service of type "lunch" on "2026-07-01" with headcount 20
|
||||
Then the response status should be 200
|
||||
And the response body field "status" should be "planned"
|
||||
And I store the response field "serviceId" as "serviceId"
|
||||
|
||||
Scenario: List meal services
|
||||
Given I login as "admin@perauset.org"
|
||||
When I create a meal service of type "breakfast" on "2026-07-02" with headcount 15
|
||||
Then the response status should be 200
|
||||
When I list meal services
|
||||
Then the response status should be 200
|
||||
And the response body field "items" should be truthy
|
||||
|
||||
Scenario: Upsert dietary profile
|
||||
Given a user "member@test.org" exists with roles "community_member"
|
||||
And I login as "member@test.org"
|
||||
When I upsert my dietary profile as vegan with nut allergy
|
||||
Then the response status should be 200
|
||||
And the response body field "profileId" should be truthy
|
||||
|
||||
Scenario: Unpermissioned user cannot create meal services
|
||||
Given a user "guest@test.org" exists with roles "guest"
|
||||
And I login as "guest@test.org"
|
||||
When I create a meal service of type "dinner" on "2026-07-03" with headcount 10
|
||||
Then the response status should be 403
|
||||
Reference in New Issue
Block a user