browser 模式下,怎么在测试后,保持测试浏览器窗口开启,方便调试 #1206
|
执行 这是我的配置: import { withRslibConfig } from '@rstest/adapter-rslib';
import { defineConfig } from '@rstest/core';
export default defineConfig({
include: ['**/*.browser.{test,spec}.?(c|m)[jt]s?(x)'],
extends: withRslibConfig(),
browser: {
enabled: true,
provider: 'playwright',
},
}); |
Answered by
fi3ework
Apr 25, 2026
Replies: 1 comment 1 reply
|
演示视频中浏览器保持开启是因为运行在 watch 模式下。非 watch 模式在测试结束后会关闭浏览器。 使用 watch 模式即可: The browser stays open in the demo video because it runs in watch mode. In non-watch mode, the browser is closed after the test run finishes. Use watch mode: |
1 reply
Answer selected by
YanxinTang
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
演示视频中浏览器保持开启是因为运行在 watch 模式下。非 watch 模式在测试结束后会关闭浏览器。
使用 watch 模式即可:
The browser stays open in the demo video because it runs in watch mode. In non-watch mode, the browser is closed after the test run finishes.
Use watch mode: