Skip to content

update: update yml

update: update yml #53

Re-run triggered March 8, 2024 04:23
Status Failure
Total duration 9m 26s
Artifacts 1

all-tests.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

20 errors, 5 warnings, and 2 notices
[coverage_report] › _coverage.teardown.ts:21:9 › get api test coverage › get coverage: tests/pw/tests/api/_coverage.teardown.ts#L27
1) [coverage_report] › _coverage.teardown.ts:21:9 › get api test coverage › get coverage ───────── TypeError: Cannot read properties of undefined (reading 'routes') 25 | for (const endpoint of endpoints) { 26 | const [, responseBody] = await apiUtils.get(endpoint); > 27 | allRoutes.push(...Object.keys(responseBody.routes)); | ^ 28 | allRouteObjValues.push(...Object.values(responseBody.routes)); 29 | } 30 | const allRouteMethods: string[][] = allRouteObjValues.map(route => route.methods); at /home/runner/work/dokan/dokan/tests/pw/tests/api/_coverage.teardown.ts:27:56
[coverage_report] › _coverage.teardown.ts:21:9 › get api test coverage › get coverage: tests/pw/tests/api/_coverage.teardown.ts#L27
1) [coverage_report] › _coverage.teardown.ts:21:9 › get api test coverage › get coverage ───────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TypeError: Cannot read properties of undefined (reading 'routes') 25 | for (const endpoint of endpoints) { 26 | const [, responseBody] = await apiUtils.get(endpoint); > 27 | allRoutes.push(...Object.keys(responseBody.routes)); | ^ 28 | allRouteObjValues.push(...Object.values(responseBody.routes)); 29 | } 30 | const allRouteMethods: string[][] = allRouteObjValues.map(route => route.methods); at /home/runner/work/dokan/dokan/tests/pw/tests/api/_coverage.teardown.ts:27:56
[api_setup] › _auth.setup.ts:36:10 › setup test environment › create customer @lite: tests/pw/utils/apiUtils.ts#L781
2) [api_setup] › _auth.setup.ts:36:10 › setup test environment › create customer @lite ─────────── TypeError: Cannot read properties of undefined (reading 'code') at ../../utils/apiUtils.ts:781 779 | const [response, responseBody] = await this.post(endPoints.wc.createCustomer, { data: payload, headers: auth }, false); 780 | let customerId: string; > 781 | if (responseBody.code) { | ^ 782 | expect(response.status()).toBe(400); 783 | 784 | // get customer id if already exists at ApiUtils.createCustomer (/home/runner/work/dokan/dokan/tests/pw/utils/apiUtils.ts:781:26) at /home/runner/work/dokan/dokan/tests/pw/tests/api/_auth.setup.ts:37:32
[api_setup] › _auth.setup.ts:36:10 › setup test environment › create customer @lite: tests/pw/utils/apiUtils.ts#L781
2) [api_setup] › _auth.setup.ts:36:10 › setup test environment › create customer @lite ─────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TypeError: Cannot read properties of undefined (reading 'code') at ../../utils/apiUtils.ts:781 779 | const [response, responseBody] = await this.post(endPoints.wc.createCustomer, { data: payload, headers: auth }, false); 780 | let customerId: string; > 781 | if (responseBody.code) { | ^ 782 | expect(response.status()).toBe(400); 783 | 784 | // get customer id if already exists at ApiUtils.createCustomer (/home/runner/work/dokan/dokan/tests/pw/utils/apiUtils.ts:781:26) at /home/runner/work/dokan/dokan/tests/pw/tests/api/_auth.setup.ts:37:32
[api_setup] › _auth.setup.ts:41:10 › setup test environment › create vendor @lite: tests/pw/utils/apiUtils.ts#L174
3) [api_setup] › _auth.setup.ts:41:10 › setup test environment › create vendor @lite ───────────── TypeError: Cannot read properties of undefined (reading 'code') at ../../utils/apiUtils.ts:174 172 | let sellerId: string; 173 | let storeName: string; > 174 | if (responseBody.code) { | ^ 175 | expect(response.status()).toBe(500); 176 | 177 | // get store id if already exists at ApiUtils.createStore (/home/runner/work/dokan/dokan/tests/pw/utils/apiUtils.ts:174:26) at /home/runner/work/dokan/dokan/tests/pw/tests/api/_auth.setup.ts:42:30
[api_setup] › _auth.setup.ts:41:10 › setup test environment › create vendor @lite: tests/pw/utils/apiUtils.ts#L174
3) [api_setup] › _auth.setup.ts:41:10 › setup test environment › create vendor @lite ───────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TypeError: Cannot read properties of undefined (reading 'code') at ../../utils/apiUtils.ts:174 172 | let sellerId: string; 173 | let storeName: string; > 174 | if (responseBody.code) { | ^ 175 | expect(response.status()).toBe(500); 176 | 177 | // get store id if already exists at ApiUtils.createStore (/home/runner/work/dokan/dokan/tests/pw/utils/apiUtils.ts:174:26) at /home/runner/work/dokan/dokan/tests/pw/tests/api/_auth.setup.ts:42:30
[api_setup] › _auth.setup.ts:46:10 › setup test environment › add vendor2 @lite: tests/pw/utils/apiUtils.ts#L174
4) [api_setup] › _auth.setup.ts:46:10 › setup test environment › add vendor2 @lite ─────────────── TypeError: Cannot read properties of undefined (reading 'code') at ../../utils/apiUtils.ts:174 172 | let sellerId: string; 173 | let storeName: string; > 174 | if (responseBody.code) { | ^ 175 | expect(response.status()).toBe(500); 176 | 177 | // get store id if already exists at ApiUtils.createStore (/home/runner/work/dokan/dokan/tests/pw/utils/apiUtils.ts:174:26) at /home/runner/work/dokan/dokan/tests/pw/tests/api/_auth.setup.ts:47:30
[api_setup] › _auth.setup.ts:46:10 › setup test environment › add vendor2 @lite: tests/pw/utils/apiUtils.ts#L174
4) [api_setup] › _auth.setup.ts:46:10 › setup test environment › add vendor2 @lite ─────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TypeError: Cannot read properties of undefined (reading 'code') at ../../utils/apiUtils.ts:174 172 | let sellerId: string; 173 | let storeName: string; > 174 | if (responseBody.code) { | ^ 175 | expect(response.status()).toBe(500); 176 | 177 | // get store id if already exists at ApiUtils.createStore (/home/runner/work/dokan/dokan/tests/pw/utils/apiUtils.ts:174:26) at /home/runner/work/dokan/dokan/tests/pw/tests/api/_auth.setup.ts:47:30
[api_setup] › _auth.setup.ts:51:10 › setup test environment › dokan pro enabled or not @lite: tests/pw/utils/apiUtils.ts#L1404
5) [api_setup] › _auth.setup.ts:51:10 › setup test environment › dokan pro enabled or not @lite ── TypeError: Cannot read properties of undefined (reading 'map') at ../../utils/apiUtils.ts:1404 1402 | // get plugin active or not 1403 | async checkPluginsExistence(plugins: string[], auth?: auth): Promise<boolean> { > 1404 | const existingPlugins = (await this.getAllPlugins({}, auth)).map((a: { plugin: string }) => a.plugin.split('/')[1]); | ^ 1405 | return helpers.isSubArray(existingPlugins, plugins); 1406 | } 1407 | at ApiUtils.checkPluginsExistence (/home/runner/work/dokan/dokan/tests/pw/utils/apiUtils.ts:1404:70) at /home/runner/work/dokan/dokan/tests/pw/tests/api/_auth.setup.ts:52:19
[api_setup] › _auth.setup.ts:51:10 › setup test environment › dokan pro enabled or not @lite: tests/pw/utils/apiUtils.ts#L1404
5) [api_setup] › _auth.setup.ts:51:10 › setup test environment › dokan pro enabled or not @lite ── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TypeError: Cannot read properties of undefined (reading 'map') at ../../utils/apiUtils.ts:1404 1402 | // get plugin active or not 1403 | async checkPluginsExistence(plugins: string[], auth?: auth): Promise<boolean> { > 1404 | const existingPlugins = (await this.getAllPlugins({}, auth)).map((a: { plugin: string }) => a.plugin.split('/')[1]); | ^ 1405 | return helpers.isSubArray(existingPlugins, plugins); 1406 | } 1407 | at ApiUtils.checkPluginsExistence (/home/runner/work/dokan/dokan/tests/pw/utils/apiUtils.ts:1404:70) at /home/runner/work/dokan/dokan/tests/pw/tests/api/_auth.setup.ts:52:19
[e2e_setup] › _env.setup.ts:113:10 › setup site & woocommerce & user settings › check active dokan modules @pro: tests/pw/utils/apiUtils.ts#L737
1) [e2e_setup] › _env.setup.ts:113:10 › setup site & woocommerce & user settings › check active dokan modules @Pro TypeError: Cannot read properties of undefined (reading 'map') at ../../utils/apiUtils.ts:737 735 | async getAllModuleIds(params = {}, auth?: auth): Promise<string[]> { 736 | const allModules = await this.getAllModules(params, auth); > 737 | const allModuleIds = allModules.map((o: { id: unknown }) => o.id); | ^ 738 | return allModuleIds; 739 | } 740 | at ApiUtils.getAllModuleIds (/home/runner/work/dokan/dokan/tests/pw/utils/apiUtils.ts:737:41) at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/_env.setup.ts:115:31
[e2e_setup] › _env.setup.ts:113:10 › setup site & woocommerce & user settings › check active dokan modules @pro: tests/pw/utils/apiUtils.ts#L737
1) [e2e_setup] › _env.setup.ts:113:10 › setup site & woocommerce & user settings › check active dokan modules @Pro Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TypeError: Cannot read properties of undefined (reading 'map') at ../../utils/apiUtils.ts:737 735 | async getAllModuleIds(params = {}, auth?: auth): Promise<string[]> { 736 | const allModules = await this.getAllModules(params, auth); > 737 | const allModuleIds = allModules.map((o: { id: unknown }) => o.id); | ^ 738 | return allModuleIds; 739 | } 740 | at ApiUtils.getAllModuleIds (/home/runner/work/dokan/dokan/tests/pw/utils/apiUtils.ts:737:41) at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/_env.setup.ts:115:31
[e2e_setup] › _env.setup.ts:119:10 › setup site & woocommerce & user settings › disable simple-auction ajax bid check @pro: tests/pw/utils/apiUtils.ts#L1381
2) [e2e_setup] › _env.setup.ts:119:10 › setup site & woocommerce & user settings › disable simple-auction ajax bid check @Pro TypeError: Cannot read properties of undefined (reading 'code') at ../../utils/apiUtils.ts:1381 1379 | async getSinglePlugin(plugin: string, auth?: auth): Promise<[responseBody, string, string]> { 1380 | const [response, responseBody] = await this.get(endPoints.wp.getSinglePlugin(plugin), { headers: auth }, false); > 1381 | if (responseBody.code) { | ^ 1382 | expect(response.status()).toBe(404); 1383 | return [responseBody, plugin, 'not exists']; 1384 | } at ApiUtils.getSinglePlugin (/home/runner/work/dokan/dokan/tests/pw/utils/apiUtils.ts:1381:26) at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/_env.setup.ts:121:30
[e2e_setup] › _env.setup.ts:119:10 › setup site & woocommerce & user settings › disable simple-auction ajax bid check @pro: tests/pw/utils/apiUtils.ts#L1381
2) [e2e_setup] › _env.setup.ts:119:10 › setup site & woocommerce & user settings › disable simple-auction ajax bid check @Pro Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TypeError: Cannot read properties of undefined (reading 'code') at ../../utils/apiUtils.ts:1381 1379 | async getSinglePlugin(plugin: string, auth?: auth): Promise<[responseBody, string, string]> { 1380 | const [response, responseBody] = await this.get(endPoints.wp.getSinglePlugin(plugin), { headers: auth }, false); > 1381 | if (responseBody.code) { | ^ 1382 | expect(response.status()).toBe(404); 1383 | return [responseBody, plugin, 'not exists']; 1384 | } at ApiUtils.getSinglePlugin (/home/runner/work/dokan/dokan/tests/pw/utils/apiUtils.ts:1381:26) at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/_env.setup.ts:121:30
[e2e_setup] › _env.setup.ts:156:10 › setup user settings › add vendor coupon @pro: tests/pw/tests/e2e/_env.setup.ts#L159
3) [e2e_setup] › _env.setup.ts:156:10 › setup user settings › add vendor coupon @Pro ───────────── TypeError: Cannot read properties of undefined (reading 'map') 157 | setup.skip(!DOKAN_PRO, 'skip on lite'); 158 | // create store coupon > 159 | const allProductIds = (await apiUtils.getAllProducts(payloads.vendorAuth)).map((o: { id: string }) => o.id); | ^ 160 | await apiUtils.createCoupon(allProductIds, payloads.createCoupon1, payloads.vendorAuth); 161 | }); 162 | at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/_env.setup.ts:159:84
[e2e_setup] › _env.setup.ts:156:10 › setup user settings › add vendor coupon @pro: tests/pw/tests/e2e/_env.setup.ts#L159
3) [e2e_setup] › _env.setup.ts:156:10 › setup user settings › add vendor coupon @Pro ───────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TypeError: Cannot read properties of undefined (reading 'map') 157 | setup.skip(!DOKAN_PRO, 'skip on lite'); 158 | // create store coupon > 159 | const allProductIds = (await apiUtils.getAllProducts(payloads.vendorAuth)).map((o: { id: string }) => o.id); | ^ 160 | await apiUtils.createCoupon(allProductIds, payloads.createCoupon1, payloads.vendorAuth); 161 | }); 162 | at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/_env.setup.ts:159:84
[e2e_setup] › _env.setup.ts:199:10 › setup dokan settings › admin set dokan page settings @lite: tests/pw/utils/apiUtils.ts#L1497
4) [e2e_setup] › _env.setup.ts:199:10 › setup dokan settings › admin set dokan page settings @lite TypeError: Cannot read properties of undefined (reading 'find') at ../../utils/apiUtils.ts:1497 1495 | async getPageId(pageSlug: string, auth?: auth): Promise<string> { 1496 | const allPages = await this.getAllPages(auth); > 1497 | const pageId = allPages.find((o: { slug: string }) => o.slug.toLowerCase() === pageSlug.toLowerCase())?.id; | ^ 1498 | return pageId; 1499 | } 1500 | at ApiUtils.getPageId (/home/runner/work/dokan/dokan/tests/pw/utils/apiUtils.ts:1497:33) at ApiUtils.createPage (/home/runner/work/dokan/dokan/tests/pw/utils/apiUtils.ts:1503:22) at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/_env.setup.ts:200:28
[e2e_setup] › _env.setup.ts:199:10 › setup dokan settings › admin set dokan page settings @lite: tests/pw/utils/apiUtils.ts#L1497
4) [e2e_setup] › _env.setup.ts:199:10 › setup dokan settings › admin set dokan page settings @lite Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TypeError: Cannot read properties of undefined (reading 'find') at ../../utils/apiUtils.ts:1497 1495 | async getPageId(pageSlug: string, auth?: auth): Promise<string> { 1496 | const allPages = await this.getAllPages(auth); > 1497 | const pageId = allPages.find((o: { slug: string }) => o.slug.toLowerCase() === pageSlug.toLowerCase())?.id; | ^ 1498 | return pageId; 1499 | } 1500 | at ApiUtils.getPageId (/home/runner/work/dokan/dokan/tests/pw/utils/apiUtils.ts:1497:33) at ApiUtils.createPage (/home/runner/work/dokan/dokan/tests/pw/utils/apiUtils.ts:1503:22) at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/_env.setup.ts:200:28
[e2e_setup] › _env.setup.ts:210:10 › setup dokan settings › admin set dokan privacy policy settings @lite: tests/pw/utils/apiUtils.ts#L1497
5) [e2e_setup] › _env.setup.ts:210:10 › setup dokan settings › admin set dokan privacy policy settings @lite TypeError: Cannot read properties of undefined (reading 'find') at ../../utils/apiUtils.ts:1497 1495 | async getPageId(pageSlug: string, auth?: auth): Promise<string> { 1496 | const allPages = await this.getAllPages(auth); > 1497 | const pageId = allPages.find((o: { slug: string }) => o.slug.toLowerCase() === pageSlug.toLowerCase())?.id; | ^ 1498 | return pageId; 1499 | } 1500 | at ApiUtils.getPageId (/home/runner/work/dokan/dokan/tests/pw/utils/apiUtils.ts:1497:33) at ApiUtils.createPage (/home/runner/work/dokan/dokan/tests/pw/utils/apiUtils.ts:1503:22) at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/_env.setup.ts:211:28
[e2e_setup] › _env.setup.ts:210:10 › setup dokan settings › admin set dokan privacy policy settings @lite: tests/pw/utils/apiUtils.ts#L1497
5) [e2e_setup] › _env.setup.ts:210:10 › setup dokan settings › admin set dokan privacy policy settings @lite Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TypeError: Cannot read properties of undefined (reading 'find') at ../../utils/apiUtils.ts:1497 1495 | async getPageId(pageSlug: string, auth?: auth): Promise<string> { 1496 | const allPages = await this.getAllPages(auth); > 1497 | const pageId = allPages.find((o: { slug: string }) => o.slug.toLowerCase() === pageSlug.toLowerCase())?.id; | ^ 1498 | return pageId; 1499 | } 1500 | at ApiUtils.getPageId (/home/runner/work/dokan/dokan/tests/pw/utils/apiUtils.ts:1497:33) at ApiUtils.createPage (/home/runner/work/dokan/dokan/tests/pw/utils/apiUtils.ts:1503:22) at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/_env.setup.ts:211:28
e2e_api tests
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3, actions/cache@v3, actions/github-script@v6, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Slow Test: tests/pw/[api_setup] › _env.setup.ts#L1
tests/pw/[api_setup] › _env.setup.ts took 11.6s
Slow Test: tests/pw/[api_setup] › _auth.setup.ts#L1
tests/pw/[api_setup] › _auth.setup.ts took 8.2s
Slow Test: tests/pw/[e2e_setup] › _env.setup.ts#L1
tests/pw/[e2e_setup] › _env.setup.ts took 3.8m
Slow Test: tests/pw/[auth_setup] › _auth.setup.ts#L1
tests/pw/[auth_setup] › _auth.setup.ts took 23.5s
🎭 Playwright Run Summary
10 failed [coverage_report] › _coverage.teardown.ts:21:9 › get api test coverage › get coverage ────────── [api_setup] › _auth.setup.ts:36:10 › setup test environment › create customer @lite ──────────── [api_setup] › _auth.setup.ts:41:10 › setup test environment › create vendor @lite ────────────── [api_setup] › _auth.setup.ts:46:10 › setup test environment › add vendor2 @lite ──────────────── [api_setup] › _auth.setup.ts:51:10 › setup test environment › dokan pro enabled or not @lite ─── [api_setup] › _auth.setup.ts:59:10 › setup test environment › get test environment info @lite ── [api_setup] › _env.setup.ts:27:10 › setup site & woocommerce & user settings › check active plugins @lite [api_setup] › _env.setup.ts:33:10 › setup site & woocommerce & user settings › set wordPress site settings @lite [api_setup] › _env.setup.ts:89:10 › setup dokan settings › admin set dokan page settings @lite ─ [api_setup] › _env.setup.ts:100:10 › setup dokan settings › admin set dokan privacy policy settings @lite 6 skipped 273 did not run 22 passed (35.5s)
🎭 Playwright Run Summary
10 failed [e2e_setup] › _env.setup.ts:113:10 › setup site & woocommerce & user settings › check active dokan modules @Pro [e2e_setup] › _env.setup.ts:119:10 › setup site & woocommerce & user settings › disable simple-auction ajax bid check @Pro [e2e_setup] › _env.setup.ts:156:10 › setup user settings › add vendor coupon @Pro ────────────── [e2e_setup] › _env.setup.ts:199:10 › setup dokan settings › admin set dokan page settings @lite [e2e_setup] › _env.setup.ts:210:10 › setup dokan settings › admin set dokan privacy policy settings @lite [e2e_setup] › _env.setup.ts:315:10 › setup dokan settings e2e › recreate reverse withdrawal payment product via settings save @lite [e2e_setup] › _env.setup.ts:319:10 › setup dokan settings e2e › reverse Withdraw payment product exists @lite [e2e_setup] › _env.setup.ts:324:10 › setup dokan settings e2e › recreate product advertisement payment product via settings save @Pro [e2e_setup] › _env.setup.ts:329:10 › setup dokan settings e2e › product advertisement payment product exists @Pro [e2e_setup] › _env.setup.ts:335:10 › setup dokan settings e2e › save store settings to update store on map @lite 12 skipped 589 did not run 30 passed (5.0m)

Artifacts

Produced during runtime
Name Size
test-artifact Expired
44.4 MB