Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerem Beygo committed Jul 26, 2024
1 parent 7317c25 commit 9475bd7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/visual-testing/workflows/api-lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ mutation {

- `id`: Upload ID to use in the subsequent steps.
- `uploadUrl`: The URL to upload the image in the next step.
- `domUploadUrl`: The URL to upload the DOM to (if available and desired). Explained in optional step below.
- `domUploadUrl`: The URL to upload the DOM to (if desired and available). Explained in the optional step below.

Next, send a `PUT` request to `uploadUrl` with image file in the body of the request. Only **PNG** files are supported.

**cURL:**
**cURL Request:**

```sh
curl --request PUT \
Expand All @@ -111,7 +111,7 @@ Optional: Upload DOM

If desired (and available), DOM can be also uploaded to `domUploadUrl` obtained from `createSnapshotUpload` mutation.

**cURL:**
**cURL Request:**

```sh
curl --request PUT \
Expand Down Expand Up @@ -139,7 +139,7 @@ mutation {
name: "Your snapshot name",
operatingSystem: OS,
operatingSystemVersion: "os-version",
browser: BROWSER,
browser: BROWSER,
browserVersion: "browser-version"
}
) {
Expand All @@ -149,7 +149,7 @@ mutation {
}
```
- `buildUuid`: Build ID that was used in previous steps.
- `uploadId`: Upload ID acquired with `createSnapshotUpload` in the previous step.
- `uploadId`: Upload ID acquired with `createSnapshotUpload` in the previous step (`createSnapshotUpload` mutation response)
- `operatingSystem`: The operating system used to take the snapshot. Strongly advised to be filled in. Available options: `ANDROID`, `IOS`, `LINUX`, `MACOS`, `WINDOWS`.
- `operatingSystemVersion`: The operating system version. e.g. "14.5" for `MACOS` or "11" for `WINDOWS`.
- `browser`: The browser used to take the snapshot. Strongly advised to be filled in (if available). Available options: `CHROME`, `EDGE`, `FIREFOX`, `PLAYWRIGHT_WEBKIT`, `SAFARI`.
Expand Down

0 comments on commit 9475bd7

Please sign in to comment.