Testing 为什么测试运行程序缺少插件?

Testing 为什么测试运行程序缺少插件?,testing,Testing,我正在为一些测试工作,并试图让函数正常工作 这是我的测试(来自站点的相同代码): 我一直收到的错误: Error: Error while executing command send-keys with payload {"press":"Tab"}: Unknown command send-keys. Did you install a plugin to handle this command? 我已经尝试了所有的设置来实现这一点(@web/te

我正在为一些测试工作,并试图让函数正常工作

这是我的测试(来自站点的相同代码):

我一直收到的错误:

Error: Error while executing command send-keys with payload {"press":"Tab"}: Unknown command send-keys. Did you install a plugin to handle this command?
我已经尝试了所有的设置来实现这一点(
@web/testrunner chrome
-puppeter
-playstright

这是我的
web test runner.config.mjs

import { esbuildPlugin } from '@web/dev-server-esbuild';
import { chromeLauncher } from '@web/test-runner';

export default {
    browsers: [chromeLauncher({ launchOptions: { args: ['--no-sandbox'] } })],
    coverage: true,
    nodeResolve: true,
    plugins: [esbuildPlugin({ ts: true })], // required for TS support
};
任何帮助都将不胜感激。

解决了

只需将
“@web/testrunner”:“^0.13.1”
升级到
“@web/testrunner”:“^0.13.5”

import { esbuildPlugin } from '@web/dev-server-esbuild';
import { chromeLauncher } from '@web/test-runner';

export default {
    browsers: [chromeLauncher({ launchOptions: { args: ['--no-sandbox'] } })],
    coverage: true,
    nodeResolve: true,
    plugins: [esbuildPlugin({ ts: true })], // required for TS support
};