mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-29 09:36:49 +00:00
test: webhook (wip)
Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
This commit is contained in:
committed by
Muhammed Mustafa
parent
d342a74dc4
commit
063a4e544a
32
scripts/playwright/tests/webhook.spec.ts
Normal file
32
scripts/playwright/tests/webhook.spec.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
import { test } from "@playwright/test";
|
||||
import { DashboardPage } from "../pages/Dashboard";
|
||||
import setup from "../setup";
|
||||
import { ToolbarPage } from "../pages/Dashboard/common/Toolbar";
|
||||
|
||||
test.describe.skip("Webhook", () => {
|
||||
let dashboard: DashboardPage, toolbar: ToolbarPage;
|
||||
let context: any;
|
||||
|
||||
test.beforeEach(async ({ page }) => {
|
||||
context = await setup({ page });
|
||||
dashboard = new DashboardPage(page, context.project);
|
||||
toolbar = dashboard.grid.toolbar;
|
||||
});
|
||||
|
||||
test("CRUD", async () => {
|
||||
// close 'Team & Auth' tab
|
||||
await dashboard.closeTab({ title: "Team & Auth" });
|
||||
await dashboard.treeView.createTable({ title: "Test" });
|
||||
|
||||
await toolbar.clickActions();
|
||||
await toolbar.actions.click("Webhooks");
|
||||
|
||||
await dashboard.webhookForm.create({
|
||||
title: "Test",
|
||||
url: "https://example.com",
|
||||
event: "After Insert",
|
||||
});
|
||||
|
||||
await dashboard.webhookForm.addCondition();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user