umbraco-cypress-testhelpers
Version:
Test helpers for making Cypress tests for Umbraco solutions
24 lines (23 loc) • 605 B
TypeScript
export declare class UserBuilder {
email: string;
id: number;
message: string;
name: string;
parentId: number;
userGroups: string[];
constructor();
withEmail(email: string): this;
withId(id: number): this;
withName(name: string): this;
withParentId(parentId: number): this;
appendUserGroup(userGroup: string): this;
withUserGroups(userGroups: string[]): this;
build(): {
email: string;
id: number;
message: string;
name: string;
parentId: number;
userGroups: string[];
};
}