fix: missing args for several endpoints in the Stores API endpoints #1615
e2e_api_tests.yml
on: pull_request
e2e_api tests
4m 44s
Annotations
6 errors, 3 warnings, and 1 notice
[auth_setup] › _auth.setup.ts:27:10 › add users › create vendor @lite:
tests/pw/utils/apiUtils.ts#L236
1) [auth_setup] › _auth.setup.ts:27:10 › add users › create vendor @lite ─────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: 500
Received: 400
at ../../utils/apiUtils.ts:236
234 | let storeName: string;
235 | if (responseBody.code) {
> 236 | expect(response.status()).toBe(500);
| ^
237 |
238 | // get store id if already exists
239 | sellerId = await this.getSellerId(payload.store_name, auth);
at ApiUtils.createStore (/home/runner/work/dokan/dokan/tests/pw/utils/apiUtils.ts:236:39)
at /home/runner/work/dokan/dokan/tests/pw/tests/api/_auth.setup.ts:28:30
|
[auth_setup] › _auth.setup.ts:27:10 › add users › create vendor @lite:
tests/pw/utils/apiUtils.ts#L236
1) [auth_setup] › _auth.setup.ts:27:10 › add users › create vendor @lite ─────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: 500
Received: 400
at ../../utils/apiUtils.ts:236
234 | let storeName: string;
235 | if (responseBody.code) {
> 236 | expect(response.status()).toBe(500);
| ^
237 |
238 | // get store id if already exists
239 | sellerId = await this.getSellerId(payload.store_name, auth);
at ApiUtils.createStore (/home/runner/work/dokan/dokan/tests/pw/utils/apiUtils.ts:236:39)
at /home/runner/work/dokan/dokan/tests/pw/tests/api/_auth.setup.ts:28:30
|
[auth_setup] › _auth.setup.ts:32:10 › add users › add vendor2 @lite:
tests/pw/utils/apiUtils.ts#L236
2) [auth_setup] › _auth.setup.ts:32:10 › add users › add vendor2 @lite ───────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: 500
Received: 400
at ../../utils/apiUtils.ts:236
234 | let storeName: string;
235 | if (responseBody.code) {
> 236 | expect(response.status()).toBe(500);
| ^
237 |
238 | // get store id if already exists
239 | sellerId = await this.getSellerId(payload.store_name, auth);
at ApiUtils.createStore (/home/runner/work/dokan/dokan/tests/pw/utils/apiUtils.ts:236:39)
at /home/runner/work/dokan/dokan/tests/pw/tests/api/_auth.setup.ts:33:30
|
[auth_setup] › _auth.setup.ts:32:10 › add users › add vendor2 @lite:
tests/pw/utils/apiUtils.ts#L236
2) [auth_setup] › _auth.setup.ts:32:10 › add users › add vendor2 @lite ───────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: 500
Received: 400
at ../../utils/apiUtils.ts:236
234 | let storeName: string;
235 | if (responseBody.code) {
> 236 | expect(response.status()).toBe(500);
| ^
237 |
238 | // get store id if already exists
239 | sellerId = await this.getSellerId(payload.store_name, auth);
at ApiUtils.createStore (/home/runner/work/dokan/dokan/tests/pw/utils/apiUtils.ts:236:39)
at /home/runner/work/dokan/dokan/tests/pw/tests/api/_auth.setup.ts:33:30
|
e2e_api tests
Process completed with exit code 1.
|
e2e_api tests
Process completed with exit code 1.
|
e2e_api tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Slow Test:
tests/pw/[site_setup] › _site.setup.ts#L1
tests/pw/[site_setup] › _site.setup.ts took 9.4s
|
Slow Test:
tests/pw/[coverage_report] › _coverage.teardown.ts#L1
tests/pw/[coverage_report] › _coverage.teardown.ts took 1.8s
|
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
test-artifact
Expired
|
3.54 MB |
|