Skip to content

Commit

Permalink
Broadcast features
Browse files Browse the repository at this point in the history
  • Loading branch information
robmoffat committed Feb 21, 2024
1 parent 79003c7 commit b9e8780
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions packages/da/test/features/broadcast.feature
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,26 @@ Feature: Broadcasting
Given "countryMessageOne" is a "broadcastRequest" message on channel "channel-name" with context "fdc3.country"
Given "instrumentContext" is a "fdc3.instrument" context

# Scenario: Broadcasting on a named app channel
Scenario: Broadcasting on a named app channel

# When I call "api" with "getOrCreateChannel" with parameter "channel-name"
# And I refer to "result" as "channel1"
# And I call "channel1" with "broadcast" with parameter "{instrumentContext}"
# Then messaging will have posts
# | payload.channelId | payload.context.type | payload.context.name |
# | channel-name | fdc3.instrument | Apple |
When I call "api" with "getOrCreateChannel" with parameter "channel-name"
And I refer to "result" as "channel1"
And I call "channel1" with "broadcast" with parameter "{instrumentContext}"
Then messaging will have posts
| payload.channelId | payload.context.type | payload.context.name |
| channel-name | fdc3.instrument | Apple |

Scenario: Broadcasting using the api directly, with no user channel set

When I call "api" with "broadcast" with parameter "{instrumentContext}"
Then messaging will have no new posts
Then messaging will have posts
| payload.channelId | payload.context.type | payload.context.name |

# Scenario: Broadcasting using the api directly, with user channel set
Scenario: Broadcasting using the api directly, with user channel set

# When I call "api" with "joinUserChannel" with parameter "one"
# And I call "api" with "broadcast" with parameter "{instrumentContext}"
# Then messaging will have posts
# | payload.channelId | payload.context.type | payload.context.name |
# | one | fdc3.instrument | Apple |
When I call "api" with "joinUserChannel" with parameter "one"
And I call "api" with "broadcast" with parameter "{instrumentContext}"
Then messaging will have posts
| payload.channelId | payload.context.type | payload.context.name |
| one | fdc3.instrument | Apple |

0 comments on commit b9e8780

Please sign in to comment.