You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an intentional UI change is made, delete the relevant baseline image from `src/test/resources/DynamicObjectRepository/` and run the test once to regenerate it. Run visual tests in a consistent environment (same OS, browser version, screen resolution) to avoid false positives, and avoid mixing headless and headed baselines.
147
147
148
148
## matchesScreenshot()
149
149
150
-
`matchesScreenshot()` is a lighter-weight, OpenCV-only pixel-diff assertion built into `shaft-engine` (no `shaft-visual` dependency required). Like every other SHAFT assertion it runs immediately — no `perform()` is needed. Pass a `VisualComparisonOptions` object to tune the diff budget and masks, mirroring Playwright's `toHaveScreenshot()` options:
150
+
`matchesScreenshot()` is an OpenCV-only pixel-diff assertion built into `shaft-engine`, so it does not require `shaft-visual`. It runs when you call it. Pass a `VisualComparisonOptions` object to tune the diff budget and masks, mirroring Playwright's `toHaveScreenshot()` options:
Copy file name to clipboardExpand all lines: docs/reference/actions/API/API_Authentication.md
+27-36Lines changed: 27 additions & 36 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,12 +2,12 @@
2
2
id: API_Authentication
3
3
title: API Authentication
4
4
sidebar_label: API Authentication
5
-
description: "Configure BASIC, DIGEST, OAuth2, API Key, cookie, and session authentication for API tests in SHAFT Engine using setAuthentication and addHeader."
6
-
keywords: [SHAFT, API authentication, basic auth, digest auth, OAuth2, bearer token, API key, cookie auth, REST API]
5
+
description: "Configure BASIC, FORM, OAuth2, API Key, cookie, and session authentication for API tests in SHAFT Engine using setAuthentication and addHeader."
6
+
keywords: [SHAFT, API authentication, basic auth, form auth, OAuth2, bearer token, API key, cookie auth, REST API]
SHAFT Engine supports multiple API authentication strategies through `setAuthentication()`and the fluent request builder. All authentication methods work with the existing `SHAFT.API` request-building API.
10
+
Use `setAuthentication()`for BASIC or FORM authentication. For bearer tokens, API keys, and cookies, add the relevant header before sending the request.
11
11
12
12
---
13
13
@@ -17,25 +17,14 @@ Pass a username and password using `AuthenticationType.BASIC`:
SHAFT Engine provides first-class GraphQL support through `SHAFT.API.sendGraphQlRequest()`. It returns the normal request builder, so **queries**, **mutations**, variables, fragments, authentication headers, status checks, and response assertions all use the same fluent API as REST requests.
10
+
Use `SHAFT.API.sendGraphQlRequest()` for GraphQL queries and mutations. It returns the normal request builder, so variables, fragments, headers, status checks, and response assertions use the same fluent API as REST requests.
0 commit comments