UNPKG

donobu

Version:

Create browser automations with an LLM agent and replay them as Playwright scripts.

16 lines 924 B
import type { TestInfo } from '@playwright/test'; import type { GptClient } from '../../../clients/GptClient'; import type { DonobuExtendedPage } from '../../page/DonobuExtendedPage'; /** * Self-heals a test that has failed by creating and running a new autonomous * flow using the failed test's code as part of the overall objective. If the * new flow is successful, it uses the TestFileUpdater to update the specific * failed test case in the original test file. * * @param gptClient The GPT client to use for running the new autonomous flow. * @param testInfo The test information object that contains the failed test's * annotations and other metadata. * @param donobuFlowMetadata The metadata of the flow that is being self-healed. */ export declare function selfHeal(gptClient: GptClient, testInfo: TestInfo, page: DonobuExtendedPage): Promise<void>; //# sourceMappingURL=selfHealing.d.ts.map