mirror of
https://github.com/langgenius/dify.git
synced 2026-07-23 03:58:31 +08:00
17 lines
475 B
TypeScript
17 lines
475 B
TypeScript
import { request } from '@playwright/test'
|
|
import { authStatePath } from '../../fixtures/auth'
|
|
import { apiURL } from '../../test-env'
|
|
import { createConsoleClient } from './console-client'
|
|
|
|
export async function createStandaloneConsoleSession() {
|
|
const requestContext = await request.newContext({
|
|
baseURL: apiURL,
|
|
storageState: authStatePath,
|
|
})
|
|
|
|
return {
|
|
client: createConsoleClient({ requestContext }),
|
|
dispose: () => requestContext.dispose(),
|
|
}
|
|
}
|