Files
kandev/apps/web/e2e/tests/plugins/automation-webhook.spec.ts
T
2026-09-15 19:44:43 +00:00

20 lines
696 B
TypeScript

import { expect } from "@playwright/test";
import { test } from "../../fixtures/test-base";
import { selectPluginCondition, exerciseSavedWebhook } from "./automation-webhook-scenario";
import { PLUGIN_ID } from "../../helpers/plugin-fixture";
test("plugin webhook condition uses the native editor", async ({
testPage,
seedData,
apiClient,
}) => {
test.setTimeout(90_000);
try {
await selectPluginCondition(testPage, seedData);
await exerciseSavedWebhook(testPage, seedData, apiClient);
} finally {
const cleanup = await apiClient.rawRequest("DELETE", `/api/plugins/${PLUGIN_ID}`);
expect(cleanup.ok, `Fixture deletion returned ${cleanup.status}`).toBe(true);
}
});