From 1de63edd8fcc1db5ff74f8aa9e33c0ca80efd27f Mon Sep 17 00:00:00 2001 From: Cheney <970320820@qq.com> Date: Tue, 19 May 2026 17:12:29 +0800 Subject: [PATCH] test(e2e): assert both SkillHub CLI and ClawHub install commands The install command UI now defaults to the SkillHub CLI tab with the ClawHub command hidden under a second tab, so the previous assertion for `npx clawhub install ` no longer found visible text. --- web/e2e/public-skill-detail-anonymous.spec.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/web/e2e/public-skill-detail-anonymous.spec.ts b/web/e2e/public-skill-detail-anonymous.spec.ts index 56ba8885..a16efb01 100644 --- a/web/e2e/public-skill-detail-anonymous.spec.ts +++ b/web/e2e/public-skill-detail-anonymous.spec.ts @@ -40,7 +40,15 @@ test.describe('Public Skill Detail Anonymous Access (Real API)', () => { await expect(page).not.toHaveURL(/\/login\?returnTo=/) await expect(page.getByRole('heading', { name: current.skillName, exact: true })).toBeVisible() await expect(page.getByText('Install', { exact: true })).toBeVisible() - await expect(page.getByText(new RegExp(`npx clawhub install ${current.skill.slug}`))).toBeVisible() + + await expect( + page.getByText(new RegExp(`skillhub install ${current.skill.namespace}/${current.skill.slug}`)), + ).toBeVisible() await expect(page.getByRole('button', { name: 'Copy' }).first()).toBeVisible() + + await page.getByRole('tab', { name: 'ClawHub' }).click() + await expect( + page.getByText(new RegExp(`npx clawhub install ${current.skill.namespace}--${current.skill.slug}`)), + ).toBeVisible() }) })