mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-11-30 02:08:12 +08:00
chore(ssr): moveout ssr testing files (#6655)
- Move testing files to ssr-testing/
This commit is contained in:
parent
0d11e22f27
commit
6eb8cfa1ef
@ -10,7 +10,7 @@ import type { Browser } from 'puppeteer'
|
||||
|
||||
const projectRoot = process.cwd()
|
||||
const testRoot = `${projectRoot}/ssr-testing`
|
||||
const demoRoot = path.resolve(projectRoot, 'packages/components')
|
||||
const demoRoot = path.resolve(projectRoot, 'ssr-testing/cases')
|
||||
describe('Cypress Button', () => {
|
||||
let browser: Browser
|
||||
beforeAll(async () => {
|
||||
@ -19,7 +19,7 @@ describe('Cypress Button', () => {
|
||||
|
||||
describe('when initialized', () => {
|
||||
const demoPaths = glob
|
||||
.sync(`${demoRoot}/**/ssr/*.vue`)
|
||||
.sync(`${demoRoot}/*.vue`)
|
||||
.map((demo) => demo.slice(demoRoot.length + 1))
|
||||
|
||||
it.each(demoPaths)(`render %s correctly`, async (demoPath) => {
|
||||
|
Loading…
Reference in New Issue
Block a user