Merge pull request #5425 from geeknik/patch-60

Update api-screenshotapi.yaml
patch-1
Prince Chaddha 2022-09-29 12:48:22 +05:30 committed by GitHub
commit 7ec99b94cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -2,7 +2,7 @@ id: api-screenshotapi
info: info:
name: ScreenshotAPI API Test name: ScreenshotAPI API Test
author: daffainfo author: daffainfo,geeknik
severity: info severity: info
description: Create pixel-perfect website screenshots description: Create pixel-perfect website screenshots
reference: reference:
@ -16,6 +16,7 @@ requests:
path: path:
- "https://shot.screenshotapi.net/screenshot?token={{token}}&url=https://example.com" - "https://shot.screenshotapi.net/screenshot?token={{token}}&url=https://example.com"
matchers-condition: and
matchers: matchers:
- type: word - type: word
part: body part: body
@ -23,3 +24,10 @@ requests:
- 'screenshot' - 'screenshot'
- 'url' - 'url'
condition: and condition: and
- type: status
status:
- 403
- 401
- 400
negative: true