tiny-vue/examples/vue3/playwright.config.js

28 lines
639 B
JavaScript
Raw Permalink Normal View History

import Config from '@opentiny-internal/playwright-config'
2024-05-11 14:40:08 +08:00
/**
* 本地开发环境链接'http://localhost:7130/pc/'
* 本地官网链接'http://localhost:3101'
*/
const origin = 'http://localhost:3101'
2024-05-11 14:40:08 +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'
export default Config({
testDir: '../sites/demos',
baseURL,
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
})