2025-05-02 05:31:05 +08:00
|
|
|
import { test, expect } from '@playwright/test';
|
|
|
|
|
|
|
|
test('Login to buster', async ({ page }) => {
|
|
|
|
//await page.getByText('Sign in').click();
|
|
|
|
await page.goto('http://localhost:3000/auth/login');
|
|
|
|
await page.getByText('Sign in').click();
|
|
|
|
await page.getByRole('textbox', { name: 'What is your email address?' }).fill('chad@buster.so');
|
|
|
|
await page.getByRole('textbox', { name: 'What is your email address?' }).press('Tab');
|
|
|
|
await page.getByRole('textbox', { name: 'Password' }).fill('password');
|
|
|
|
await page.getByRole('button', { name: 'Sign in' }).click();
|
2025-05-03 01:27:46 +08:00
|
|
|
|
2025-05-10 00:15:10 +08:00
|
|
|
await page.waitForTimeout(1000);
|
2025-05-03 01:27:46 +08:00
|
|
|
|
2025-05-02 05:31:05 +08:00
|
|
|
await page.goto('http://localhost:3000/app/home');
|
|
|
|
expect(page).toHaveURL('http://localhost:3000/app/home');
|
|
|
|
});
|