Skip to content

Commit

Permalink
lib_test: add views test-cache
Browse files Browse the repository at this point in the history
  • Loading branch information
koonwen committed Nov 11, 2024
1 parent bd85331 commit 2ecc5cb
Show file tree
Hide file tree
Showing 3 changed files with 145 additions and 0 deletions.
44 changes: 44 additions & 0 deletions lib_test/slack-api-cache/ref1_open_views
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"ok": true,
"view": {
"id": "VMHU10V25",
"team_id": "T8N4K1JN",
"type": "modal",
"title": {
"type": "plain_text",
"text": "Quite a plain modal"
},
"submit": {
"type": "plain_text",
"text": "Create"
},
"blocks": [
{
"type": "input",
"block_id": "a_block_id",
"label": {
"type": "plain_text",
"text": "A simple label",
"emoji": true
},
"optional": false,
"element": {
"type": "plain_text_input",
"action_id": "an_action_id"
}
}
],
"private_metadata": "Shh it is a secret",
"callback_id": "identify_your_modals",
"external_id": "",
"state": {
"values": {}
},
"hash": "156772938.1827394",
"clear_on_close": false,
"notify_on_close": false,
"root_view_id": "VMHU10V25",
"app_id": "AA4928AQ",
"bot_id": "BA13894H"
}
}
50 changes: 50 additions & 0 deletions lib_test/slack-api-cache/ref1_push_views
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"ok": true,
"view": {
"id": "VNM522E2U",
"team_id": "T9M4RL1JM",
"type": "modal",
"title": {
"type": "plain_text",
"text": "Pushed Modal",
"emoji": true
},
"close": {
"type": "plain_text",
"text": "Back",
"emoji": true
},
"submit": {
"type": "plain_text",
"text": "Save",
"emoji": true
},
"blocks": [
{
"type": "input",
"block_id": "edit_details",
"element": {
"type": "plain_text_input",
"action_id": "detail_input"
},
"label": {
"type": "plain_text",
"text": "Edit details"
}
}
],
"private_metadata": "",
"callback_id": "view_4",
"external_id": "",
"state": {
"values": {}
},
"hash": "1569362015.55b5e41b",
"clear_on_close": true,
"notify_on_close": false,
"root_view_id": "VNN729E3U",
"previous_view_id": null,
"app_id": "AAD3351BQ",
"bot_id": "BADF7A34H"
}
}
51 changes: 51 additions & 0 deletions lib_test/slack-api-cache/ref1_update_views
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"ok": true,
"view": {
"id": "VNM522E2U",
"team_id": "T9M4RL1JM",
"type": "modal",
"title": {
"type": "plain_text",
"text": "Updated Modal",
"emoji": true
},
"close": {
"type": "plain_text",
"text": "Close",
"emoji": true
},
"submit": null,
"blocks": [
{
"type": "section",
"block_id": "s_block",
"text": {
"type": "plain_text",
"text": "I am but an updated modal",
"emoji": true
},
"accessory": {
"type": "button",
"action_id": "button_4",
"text": {
"type": "plain_text",
"text": "Click me"
}
}
}
],
"private_metadata": "",
"callback_id": "view_2",
"external_id": "",
"state": {
"values": {}
},
"hash": "1569262015.55b5e41b",
"clear_on_close": true,
"notify_on_close": false,
"root_view_id": "VNN729E3U",
"previous_view_id": null,
"app_id": "AAD3351BQ",
"bot_id": "BADF7A34H"
}
}

0 comments on commit 2ecc5cb

Please sign in to comment.