24 lines
623 B
TypeScript
24 lines
623 B
TypeScript
|
|
import { test } from '@playwright/test';
|
|
import { expect } from '@playwright/test';
|
|
|
|
test('移动端注册测试', async ({ page, context }) => {
|
|
|
|
// Navigate to URL
|
|
await page.goto('https://pre-117-77-template.r.d8d.fun/mobile/register');
|
|
|
|
// Fill input field
|
|
await page.fill('#username', 'testuser');
|
|
|
|
// Fill input field
|
|
await page.fill('#email', 'testuser@example.com');
|
|
|
|
// Fill input field
|
|
await page.fill('#password', 'Test1234!');
|
|
|
|
// Fill input field
|
|
await page.fill('#confirmPassword', 'Test1234!');
|
|
|
|
// Click element
|
|
await page.click('button[type='submit']');
|
|
}); |