chore: improve open API and add tests, ref leather-io/issues#5800 #6714
Annotations
4 errors, 2 warnings, and 1 notice
tests/specs/rpc-open/open.spec.ts#L55
1) [chromium] › specs/rpc-open/open.spec.ts:50:3 › Rpc: Open › the promise rejects when user closes the popup window
Error: expect(received).rejects.toThrow()
Received promise resolved instead of rejected
Resolved to value: {"id": "12818001-6337-4999-8963-da11d43e7fee", "jsonrpc": "2.0", "result": {"message": "Success"}}
53 | const popup = await interceptRequestPopup(context);
54 | await popup.close();
> 55 | await test.expect(openPromise).rejects.toThrow();
| ^
56 | });
57 |
58 | test('it forces user to unlock wallet when wallet is locked', async ({
at /home/runner/work/extension/extension/tests/specs/rpc-open/open.spec.ts:55:44
|
tests/specs/rpc-open/open.spec.ts#L55
1) [chromium] › specs/rpc-open/open.spec.ts:50:3 › Rpc: Open › the promise rejects when user closes the popup window
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).rejects.toThrow()
Received promise resolved instead of rejected
Resolved to value: {"id": "07acf4b0-9b11-4503-9e72-5315cd833ab1", "jsonrpc": "2.0", "result": {"message": "Success"}}
53 | const popup = await interceptRequestPopup(context);
54 | await popup.close();
> 55 | await test.expect(openPromise).rejects.toThrow();
| ^
56 | });
57 |
58 | test('it forces user to unlock wallet when wallet is locked', async ({
at /home/runner/work/extension/extension/tests/specs/rpc-open/open.spec.ts:55:44
|
tests/specs/rpc-open/open.spec.ts#L55
1) [chromium] › specs/rpc-open/open.spec.ts:50:3 › Rpc: Open › the promise rejects when user closes the popup window
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).rejects.toThrow()
Received promise resolved instead of rejected
Resolved to value: {"id": "edb44f43-d1f2-4030-bd9a-3ea21e9223d7", "jsonrpc": "2.0", "result": {"message": "Success"}}
53 | const popup = await interceptRequestPopup(context);
54 | await popup.close();
> 55 | await test.expect(openPromise).rejects.toThrow();
| ^
56 | });
57 |
58 | test('it forces user to unlock wallet when wallet is locked', async ({
at /home/runner/work/extension/extension/tests/specs/rpc-open/open.spec.ts:55:44
|
|
The following actions use a deprecated Node.js version and will be forced to run on node20: nick-fields/retry@v2, actions/upload-artifact@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "all-blob-reports".
Please update your workflow to use v4 of the artifact actions.
Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/
|
|
This job failed
Loading