Files
server-serverless-e2e-mqxt29a5/packages/functions/tests/tests/features/message.feature
2026-06-28 15:09:09 +02:00

25 lines
744 B
Gherkin

Feature: Starter message
Background:
Given "alice" has session:
| userId | user-001 |
Scenario: authenticated user can read the starter message
When "alice" calls "getMessage"
Then the call succeeds
And the result has "message"
Scenario: authenticated user can update the starter message
When "alice" calls "updateMessage" with:
| message | Hello from tests |
Then the call succeeds
And the result has "message"
Scenario: updated message is reflected in subsequent reads
When "alice" calls "updateMessage" with:
| message | Persisted value |
Then the call succeeds
When "alice" calls "getMessage"
Then the call succeeds
And the result "message" is "Persisted value"