Some checks failed
Deploy / deploy (push) Has been cancelled
Full-stack web application for Telegram management - Frontend: Vue 3 + Vben Admin - Backend: NestJS - Features: User management, group broadcast, statistics 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
21 lines
568 B
TypeScript
21 lines
568 B
TypeScript
import { expect, test } from '@playwright/test';
|
|
|
|
import { authLogin } from './common/auth';
|
|
|
|
test.beforeEach(async ({ page }) => {
|
|
await page.goto('/');
|
|
});
|
|
|
|
test.describe('Auth Login Page Tests', () => {
|
|
test('check title and page elements', async ({ page }) => {
|
|
// 获取页面标题并断言标题包含 'Vben Admin'
|
|
const title = await page.title();
|
|
expect(title).toContain('Vben Admin');
|
|
});
|
|
|
|
// 测试用例: 成功登录
|
|
test('should successfully login with valid credentials', async ({ page }) => {
|
|
await authLogin(page);
|
|
});
|
|
});
|