update .env #37
Annotations
20 errors, 3 warnings, and 2 notices
[api_setup] › _env.setup.ts:34:10 › setup test environment › setup store settings @lite:
tests/pw/tests/api/_env.setup.ts#L36
1) [api_setup] › _env.setup.ts:34:10 › setup test environment › setup store settings @lite ───────
Error: expect(received).toBeTruthy()
Received: false
34 | setup('setup store settings @lite', async () => {
35 | const [response] = await apiUtils.put(endPoints.updateSettings, { data: payloads.setupStore });
> 36 | expect(response.ok()).toBeTruthy();
| ^
37 | });
38 |
39 | setup('create customer @lite', async () => {
at /home/runner/work/dokan/dokan/tests/pw/tests/api/_env.setup.ts:36:31
|
[api_setup] › _env.setup.ts:34:10 › setup test environment › setup store settings @lite:
tests/pw/tests/api/_env.setup.ts#L36
1) [api_setup] › _env.setup.ts:34:10 › setup test environment › setup store settings @lite ───────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBeTruthy()
Received: false
34 | setup('setup store settings @lite', async () => {
35 | const [response] = await apiUtils.put(endPoints.updateSettings, { data: payloads.setupStore });
> 36 | expect(response.ok()).toBeTruthy();
| ^
37 | });
38 |
39 | setup('create customer @lite', async () => {
at /home/runner/work/dokan/dokan/tests/pw/tests/api/_env.setup.ts:36:31
|
[api_setup] › _env.setup.ts:39:10 › setup test environment › create customer @lite:
tests/pw/utils/apiUtils.ts#L779
2) [api_setup] › _env.setup.ts:39:10 › setup test environment › create customer @lite ────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: 400
Received: 401
at ../../utils/apiUtils.ts:779
777 | let customerId: string;
778 | if (responseBody.code) {
> 779 | expect(response.status()).toBe(400);
| ^
780 |
781 | // get customer id if already exists
782 | customerId = await this.getCustomerId(payload.username, auth);
at ApiUtils.createCustomer (/home/runner/work/dokan/dokan/tests/pw/utils/apiUtils.ts:779:39)
at /home/runner/work/dokan/dokan/tests/pw/tests/api/_env.setup.ts:40:32
|
[api_setup] › _env.setup.ts:39:10 › setup test environment › create customer @lite:
tests/pw/utils/apiUtils.ts#L779
2) [api_setup] › _env.setup.ts:39:10 › setup test environment › create customer @lite ────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: 400
Received: 401
at ../../utils/apiUtils.ts:779
777 | let customerId: string;
778 | if (responseBody.code) {
> 779 | expect(response.status()).toBe(400);
| ^
780 |
781 | // get customer id if already exists
782 | customerId = await this.getCustomerId(payload.username, auth);
at ApiUtils.createCustomer (/home/runner/work/dokan/dokan/tests/pw/utils/apiUtils.ts:779:39)
at /home/runner/work/dokan/dokan/tests/pw/tests/api/_env.setup.ts:40:32
|
[api_setup] › _env.setup.ts:46:10 › setup test environment › create vendor @lite:
tests/pw/utils/apiUtils.ts#L175
3) [api_setup] › _env.setup.ts:46:10 › setup test environment › create vendor @lite ──────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: 500
Received: 401
at ../../utils/apiUtils.ts:175
173 | let storeName: string;
174 | if (responseBody.code) {
> 175 | expect(response.status()).toBe(500);
| ^
176 |
177 | // get store id if already exists
178 | sellerId = await this.getSellerId(payload.store_name, auth);
at ApiUtils.createStore (/home/runner/work/dokan/dokan/tests/pw/utils/apiUtils.ts:175:39)
at /home/runner/work/dokan/dokan/tests/pw/tests/api/_env.setup.ts:47:30
|
[api_setup] › _env.setup.ts:46:10 › setup test environment › create vendor @lite:
tests/pw/utils/apiUtils.ts#L175
3) [api_setup] › _env.setup.ts:46:10 › setup test environment › create vendor @lite ──────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: 500
Received: 401
at ../../utils/apiUtils.ts:175
173 | let storeName: string;
174 | if (responseBody.code) {
> 175 | expect(response.status()).toBe(500);
| ^
176 |
177 | // get store id if already exists
178 | sellerId = await this.getSellerId(payload.store_name, auth);
at ApiUtils.createStore (/home/runner/work/dokan/dokan/tests/pw/utils/apiUtils.ts:175:39)
at /home/runner/work/dokan/dokan/tests/pw/tests/api/_env.setup.ts:47:30
|
[api_setup] › _env.setup.ts:53:10 › setup test environment › add vendor2 @lite:
tests/pw/utils/apiUtils.ts#L175
4) [api_setup] › _env.setup.ts:53:10 › setup test environment › add vendor2 @lite ────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: 500
Received: 401
at ../../utils/apiUtils.ts:175
173 | let storeName: string;
174 | if (responseBody.code) {
> 175 | expect(response.status()).toBe(500);
| ^
176 |
177 | // get store id if already exists
178 | sellerId = await this.getSellerId(payload.store_name, auth);
at ApiUtils.createStore (/home/runner/work/dokan/dokan/tests/pw/utils/apiUtils.ts:175:39)
at /home/runner/work/dokan/dokan/tests/pw/tests/api/_env.setup.ts:54:30
|
[api_setup] › _env.setup.ts:53:10 › setup test environment › add vendor2 @lite:
tests/pw/utils/apiUtils.ts#L175
4) [api_setup] › _env.setup.ts:53:10 › setup test environment › add vendor2 @lite ────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: 500
Received: 401
at ../../utils/apiUtils.ts:175
173 | let storeName: string;
174 | if (responseBody.code) {
> 175 | expect(response.status()).toBe(500);
| ^
176 |
177 | // get store id if already exists
178 | sellerId = await this.getSellerId(payload.store_name, auth);
at ApiUtils.createStore (/home/runner/work/dokan/dokan/tests/pw/utils/apiUtils.ts:175:39)
at /home/runner/work/dokan/dokan/tests/pw/tests/api/_env.setup.ts:54:30
|
[api_setup] › _env.setup.ts:76:10 › setup test environment › get test environment info @lite:
tests/pw/utils/apiUtils.ts#L1758
5) [api_setup] › _env.setup.ts:76:10 › setup test environment › get test environment info @lite ──
TypeError: Cannot read properties of undefined (reading 'active_plugins')
at ../../utils/apiUtils.ts:1758
1756 | async getSystemStatus(auth?: auth): Promise<[responseBody, object]> {
1757 | const [, responseBody] = await this.get(endPoints.wc.getAllSystemStatus, { headers: auth });
> 1758 | let activePlugins = responseBody.active_plugins.map((a: { plugin: string; version: string }) => a.plugin.split('/')[0] + ' v' + a.version);
| ^
1759 | activePlugins.sort();
1760 | const conditions = ['Basic-Auth', 'bookings', 'addons', 'auctions', 'subscriptions', 'ba', 'wa', 'wb', 'ws', 'wpa'];
1761 | activePlugins = activePlugins.filter((e: string | string[]) => !conditions.some(el => e.includes(el)));
at ApiUtils.getSystemStatus (/home/runner/work/dokan/dokan/tests/pw/utils/apiUtils.ts:1758:42)
at /home/runner/work/dokan/dokan/tests/pw/tests/api/_env.setup.ts:77:32
|
[api_setup] › _env.setup.ts:76:10 › setup test environment › get test environment info @lite:
tests/pw/utils/apiUtils.ts#L1758
5) [api_setup] › _env.setup.ts:76:10 › setup test environment › get test environment info @lite ──
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TypeError: Cannot read properties of undefined (reading 'active_plugins')
at ../../utils/apiUtils.ts:1758
1756 | async getSystemStatus(auth?: auth): Promise<[responseBody, object]> {
1757 | const [, responseBody] = await this.get(endPoints.wc.getAllSystemStatus, { headers: auth });
> 1758 | let activePlugins = responseBody.active_plugins.map((a: { plugin: string; version: string }) => a.plugin.split('/')[0] + ' v' + a.version);
| ^
1759 | activePlugins.sort();
1760 | const conditions = ['Basic-Auth', 'bookings', 'addons', 'auctions', 'subscriptions', 'ba', 'wa', 'wb', 'ws', 'wpa'];
1761 | activePlugins = activePlugins.filter((e: string | string[]) => !conditions.some(el => e.includes(el)));
at ApiUtils.getSystemStatus (/home/runner/work/dokan/dokan/tests/pw/utils/apiUtils.ts:1758:42)
at /home/runner/work/dokan/dokan/tests/pw/tests/api/_env.setup.ts:77:32
|
[auth_setup] › _auth.setup.ts:46:10 › authenticate users & set permalink › add customer1 @lite:
tests/pw/utils/apiUtils.ts#L779
1) [auth_setup] › _auth.setup.ts:46:10 › authenticate users & set permalink › add customer1 @lite
Error: expect(received).toBe(expected) // Object.is equality
Expected: 400
Received: 401
at ../../utils/apiUtils.ts:779
777 | let customerId: string;
778 | if (responseBody.code) {
> 779 | expect(response.status()).toBe(400);
| ^
780 |
781 | // get customer id if already exists
782 | customerId = await this.getCustomerId(payload.username, auth);
at ApiUtils.createCustomer (/home/runner/work/dokan/dokan/tests/pw/utils/apiUtils.ts:779:39)
at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/_auth.setup.ts:47:32
|
[auth_setup] › _auth.setup.ts:46:10 › authenticate users & set permalink › add customer1 @lite:
tests/pw/utils/apiUtils.ts#L779
1) [auth_setup] › _auth.setup.ts:46:10 › authenticate users & set permalink › add customer1 @lite
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: 400
Received: 401
at ../../utils/apiUtils.ts:779
777 | let customerId: string;
778 | if (responseBody.code) {
> 779 | expect(response.status()).toBe(400);
| ^
780 |
781 | // get customer id if already exists
782 | customerId = await this.getCustomerId(payload.username, auth);
at ApiUtils.createCustomer (/home/runner/work/dokan/dokan/tests/pw/utils/apiUtils.ts:779:39)
at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/_auth.setup.ts:47:32
|
[auth_setup] › _auth.setup.ts:53:10 › authenticate users & set permalink › add vendor1 @lite:
tests/pw/utils/apiUtils.ts#L175
2) [auth_setup] › _auth.setup.ts:53:10 › authenticate users & set permalink › add vendor1 @lite ──
Error: expect(received).toBe(expected) // Object.is equality
Expected: 500
Received: 401
at ../../utils/apiUtils.ts:175
173 | let storeName: string;
174 | if (responseBody.code) {
> 175 | expect(response.status()).toBe(500);
| ^
176 |
177 | // get store id if already exists
178 | sellerId = await this.getSellerId(payload.store_name, auth);
at ApiUtils.createStore (/home/runner/work/dokan/dokan/tests/pw/utils/apiUtils.ts:175:39)
at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/_auth.setup.ts:54:30
|
[auth_setup] › _auth.setup.ts:53:10 › authenticate users & set permalink › add vendor1 @lite:
tests/pw/utils/apiUtils.ts#L175
2) [auth_setup] › _auth.setup.ts:53:10 › authenticate users & set permalink › add vendor1 @lite ──
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: 500
Received: 401
at ../../utils/apiUtils.ts:175
173 | let storeName: string;
174 | if (responseBody.code) {
> 175 | expect(response.status()).toBe(500);
| ^
176 |
177 | // get store id if already exists
178 | sellerId = await this.getSellerId(payload.store_name, auth);
at ApiUtils.createStore (/home/runner/work/dokan/dokan/tests/pw/utils/apiUtils.ts:175:39)
at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/_auth.setup.ts:54:30
|
[auth_setup] › _auth.setup.ts:60:10 › authenticate users & set permalink › add vendor2 @lite:
tests/pw/utils/apiUtils.ts#L175
3) [auth_setup] › _auth.setup.ts:60:10 › authenticate users & set permalink › add vendor2 @lite ──
Error: expect(received).toBe(expected) // Object.is equality
Expected: 500
Received: 401
at ../../utils/apiUtils.ts:175
173 | let storeName: string;
174 | if (responseBody.code) {
> 175 | expect(response.status()).toBe(500);
| ^
176 |
177 | // get store id if already exists
178 | sellerId = await this.getSellerId(payload.store_name, auth);
at ApiUtils.createStore (/home/runner/work/dokan/dokan/tests/pw/utils/apiUtils.ts:175:39)
at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/_auth.setup.ts:61:30
|
[auth_setup] › _auth.setup.ts:60:10 › authenticate users & set permalink › add vendor2 @lite:
tests/pw/utils/apiUtils.ts#L175
3) [auth_setup] › _auth.setup.ts:60:10 › authenticate users & set permalink › add vendor2 @lite ──
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: 500
Received: 401
at ../../utils/apiUtils.ts:175
173 | let storeName: string;
174 | if (responseBody.code) {
> 175 | expect(response.status()).toBe(500);
| ^
176 |
177 | // get store id if already exists
178 | sellerId = await this.getSellerId(payload.store_name, auth);
at ApiUtils.createStore (/home/runner/work/dokan/dokan/tests/pw/utils/apiUtils.ts:175:39)
at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/_auth.setup.ts:61:30
|
[auth_setup] › _auth.setup.ts:67:10 › authenticate users & set permalink › authenticate customer @lite:
tests/pw/pages/basePage.ts#L238
4) [auth_setup] › _auth.setup.ts:67:10 › authenticate users & set permalink › authenticate customer @lite
TimeoutError: page.waitForResponse: Timeout 30000ms exceeded while waiting for event "response"
at ../../pages/basePage.ts:238
236 | // click & wait for response
237 | async clickAndWaitForResponseAndLoadState(subUrl: string, selector: string, code = 200): Promise<Response> {
> 238 | const [, response] = await Promise.all([this.page.waitForLoadState('networkidle'), this.page.waitForResponse(resp => resp.url().includes(subUrl) && resp.status() === code), this.page.locator(selector).click()]);
| ^
239 | expect(response.status()).toBe(code);
240 | return response;
241 | }
at LoginPage.clickAndWaitForResponseAndLoadState (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:238:102)
at LoginPage.loginFronted (/home/runner/work/dokan/dokan/tests/pw/pages/loginPage.ts:36:20)
at LoginPage.login (/home/runner/work/dokan/dokan/tests/pw/pages/loginPage.ts:13:9)
at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/_auth.setup.ts:69:9
|
[auth_setup] › _auth.setup.ts:67:10 › authenticate users & set permalink › authenticate customer @lite:
tests/pw/pages/basePage.ts#L238
4) [auth_setup] › _auth.setup.ts:67:10 › authenticate users & set permalink › authenticate customer @lite
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: page.waitForResponse: Timeout 30000ms exceeded while waiting for event "response"
at ../../pages/basePage.ts:238
236 | // click & wait for response
237 | async clickAndWaitForResponseAndLoadState(subUrl: string, selector: string, code = 200): Promise<Response> {
> 238 | const [, response] = await Promise.all([this.page.waitForLoadState('networkidle'), this.page.waitForResponse(resp => resp.url().includes(subUrl) && resp.status() === code), this.page.locator(selector).click()]);
| ^
239 | expect(response.status()).toBe(code);
240 | return response;
241 | }
at LoginPage.clickAndWaitForResponseAndLoadState (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:238:102)
at LoginPage.loginFronted (/home/runner/work/dokan/dokan/tests/pw/pages/loginPage.ts:36:20)
at LoginPage.login (/home/runner/work/dokan/dokan/tests/pw/pages/loginPage.ts:13:9)
at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/_auth.setup.ts:69:9
|
[auth_setup] › _auth.setup.ts:72:10 › authenticate users & set permalink › authenticate vendor @lite:
tests/pw/pages/basePage.ts#L238
5) [auth_setup] › _auth.setup.ts:72:10 › authenticate users & set permalink › authenticate vendor @lite
TimeoutError: page.waitForResponse: Timeout 30000ms exceeded while waiting for event "response"
at ../../pages/basePage.ts:238
236 | // click & wait for response
237 | async clickAndWaitForResponseAndLoadState(subUrl: string, selector: string, code = 200): Promise<Response> {
> 238 | const [, response] = await Promise.all([this.page.waitForLoadState('networkidle'), this.page.waitForResponse(resp => resp.url().includes(subUrl) && resp.status() === code), this.page.locator(selector).click()]);
| ^
239 | expect(response.status()).toBe(code);
240 | return response;
241 | }
at LoginPage.clickAndWaitForResponseAndLoadState (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:238:102)
at LoginPage.loginFronted (/home/runner/work/dokan/dokan/tests/pw/pages/loginPage.ts:36:20)
at LoginPage.login (/home/runner/work/dokan/dokan/tests/pw/pages/loginPage.ts:13:9)
at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/_auth.setup.ts:74:9
|
[auth_setup] › _auth.setup.ts:72:10 › authenticate users & set permalink › authenticate vendor @lite:
tests/pw/pages/basePage.ts#L238
5) [auth_setup] › _auth.setup.ts:72:10 › authenticate users & set permalink › authenticate vendor @lite
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: page.waitForResponse: Timeout 30000ms exceeded while waiting for event "response"
at ../../pages/basePage.ts:238
236 | // click & wait for response
237 | async clickAndWaitForResponseAndLoadState(subUrl: string, selector: string, code = 200): Promise<Response> {
> 238 | const [, response] = await Promise.all([this.page.waitForLoadState('networkidle'), this.page.waitForResponse(resp => resp.url().includes(subUrl) && resp.status() === code), this.page.locator(selector).click()]);
| ^
239 | expect(response.status()).toBe(code);
240 | return response;
241 | }
at LoginPage.clickAndWaitForResponseAndLoadState (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:238:102)
at LoginPage.loginFronted (/home/runner/work/dokan/dokan/tests/pw/pages/loginPage.ts:36:20)
at LoginPage.login (/home/runner/work/dokan/dokan/tests/pw/pages/loginPage.ts:13:9)
at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/_auth.setup.ts:74:9
|
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 6.6s
|
Slow Test:
tests/pw/[auth_setup] › _auth.setup.ts#L1
tests/pw/[auth_setup] › _auth.setup.ts took 3.6m
|
🎭 Playwright Run Summary
5 failed
[api_setup] › _env.setup.ts:34:10 › setup test environment › setup store settings @lite ────────
[api_setup] › _env.setup.ts:39:10 › setup test environment › create customer @lite ─────────────
[api_setup] › _env.setup.ts:46:10 › setup test environment › create vendor @lite ───────────────
[api_setup] › _env.setup.ts:53:10 › setup test environment › add vendor2 @lite ─────────────────
[api_setup] › _env.setup.ts:76:10 › setup test environment › get test environment info @lite ───
1 skipped
278 did not run
4 passed (25.3s)
|
🎭 Playwright Run Summary
8 failed
[auth_setup] › _auth.setup.ts:46:10 › authenticate users & set permalink › add customer1 @lite ─
[auth_setup] › _auth.setup.ts:53:10 › authenticate users & set permalink › add vendor1 @lite ───
[auth_setup] › _auth.setup.ts:60:10 › authenticate users & set permalink › add vendor2 @lite ───
[auth_setup] › _auth.setup.ts:67:10 › authenticate users & set permalink › authenticate customer @lite
[auth_setup] › _auth.setup.ts:72:10 › authenticate users & set permalink › authenticate vendor @lite
[auth_setup] › _auth.setup.ts:77:10 › authenticate users & set permalink › authenticate vendor2 @lite
[auth_setup] › _auth.setup.ts:82:10 › authenticate users & set permalink › dokan pro enabled or not @lite
[auth_setup] › _auth.setup.ts:90:10 › authenticate users & set permalink › get test environment info @lite
2 skipped
614 did not run
1 passed (4.2m)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
test-artifact
Expired
|
11.6 MB |
|