From 9f7a410fd6cb8d44838ca4976dbc122ec14a7f57 Mon Sep 17 00:00:00 2001 From: HZX <2188522595@qq.com> Date: Fri, 7 Nov 2025 07:12:55 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20=E6=96=87=E4=B9=A6?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E6=B5=8B=E8=AF=95=E6=9C=80=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 文书管理测试最新 | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/文书管理测试最新 b/文书管理测试最新 index 03fe7c1..8a90e45 100644 --- a/文书管理测试最新 +++ b/文书管理测试最新 @@ -10,7 +10,7 @@ test('test', async ({ page }) => { // 登录信息(用于报告) const loginInfo = { - email: 'xdf.admin@applify.ai', + email: 'prodream.admin@applify.ai', password: 'b9#0!;+{Tx4649op' }; @@ -40,18 +40,12 @@ test('test', async ({ page }) => { // 步骤1: 访问首页并登录 await executeStep('访问首页', async () => { - await page.goto('https://pre.prodream.cn/en'); - await expect(page.getByRole('button', { name: 'Log in' })).toBeVisible(); - }); - - await executeStep('点击登录按钮', async () => { - await page.getByRole('button', { name: 'Log in' }).click(); - await expect(page.getByRole('textbox', { name: 'Email Address' })).toBeVisible(); + await page.goto('https://prodream.cn/en/login'); }); await executeStep('输入登录信息', async () => { await page.getByRole('textbox', { name: 'Email Address' }).click(); - await page.getByRole('textbox', { name: 'Email Address' }).fill('xdf.admin@applify.ai'); + await page.getByRole('textbox', { name: 'Email Address' }).fill('prodream.admin@applify.ai'); await page.getByRole('textbox', { name: 'Psssword' }).click(); await page.getByRole('textbox', { name: 'Psssword' }).fill('b9#0!;+{Tx4649op'); await page.getByRole('button', { name: 'Log in' }).click(); @@ -61,7 +55,7 @@ test('test', async ({ page }) => { // 步骤2: 测试 DreamiExplore await executeStep('进入 DreamiExplore', async () => { await page.getByRole('link').filter({ hasText: 'DreamiExplore Everything' }).click(); - await expect(page.getByRole('heading', { name: 'Hello, Admin' })).toBeVisible(); + await expect(page.getByRole('heading', { name: 'Hello, Prodream Admin' })).toBeVisible(); }); await executeStep('测试聊天功能', async () => { @@ -82,9 +76,9 @@ test('test', async ({ page }) => { await page.getByRole('textbox', { name: 'Name *', exact: true }).click(); await page.getByRole('textbox', { name: 'Name *', exact: true }).fill('黄子旭测试'); await page.locator('div').filter({ hasText: /^Please select branch$/ }).nth(2).click(); - await page.locator('div').filter({ hasText: /^1$/ }).nth(1).click(); + await page.locator('div').filter({ hasText: /^12$/ }).nth(1).click(); await page.getByText('Select counselor').click(); - await page.locator('div').filter({ hasText: /^2-2@2\.com$/ }).nth(1).click(); + await page.locator('div').filter({ hasText: /^yuanxiang-zhangyuanxiang@prodream.ai$/ }).nth(1).click(); await page.locator('svg').nth(5).click(); await page.getByRole('textbox', { name: 'Contract Category *' }).click(); await page.getByRole('textbox', { name: 'Contract Category *' }).fill('11'); @@ -421,7 +415,7 @@ test('test', async ({ page }) => { report += '【登录账号信息】\n'; report += `账号: ${loginInfo.email}\n`; report += `密码: ${loginInfo.password}\n`; - report += `测试环境: https://pre.prodream.cn/en\n\n`; + report += `测试环境: https://prodream.cn/en\n\n`; report += `${'='.repeat(60)}\n\n`; if (errors.length === 0) { @@ -467,4 +461,4 @@ test('test', async ({ page }) => { // 不抛出错误,让测试标记为通过,但在日志中记录所有失败步骤 } -}); \ No newline at end of file +});