Skip to content

Commit

Permalink
feat: test wpp flow attachment base64 conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
paulobernardoaf committed Oct 10, 2024
1 parent 937381c commit 001ad9a
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions flows/actions/testdata/send_whatsapp_msg.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,14 @@
},
{
"description": "WhatsApp Flows message",
"http_mocks": {
"https://example.com/test.jpg": [
{
"status": 200,
"body": "fake image data"
}
]
},
"action": {
"type": "send_whatsapp_msg",
"uuid": "c67969d6-f400-4b5e-bb7c-e45115cd3aa4",
Expand All @@ -136,7 +144,11 @@
"flow_data": {
"name": "John Doe",
"options": "[\"option 1\",\"option 2\"]",
"extra": "{\"foo\":\"bar\"}"
"extra": "{\"foo\":\"bar\"}",
"image": "https://example.com/test.jpg"
},
"flow_data_attachment_name_map": {
"image": "test.jpg"
}
},
"localization": {},
Expand Down Expand Up @@ -169,7 +181,8 @@
],
"extra": {
"foo": "bar"
}
},
"image": "ZmFrZSBpbWFnZSBkYXRh"
},
"flow_cta": "Button text"
}
Expand Down

0 comments on commit 001ad9a

Please sign in to comment.