mirror of
https://github.com/iflytek/skillhub.git
synced 2026-11-15 09:11:18 +00:00
test(web): align landing guide assertion
Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com>
This commit is contained in:
parent
97c3d4444c
commit
66086a8bdb
1 changed files with 2 additions and 1 deletions
|
|
@ -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' },
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue