mirror of
https://github.com/lichess-org/lila.git
synced 2026-05-26 13:51:00 +00:00
14 lines
435 B
TypeScript
14 lines
435 B
TypeScript
import { type Page } from '@playwright/test';
|
|
|
|
export async function loginAs(page: Page, username: string) {
|
|
await page.goto('/login');
|
|
await page.getByTestId('username').fill(username);
|
|
await page.getByTestId('password').fill('password');
|
|
await page.getByTestId('login-submit').click();
|
|
await page.waitForLoadState('networkidle');
|
|
}
|
|
|
|
export function messageText() {
|
|
return `hi, the time is ${new Date().toISOString()}`;
|
|
}
|