2023-03-28 20:37:18 +08:00
|
|
|
|
import Config from '@opentiny-internal/playwright-config'
|
|
|
|
|
|
2024-05-11 14:40:08 +08:00
|
|
|
|
/**
|
|
|
|
|
* 本地开发环境链接:'http://localhost:7130/pc/'
|
|
|
|
|
* 本地官网链接:'http://localhost:3101'
|
|
|
|
|
*/
|
2023-11-17 17:09:55 +08:00
|
|
|
|
const origin = 'http://localhost:3101'
|
2024-05-11 14:40:08 +08:00
|
|
|
|
|
2023-11-17 17:09:55 +08:00
|
|
|
|
const baseURL = `${origin}/tiny-vue/zh-CN/os-theme/components/`
|
2024-02-28 17:47:18 +08:00
|
|
|
|
const devServerCommon = 'pnpm run -w site'
|
2023-11-17 17:09:55 +08:00
|
|
|
|
|
2023-03-28 20:37:18 +08:00
|
|
|
|
export default Config({
|
2023-08-11 16:40:06 +08:00
|
|
|
|
testDir: '../sites/demos',
|
2023-11-17 17:09:55 +08:00
|
|
|
|
baseURL,
|
2023-12-07 14:22:53 +08:00
|
|
|
|
storageState: {
|
|
|
|
|
origins: [
|
|
|
|
|
{
|
|
|
|
|
origin,
|
|
|
|
|
localStorage: [
|
|
|
|
|
{ name: 'tiny-vue-api-mode', value: 'Composition' },
|
|
|
|
|
{ name: 'tiny-vue-demo-mode', value: 'single' }
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
]
|
2024-02-28 17:47:18 +08:00
|
|
|
|
},
|
|
|
|
|
devServerCommon
|
2023-03-28 20:37:18 +08:00
|
|
|
|
})
|