test: webhook (wip)

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
This commit is contained in:
Raju Udava
2022-10-20 23:10:19 +05:30
committed by Muhammed Mustafa
parent d342a74dc4
commit 063a4e544a
4 changed files with 151 additions and 4 deletions

View 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();
});
});