Setup Playwright (#14)

* setting up playwright

* renaming client to app

* updating node version

* updating node version

* fixing husky

* fixing husky

* fixing husky

* fixing husky
This commit was merged in pull request #14.
This commit is contained in:
2024-05-22 21:12:17 -05:00
committed by GitHub
parent 977db84d48
commit 294ac4e061
40 changed files with 3018 additions and 367 deletions

View File

@@ -0,0 +1,33 @@
import { setWorldConstructor, World, IWorldOptions } from '@cucumber/cucumber';
import * as messages from '@cucumber/messages';
import {
BrowserContext,
Page,
PlaywrightTestOptions,
APIRequestContext
} from '@playwright/test';
export interface CucumberWorldConstructorParams {
parameters: { [key: string]: string };
}
export interface ICustomWorld extends World {
debug: boolean;
feature?: messages.Pickle;
context?: BrowserContext;
page?: Page;
testName?: string;
startTime?: Date;
server?: APIRequestContext;
playwrightOptions?: PlaywrightTestOptions;
}
export class CustomWorld extends World implements ICustomWorld {
constructor(options: IWorldOptions) {
super(options);
}
debug = false;
}
setWorldConstructor(CustomWorld);