Skip to content

Commit e2cb434

Browse files
authored
test: update integration test admin_url expectations (#7298)
The API now returns a new URL format for `admin_url`.
1 parent 9dfb71a commit e2cb434

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/integration/commands/deploy/deploy.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -413,14 +413,14 @@ describe.skipIf(process.env.NETLIFY_TEST_DISABLE_LIVE === 'true').concurrent('co
413413
}).then((output: string) => JSON.parse(output))
414414

415415
await validateDeploy({ deploy, siteName: SITE_NAME, content })
416-
expect(deploy).toHaveProperty('logs', `https://app.netlify.com/sites/${SITE_NAME}/deploys/${deploy.deploy_id}`)
416+
expect(deploy).toHaveProperty('logs', `https://app.netlify.com/projects/${SITE_NAME}/deploys/${deploy.deploy_id}`)
417417
expect(deploy).toHaveProperty(
418418
'function_logs',
419-
`https://app.netlify.com/sites/${SITE_NAME}/logs/functions?scope=deploy:${deploy.deploy_id}`,
419+
`https://app.netlify.com/projects/${SITE_NAME}/logs/functions?scope=deploy:${deploy.deploy_id}`,
420420
)
421421
expect(deploy).toHaveProperty(
422422
'edge_function_logs',
423-
`https://app.netlify.com/sites/${SITE_NAME}/logs/edge-functions?scope=deployid:${deploy.deploy_id}`,
423+
`https://app.netlify.com/projects/${SITE_NAME}/logs/edge-functions?scope=deployid:${deploy.deploy_id}`,
424424
)
425425
})
426426
})
@@ -440,11 +440,11 @@ describe.skipIf(process.env.NETLIFY_TEST_DISABLE_LIVE === 'true').concurrent('co
440440
}).then((output: string) => JSON.parse(output))
441441

442442
await validateDeploy({ deploy, siteName: SITE_NAME, content })
443-
expect(deploy).toHaveProperty('logs', `https://app.netlify.com/sites/${SITE_NAME}/deploys/${deploy.deploy_id}`)
444-
expect(deploy).toHaveProperty('function_logs', `https://app.netlify.com/sites/${SITE_NAME}/logs/functions`)
443+
expect(deploy).toHaveProperty('logs', `https://app.netlify.com/projects/${SITE_NAME}/deploys/${deploy.deploy_id}`)
444+
expect(deploy).toHaveProperty('function_logs', `https://app.netlify.com/projects/${SITE_NAME}/logs/functions`)
445445
expect(deploy).toHaveProperty(
446446
'edge_function_logs',
447-
`https://app.netlify.com/sites/${SITE_NAME}/logs/edge-functions`,
447+
`https://app.netlify.com/projects/${SITE_NAME}/logs/edge-functions`,
448448
)
449449
})
450450
})

0 commit comments

Comments
 (0)