小编Goh*_*wks的帖子

安装 Docker Desktop 4.5.0 失败:Componet.CommunityInstaller.EnableFeaturesAction 失败:未找到

在 Windows 10 版本 2004(操作系统内部版本 19041.1415)上,我在安装适用于 Ubuntu 的 WSL2 后尝试安装 docker 桌面 4.5.0。重新启动后我反复尝试,但这个问题并没有消失。任何人都可以透露一些信息吗?

Component CommunityInstaller.EnableFeaturesAction failed: Not found 
   at CommunityInstaller.InstallWorkflow.<DoHandleD4WPackageAsync>d__30.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at CommunityInstaller.InstallWorkflow.<DoProcessAsync>d__24.MoveNext()
Run Code Online (Sandbox Code Playgroud)

完整日志:

OS: Windows 10 Enterprise
Edition: Enterprise
Id: 2004
Build: 19041
BuildLabName: 19041.1.amd64fre.vb_release.191206-1406
File: C:\Users\naus-ad-xxx\AppData\Local\Docker\install-log.txt
CommandLine: "C:\Users\xxx\Downloads\Docker Desktop Installer(1).exe" "install" -package "res:DockerDesktop" --relaunch-as-admin
You can send feedback, including this log file, at https://github.com/docker/for-win/issues
[11:23:53.421][ManifestAndExistingInstallationLoader][Info   ] No install path specified, looking …
Run Code Online (Sandbox Code Playgroud)

docker windows-subsystem-for-linux

9
推荐指数
3
解决办法
3万
查看次数

任何人在 cypress 中都有一个使用 Google 登录的示例

我需要为我的应用程序编写一个使用联合登录 (Google) 的 cypress 测试。即使在我禁用了 chromeWebSecurity 之后,我仍然收到 CORS 错误。有没有人有任何示例代码?

describe('log in with google', ()=>{
  it('should work', ()=>{
    cy.visit('http://localhost:3000/')
    cy.contains('Log in with Google').click()
    cy.get("input#identifierId").type('gohawks12x3@gmail.com{enter}');
    cy.wait(5000);
    cy.get("input[@type=password]").type('<Pwd>{enter}');
  })
})
Run Code Online (Sandbox Code Playgroud)

谢谢!

google-login cypress

6
推荐指数
1
解决办法
7999
查看次数

再次用承诺开玩笑

我读了Jest Mock Promise with Params并且具有基本相同的代码片段,但它不断向我抛出错误“ParameterNotFound”

\n\n

// -- 测试代码 --

\n\n
  it("get parameter", async done => {\n    const paramsForGetParam = {\n      Name: "StripeSecretKey",\n      WithDecryption: true\n    };\n\n    const mockedResponseData = {\n      Parameter: {\n        Name: "StripeSecretKey",\n        Type: "SecureString",\n        Value: "myVal",\n        Version: 1,\n        LastModifiedDate: 1530018761.888,\n        ARN: "arn:aws:ssm:us-east-1:123456789012:parameter/helloSecureWorld"\n      }\n    };\n\n    // ssm.getParameter().promise = jest.fn();\n    ssm.getParameter = jest.fn();\n    ssm.getParameter.mockImplementation(() => ({\n      promise: jest\n        .fn()\n        .mockImplementation(() => Promise.resolve(mockedResponseData))\n    }));\n    ssm\n      .getParameter()\n      .promise.mockImplementation(() => Promise.resolve(mockedResponseData));\n\n    const data = await helpers.getSsmVar("StripeSecretKey");\n    expect(data).toEqual(mockedResponseData.Parameter.Value);\n    expect(ssm.getParameter).toHaveBeenCalledTimes(1);\n    done();\n  });\n
Run Code Online (Sandbox Code Playgroud)\n\n …

mocking promise jestjs

1
推荐指数
1
解决办法
4209
查看次数