25 lines
744 B
Gherkin
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"
|