Webhooks 游戏作家助手
@bigbinary/neeto-webhooks-playwright 包含网接POM、选择器和
这个纳米机拥有的类型。 它的版本和出版独立于
@bigbinary/neeto-webhooks-frontend。 。 。 .
通名网钩. 站点 API (WebhookSiteApi)和常数
(单位:千美元)DEFAULT_WEBHOOKS_RESPONSE_TEXT留下来
@bigbinary/neeto-playwright-commons· ; WebhooksPage 使用常识'
WebhookSiteApi。 。 。 .
使用量
装入消耗品中 playwright-tests/ 目录 :
yarn add -D @bigbinary/neeto-webhooks-playwright
产品提供列于 package.json,包括:
@bigbinary/neeto-playwright-commons。不需要前端软件包.
和普通人一样,软件包仅是ES模块,而Playwright加载的规格是
常见JS. 在旁边添加路径别名 @neetoplaywright 在产品中
playwright-tests/tsconfig.json,然后通过它导入.
"paths": {
"@neetowebhooks": ["./node_modules/@bigbinary/neeto-webhooks-playwright"]
}
import {
WebhooksApi,
WebhooksPage,
WEBHOOK_HEADERS,
WEBHOOK_SELECTORS,
} from "@neetowebhooks";
- 构造
WebhooksPage与{ page, neetoPlaywrightUtilities }和以前一样. 秘密菜单和递送细节 帮助对象针对/v2(原始内容存档于2018-09-21). Sheet UI. addWebhook({ webhookSiteURL, event })使用该标签检查事件,或 第一个列出的事件event被省略,并保存.performTableAction(endpoint, "edit" | "delete")财务报告和审定财务报表performLinkAction("regenerate" | "delete")打开一行 webhook 或 秘密 菜单动作.openMatchingDelivery<Payload>({ matches })打开交货直到matches(payload, headerText)返回真实。 传出产品的有效载荷类型.verifyHeaders()检查WEBHOOK_HEADERS签名头,和verifyResponse()检查交付的反应机构.getTokenViaAPI()返回时{ webhookToken, webhookSiteURL },以及verifyLatestWebhookResponse({ webhookToken, callback })检查最新的 请求 webhook. 网站收到.new WebhooksApi(neetoPlaywrightUtilities)包裹纳米的REST API:fetch, (中文(简体) ),create({ entityType, entityId, endpoint, events }), (中文(简体) ),delete, (中文(简体) ),fetchDeliveries, (中文(简体) ),showDelivery,以及redeliver(webhookId, deliveryId)。 。 。 . 送货方法采用网络浏览和送货 编号 数值;delete拿着 webhook 的数据库id。 。 。 .redeliver执行员额/redeliver路线.getWebhookIdViaRequest({ entityId, endpoint })返回匹配 webhook 的数据库编号,或undefined如果它缺席.deleteWebhookViaRequest({ entityId, endpoint })删除匹配 webhook; 一个缺失的端点是无操作.deleteWebhookViaUI(endpoint)删除当前网页上一行, 证实警报 核实吐司 等待排队消失.setWebhookEvents(endpoint, events)编辑一个网点, 只提供 检查事件标签,保存更改并核实行。 如果这些事件 中,它关闭未修改的工作表.findDeliveryViaRequest(webhookId, predicate)阅读列表中的交货情况 命令并返回第一个WebhookDelivery谁的解析request_body满足上游,或undefined它跳过没有尸体的交付 将完整的剖面体通过到上方。 使用返回的内容sidaPI 应用程序 请求identifier送货的UI链接.verifyWebhookDeliveries({ callback, ...fields })证明成功 交付并传递其解析webhook载荷呼叫回话.verifyWebhookDeliveryByEvent({ event, callbackToVerifyDeliveries, ...fields })打开事件交付 运行有效载荷核查.- 宿主的i18next sixture 必须在 POM 之前装入纳米翻译 创建.
包明确输出 FindWebhookParams, (中文(简体) ), WebhookRecord,以及
WebhookDelivery 及其现有参数和召回类型.
地方发展
要尝试产品中未释放的更改,请与 yalc 从此目录,
然后在产品中添加包装 playwright-tests/ 目录。 删除
雅尔克链接之前, 执行所以产品显示和锁定文件停留
不变:
yarn build && yalc publish
cd path/to/product/playwright-tests
yalc add --dev @bigbinary/neeto-webhooks-playwright
第一次出版后, yalc push 从 playwright/ 更新每个产品
加上了包裹 以
yalc remove @bigbinary/neeto-webhooks-playwright。 。 。 .
释放
将 PR 合并到 playwright 标签和a patch, (中文(简体) ), minor,或 major 标签.
现有的 NeetoCI 凸起工作流程发布此软件包并打开
Bump version 公关.