cypress-bootstrap
Version:
Cypress Bootstrap is a project scaffolding tool that sets up a Cypress automation framework with a standardized folder structure and Page Object Model (POM) design. It helps teams quickly start testing with built-in best practices and sample specs.
18 lines (16 loc) • 429 B
text/typescript
export namespace ProductRequests {
export interface CreateProductRequest {
name: string;
productTypeId: string;
price: number | null;
}
export class Request {
public createProductRequest(productObject: CreateProductRequest): CreateProductRequest {
return {
name: productObject.name,
productTypeId: productObject.productTypeId,
price: productObject.price,
};
}
}
}