mirror of https://github.com/buster-so/buster.git
17 lines
718 B
TypeScript
17 lines
718 B
TypeScript
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();
|
|
|
|
await page.waitForTimeout(1000);
|
|
|
|
await page.goto('http://localhost:3000/app/home');
|
|
expect(page).toHaveURL('http://localhost:3000/app/home');
|
|
});
|