Skip to content

Commit 050c872

Browse files
committed
fix tests
1 parent f2639a8 commit 050c872

File tree

4 files changed

+2
-10
lines changed

4 files changed

+2
-10
lines changed

packages/server/lib/cloud/api/cy-prompt/get_cy_prompt_bundle.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ export const getCyPromptBundle = async ({ cyPromptUrl, projectId, bundlePath }:
2626
'x-route-version': '1',
2727
'x-cypress-signature': PUBLIC_KEY_VERSION,
2828
...(projectId ? { 'x-cypress-project-slug': projectId } : {}),
29-
'x-cypress-cy-prompt-mount-version': '2',
3029
'x-os-name': os.platform(),
3130
'x-cypress-version': pkg.version,
3231
},

packages/server/lib/cloud/api/cy-prompt/post_cy_prompt_session.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const postCyPromptSession = async ({ projectId }: PostCyPromptSessionOpti
2121
'x-os-name': os.platform(),
2222
'x-cypress-version': pkg.version,
2323
},
24-
body: JSON.stringify({ projectSlug: projectId, cyPromptMountVersion: 1 }),
24+
body: JSON.stringify({ projectSlug: projectId, cyPromptMountVersion: 2 }),
2525
})
2626
}, {
2727
maxAttempts: 3,

packages/server/test/unit/cloud/api/cy-prompt/get_cy_prompt_bundle_spec.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ describe('getCyPromptBundle', () => {
7575
'x-route-version': '1',
7676
'x-cypress-signature': '1',
7777
'x-cypress-project-slug': '12345',
78-
'x-cypress-cy-prompt-mount-version': '1',
7978
'x-os-name': 'linux',
8079
'x-cypress-version': '1.2.3',
8180
},
@@ -121,7 +120,6 @@ describe('getCyPromptBundle', () => {
121120
'x-route-version': '1',
122121
'x-cypress-signature': '1',
123122
'x-cypress-project-slug': '12345',
124-
'x-cypress-cy-prompt-mount-version': '1',
125123
'x-os-name': 'linux',
126124
'x-cypress-version': '1.2.3',
127125
},
@@ -152,7 +150,6 @@ describe('getCyPromptBundle', () => {
152150
'x-route-version': '1',
153151
'x-cypress-signature': '1',
154152
'x-cypress-project-slug': '12345',
155-
'x-cypress-cy-prompt-mount-version': '1',
156153
'x-os-name': 'linux',
157154
'x-cypress-version': '1.2.3',
158155
},
@@ -177,7 +174,6 @@ describe('getCyPromptBundle', () => {
177174
'x-route-version': '1',
178175
'x-cypress-signature': '1',
179176
'x-cypress-project-slug': '12345',
180-
'x-cypress-cy-prompt-mount-version': '1',
181177
'x-os-name': 'linux',
182178
'x-cypress-version': '1.2.3',
183179
},
@@ -220,7 +216,6 @@ describe('getCyPromptBundle', () => {
220216
'x-route-version': '1',
221217
'x-cypress-signature': '1',
222218
'x-cypress-project-slug': '12345',
223-
'x-cypress-cy-prompt-mount-version': '1',
224219
'x-os-name': 'linux',
225220
'x-cypress-version': '1.2.3',
226221
},
@@ -255,7 +250,6 @@ describe('getCyPromptBundle', () => {
255250
'x-route-version': '1',
256251
'x-cypress-signature': '1',
257252
'x-cypress-project-slug': '12345',
258-
'x-cypress-cy-prompt-mount-version': '1',
259253
'x-os-name': 'linux',
260254
'x-cypress-version': '1.2.3',
261255
},
@@ -288,7 +282,6 @@ describe('getCyPromptBundle', () => {
288282
'x-route-version': '1',
289283
'x-cypress-signature': '1',
290284
'x-cypress-project-slug': '12345',
291-
'x-cypress-cy-prompt-mount-version': '1',
292285
'x-os-name': 'linux',
293286
'x-cypress-version': '1.2.3',
294287
},

packages/server/test/unit/cloud/api/cy-prompt/post_cy_prompt_session_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ describe('postCyPromptSession', () => {
4141
'x-os-name': os.platform(),
4242
'x-cypress-version': pkg.version,
4343
},
44-
body: JSON.stringify({ projectSlug: '12345', cyPromptMountVersion: 1 }),
44+
body: JSON.stringify({ projectSlug: '12345', cyPromptMountVersion: 2 }),
4545
},
4646
)
4747
})

0 commit comments

Comments
 (0)