Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用test.describe运行多个测试用例时,生成缓存文件报错 #273

Open
lanchuanshuang opened this issue Jan 14, 2025 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@lanchuanshuang
Copy link

代码示例:
test.describe("Promotion tests", () => {
test.describe.configure({ mode:'serial'});
test("create promotion", async ({ page, ai, aiAssert }) => {
await ai("点击Enterprise Portal");
});
test("create promotion2", async ({ page, ai, aiAssert }) => {
await ai("点击Demo-初始化配置3");
});
});
报错内容:
Error: ENOENT: no such file or directory, open 'D:\peblla_ui\midscene_run\cache\todo-ui.spec.ts > Promotion tests(create promotion).json'
Error: ENOENT: no such file or directory, open 'D:\peblla_ui\midscene_run\cache\todo-ui.spec.ts > Promotion tests(create promotion).json'

@zhoushaw
Copy link
Member

目前的建议是不使用 test.describe 包裹 ,直接把编写 test("xxx", async()=>{ //... });

@zhoushaw zhoushaw self-assigned this Jan 29, 2025
@zhoushaw zhoushaw added the bug Something isn't working label Jan 29, 2025
@milkse
Copy link

milkse commented Mar 22, 2025

Image 请问下大概啥时候解决呀,比如处理这种问题有简单的方式解决,现在不支持只能写原生playwright,影响了整个项目的代码设计呢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants