Skip to content

Commit ef5f05b

Browse files
kb-keremKerem Beygo
andauthored
replace deprecated fields (#2894)
Co-authored-by: Kerem Beygo <[email protected]>
1 parent 84a82ef commit ef5f05b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/visual-testing/workflows/api-lifecycle.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,15 @@ First, obtain a signed URL for uploading your image by using the `createSnapshot
6464

6565
```graphql
6666
mutation {
67-
createSnapshotUpload(input: {buildId: "build-id-here"}) {
67+
createSnapshotUpload(input: {buildUuid: "build-id-here"}) {
6868
id
69-
uploadUrl
69+
imageUploadUrl
7070
domUploadUrl
7171
}
7272
}
7373
```
7474

75-
- `buildId`: The ID of the build created in the previous step.
75+
- `buildUuid`: The ID of the build created in the previous step.
7676

7777
**Expected Response:**
7878

@@ -81,18 +81,18 @@ mutation {
8181
"data": {
8282
"createSnapshotUpload": {
8383
"id": "upload-id-here",
84-
"uploadUrl": "image-upload-url-here",
84+
"imageUploadUrl": "image-upload-url-here",
8585
"domUploadUrl": "dom-upload-url-here"
8686
}
8787
}
8888
}
8989
```
9090

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

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

9797
**cURL Request:**
9898

@@ -135,7 +135,7 @@ mutation {
135135
createSnapshot(
136136
input: {
137137
buildUuid: "build-id-here",
138-
uploadId: "upload-id-here",
138+
uploadUuid: "upload-id-here",
139139
name: "Your snapshot name",
140140
operatingSystem: OS,
141141
operatingSystemVersion: "os-version",
@@ -149,7 +149,7 @@ mutation {
149149
}
150150
```
151151
- `buildUuid`: Build ID that was used in previous steps.
152-
- `uploadId`: Upload ID acquired with `createSnapshotUpload` in the previous step.
152+
- `uploadUuid`: Upload ID acquired with `createSnapshotUpload` in the previous step.
153153
- `operatingSystem`: The operating system used to take the snapshot. Strongly advised to be filled in. Available options: `ANDROID`, `IOS`, `LINUX`, `MACOS`, `WINDOWS`.
154154
- `operatingSystemVersion`: The operating system version. e.g. "14.5" for `MACOS` or "11" for `WINDOWS`.
155155
- `browser`: The browser used to take the snapshot. Strongly advised to be filled in (if available). Available options: `CHROME`, `EDGE`, `FIREFOX`, `PLAYWRIGHT_WEBKIT`, `SAFARI`.

0 commit comments

Comments
 (0)