From 50f00440c5219bfe4f7c31b1c68c977d29beda9e Mon Sep 17 00:00:00 2001 From: GitHub Date: Fri, 4 Sep 2026 22:44:24 +0800 Subject: [PATCH] =?UTF-8?q?test:=20E2E=20=E9=80=82=E9=85=8D=E4=BF=9D?= =?UTF-8?q?=E5=AD=98=E7=AD=96=E7=95=A5=E5=90=8D=E7=A7=B0=E5=B8=A6=E8=82=A1?= =?UTF-8?q?=E7=A5=A8=E5=90=8D=20=E2=80=94=20=E9=A2=84=E5=A1=AB=E5=90=8D?= =?UTF-8?q?=E9=A2=84=E6=9C=9F=E5=80=BC=E6=9B=B4=E6=96=B0=E4=B8=BA=E3=80=8C?= =?UTF-8?q?=E5=8F=8C=E5=9D=87=E7=BA=BF=E4=BA=A4=E5=8F=89=20=C2=B7=20000001?= =?UTF-8?q?=20=C2=B7=20=E5=B9=B3=E5=AE=89=E9=93=B6=E8=A1=8C=E3=80=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web-ui/e2e/strategies.spec.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web-ui/e2e/strategies.spec.ts b/web-ui/e2e/strategies.spec.ts index c913c00..f3e54c3 100644 --- a/web-ui/e2e/strategies.spec.ts +++ b/web-ui/e2e/strategies.spec.ts @@ -9,11 +9,12 @@ test('回测结果保存到策略库并在策略库页可见', async ({ page }) await page.getByRole('button', { name: '开始回测' }).click() await expect(page.getByRole('button', { name: '💾 保存策略' })).toBeVisible({ timeout: 60_000 }) - // 打开保存对话框(名称已预填「双均线交叉 · 000001」) + // 打开保存对话框(名称已预填「双均线交叉 · 000001 · 平安银行」, + // 股票名由 /mac/symbol-info 异步补全,toHaveValue 自动重试等待) await page.getByRole('button', { name: '💾 保存策略' }).click() await expect(page.locator('.modal')).toBeVisible() const nameInput = page.getByPlaceholder('给这个策略起个名') - await expect(nameInput).toHaveValue('双均线交叉 · 000001') + await expect(nameInput).toHaveValue('双均线交叉 · 000001 · 平安银行') await nameInput.fill('E2E 冒烟策略') await page.locator('.modal-actions .primary').click()