forgejo-frontend-integration/tests/user.ts

15 lines
360 B
TypeScript

import { getRandomString } from "./utils";
export default class User {
username: string;
name: string;
email: string;
password: string;
constructor(name: string) {
this.name = name;
this.username = `playwright_${getRandomString(6)}_${name}`;
this.email = `${this.username}@playwright.local`;
this.password = "628acdbd8b7b3f";
}
}