test: Add workflow api testing for webhooks (#18400)

This commit is contained in:
shortstacked
2025-08-18 12:41:13 +01:00
committed by GitHub
parent 7c80086a6b
commit f769d5588e
7 changed files with 266 additions and 5 deletions

View File

@@ -9,6 +9,7 @@ import {
INSTANCE_ADMIN_CREDENTIALS,
} from '../config/test-users';
import { TestError } from '../Types';
import { WorkflowApiHelper } from './workflow-api-helper';
export interface LoginResponseData {
id: string;
@@ -30,10 +31,12 @@ const DB_TAGS = {
} as const;
export class ApiHelpers {
private request: APIRequestContext;
request: APIRequestContext;
workflowApi: WorkflowApiHelper;
constructor(requestContext: APIRequestContext) {
this.request = requestContext;
this.workflowApi = new WorkflowApiHelper(this);
}
// ===== MAIN SETUP METHODS =====