@serenity-js/playwright-test
Version:
Serenity/JS test runner adapter for Playwright Test, combining Playwright's developer experience with the advanced reporting and automation capabilities of Serenity/JS
15 lines (11 loc) • 407 B
text/typescript
import type { CorrelationIdFactory } from '@serenity-js/core/lib/model';
import { CorrelationId } from '@serenity-js/core/lib/model';
export class PlaywrightTestSceneIdFactory implements CorrelationIdFactory {
private testId: CorrelationId;
setTestId(testId: string): void {
this.testId = new CorrelationId(testId);
}
create(): CorrelationId {
return this.testId;
}
}