remove browser version management
This commit is contained in:
@@ -6,7 +6,6 @@ const runtime = {
|
||||
name: 'account-a',
|
||||
state: 'running',
|
||||
status: 'Up',
|
||||
browser_version: '148.0.0.1',
|
||||
fingerprint: { seed: 1000 },
|
||||
profile: 'creatorhub-profile-account-a',
|
||||
endpoint: 'http://account-a:9222',
|
||||
@@ -22,7 +21,6 @@ test.beforeEach(async ({ page }) => {
|
||||
test('opens social-account and network-exit configuration from the main menu', async ({ page }) => {
|
||||
await page.route('**/api/browsers', route => route.fulfill({ json: [] }))
|
||||
await page.route('**/api/gateways', route => route.fulfill({ json: [] }))
|
||||
await page.route('**/api/browser-versions', route => route.fulfill({ json: [] }))
|
||||
await page.route('**/api/phase-a/accounts', route => route.fulfill({ json: [] }))
|
||||
await page.route('**/api/creator/competitors', route => route.fulfill({ json: [] }))
|
||||
await page.route('**/api/network-exits', route => route.fulfill({ json: [] }))
|
||||
@@ -43,7 +41,6 @@ test('opens social-account and network-exit configuration from the main menu', a
|
||||
test('keeps the create form inside a 900px viewport', async ({ page }) => {
|
||||
await page.route('**/api/browsers', route => route.fulfill({ json: [] }))
|
||||
await page.route('**/api/gateways', route => route.fulfill({ json: [] }))
|
||||
await page.route('**/api/browser-versions', route => route.fulfill({ json: [] }))
|
||||
await page.route('**/api/phase-a/accounts', route => route.fulfill({ json: [] }))
|
||||
await page.route('**/api/network-exits', route => route.fulfill({ json: [] }))
|
||||
await page.setViewportSize({ width: 900, height: 800 })
|
||||
@@ -61,7 +58,6 @@ test('keeps the create form inside a 900px viewport', async ({ page }) => {
|
||||
test('shows the CDP endpoint only in the active branch at 900px and 599px', async ({ page }) => {
|
||||
await page.route('**/api/browsers', route => route.fulfill({ json: [runtime] }))
|
||||
await page.route('**/api/gateways', route => route.fulfill({ json: [] }))
|
||||
await page.route('**/api/browser-versions', route => route.fulfill({ json: [] }))
|
||||
await page.route('**/api/phase-a/accounts', route => route.fulfill({ json: [] }))
|
||||
await page.route('**/api/network-exits', route => route.fulfill({ json: [] }))
|
||||
const endpoint = page.getByText('http://account-a:9222')
|
||||
@@ -85,7 +81,6 @@ test('enforces browser readiness before starting at 900px', async ({ page }) =>
|
||||
]
|
||||
await page.route('**/api/browsers', route => route.fulfill({ json: environments }))
|
||||
await page.route('**/api/gateways', route => route.fulfill({ json: [] }))
|
||||
await page.route('**/api/browser-versions', route => route.fulfill({ json: [] }))
|
||||
await page.route('**/api/phase-a/accounts', route => route.fulfill({ json: [] }))
|
||||
await page.route('**/api/network-exits', route => route.fulfill({ json: [] }))
|
||||
await page.route('**/api/browsers/*/start', route => route.fulfill({ status: 204 }))
|
||||
@@ -228,7 +223,7 @@ test('keeps task recovery traceable without blind retry at 599px, 900px and 1280
|
||||
return route.fulfill({ json: [listTask] })
|
||||
})
|
||||
await page.route('**/api/phase-a/attempts/attempt-a', route => route.fulfill({ json: { ...baseTask.attempts[0], task_id: 'task-a', browser_env_alias: 'env-a', network_exit_id: 'exit-a', binding_version: 4 } }))
|
||||
await page.route('**/api/browsers/env-a', route => route.fulfill({ json: { alias: 'env-a', name: '店铺环境', account_id: 'account-a', browser_version: '148', binding_version: 4, runtime_instance_id: 'runtime-a', network_exit: { id: 'exit-a', health_status: 'healthy' } } }))
|
||||
await page.route('**/api/browsers/env-a', route => route.fulfill({ json: { alias: 'env-a', name: '店铺环境', account_id: 'account-a', binding_version: 4, runtime_instance_id: 'runtime-a', network_exit: { id: 'exit-a', health_status: 'healthy' } } }))
|
||||
await page.route('**/api/network-exits/exit-a', route => route.fulfill({ json: { id: 'exit-a', protocol: 'socks5', host: 'proxy.example', port: 1080, health_status: 'healthy', version: 2 } }))
|
||||
for (const path of ['/tasks', '/tasks/task-a', '/attempts/attempt-a', '/browsers/env-a', '/network-exits/exit-a']) {
|
||||
for (const width of [599, 900, 1280]) {
|
||||
|
||||
Reference in New Issue
Block a user