增加 移动端 注册页
This commit is contained in:
24
test/mobile/register.spec.ts
Normal file
24
test/mobile/register.spec.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
|
||||
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']');
|
||||
});
|
||||
Reference in New Issue
Block a user