From adff6021fc08c6113aa470f8101f253a020eb70f Mon Sep 17 00:00:00 2001 From: Wxw-Gu Date: Tue, 15 Sep 2026 15:32:40 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E4=BF=AE=E6=94=B9=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/e2e/app.spec.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/e2e/app.spec.ts b/tests/e2e/app.spec.ts index 63c6ea3..87b649f 100644 --- a/tests/e2e/app.spec.ts +++ b/tests/e2e/app.spec.ts @@ -83,7 +83,12 @@ test('P2-01 P2-02 guided connection exposes safe diagnostics and completes all s await fixture.page.getByRole('button', { name: '检查完成,继续' }).click() await fixture.page.getByRole('button', { name: '我已准备好' }).click() - await fixture.page.getByRole('button', { name: '开始准备连接组件' }).click() + // macOS(含 Apple Silicon)走「获取密钥」流程,Windows 仍是「准备连接组件」。 + await fixture.page + .getByRole('button', { + name: process.platform === 'darwin' ? '开始获取密钥' : '开始准备连接组件' + }) + .click() const verifyConnection = fixture.page.getByRole('button', { name: '验证连接', exact: true