@xcanwin/manyoyo 5.11.6 → 5.11.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/plugin/playwright.js +6 -1
- package/package.json +1 -1
package/lib/plugin/playwright.js
CHANGED
|
@@ -1000,7 +1000,12 @@ class PlaywrightPlugin {
|
|
|
1000
1000
|
const containerConfigPath = `/tmp/manyoyo-playwright/${sceneName}.cli-attach.json`;
|
|
1001
1001
|
this.writeSceneCliAttachConfig(sceneName, {
|
|
1002
1002
|
browser: {
|
|
1003
|
-
remoteEndpoint
|
|
1003
|
+
// launch-server(非 shared)不预创建 context;remoteEndpoint 存在时
|
|
1004
|
+
// playwright-cli 默认 isolated=false 会走 contexts()[0] 并报
|
|
1005
|
+
// "unable to connect to a browser that does not have any contexts",
|
|
1006
|
+
// 因此容器内会话必须以 isolated 模式自建 context。
|
|
1007
|
+
remoteEndpoint,
|
|
1008
|
+
isolated: true
|
|
1004
1009
|
}
|
|
1005
1010
|
});
|
|
1006
1011
|
const envEntries = [
|