test(web): align landing guide assertion

Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com>
This commit is contained in:
XiaoSeS 2026-09-09 17:47:33 +08:00
parent 97c3d4444c
commit 66086a8bdb

View file

@ -49,7 +49,8 @@ test.describe('Landing access methods (Real API)', () => {
const guideResponse = await page.request.get('/registry/skill.md')
expect(guideResponse.status()).toBe(200)
const guide = await guideResponse.text()
expect(guide).toContain(new URL(page.url()).origin)
expect(guide).toContain('name: skillhub-cli')
expect(guide).toContain('removing the trailing `/registry/skill.md`')
expect(guideResponse.headers()['cache-control']).toContain('no-cache')
const hostileHostResponse = await page.request.get('/registry/skill.md', {
headers: { Host: 'attacker.example' },