Refactor/dashboard products #65
e2e_api_tests.yml
on: pull_request
e2e_api tests
9m 15s
Annotations
7 errors, 6 warnings, and 2 notices
[e2e_tests] › products.spec.ts:68:9 › Product functionality test › vendor can add simple product @lite:
tests/pw/pages/basePage.ts#L231
1) [e2e_tests] › products.spec.ts:68:9 › Product functionality test › vendor can add simple product @lite
TimeoutError: page.waitForResponse: Timeout 15000ms exceeded while waiting for event "response"
at ../../pages/basePage.ts:231
229 | // click & wait for response
230 | async clickAndWaitForResponse(subUrl: string, selector: string, code = 200): Promise<Response> {
> 231 | const [response] = await Promise.all([this.page.waitForResponse(resp => resp.url().includes(subUrl) && resp.status() === code), this.page.locator(selector).click()]);
| ^
232 | return response;
233 | }
234 |
at ProductsPage.clickAndWaitForResponse (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:231:57)
at ProductsPage.vendorAddSimpleProduct (/home/runner/work/dokan/dokan/tests/pw/pages/productsPage.ts:316:24)
at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/products.spec.ts:69:9
|
[e2e_tests] › products.spec.ts:68:9 › Product functionality test › vendor can add simple product @lite:
tests/pw/pages/basePage.ts#L231
1) [e2e_tests] › products.spec.ts:68:9 › Product functionality test › vendor can add simple product @lite
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: page.waitForResponse: Timeout 15000ms exceeded while waiting for event "response"
at ../../pages/basePage.ts:231
229 | // click & wait for response
230 | async clickAndWaitForResponse(subUrl: string, selector: string, code = 200): Promise<Response> {
> 231 | const [response] = await Promise.all([this.page.waitForResponse(resp => resp.url().includes(subUrl) && resp.status() === code), this.page.locator(selector).click()]);
| ^
232 | return response;
233 | }
234 |
at ProductsPage.clickAndWaitForResponse (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:231:57)
at ProductsPage.vendorAddSimpleProduct (/home/runner/work/dokan/dokan/tests/pw/pages/productsPage.ts:316:24)
at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/products.spec.ts:69:9
|
[e2e_tests] › products.spec.ts:128:9 › Product functionality test › vendor can edit product @lite:
tests/pw/pages/basePage.ts#L231
2) [e2e_tests] › products.spec.ts:128:9 › Product functionality test › vendor can edit product @lite
TimeoutError: page.waitForResponse: Timeout 15000ms exceeded while waiting for event "response"
at ../../pages/basePage.ts:231
229 | // click & wait for response
230 | async clickAndWaitForResponse(subUrl: string, selector: string, code = 200): Promise<Response> {
> 231 | const [response] = await Promise.all([this.page.waitForResponse(resp => resp.url().includes(subUrl) && resp.status() === code), this.page.locator(selector).click()]);
| ^
232 | return response;
233 | }
234 |
at ProductsPage.clickAndWaitForResponse (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:231:57)
at ProductsPage.editProduct (/home/runner/work/dokan/dokan/tests/pw/pages/productsPage.ts:499:20)
at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/products.spec.ts:129:9
|
[e2e_tests] › products.spec.ts:128:9 › Product functionality test › vendor can edit product @lite:
tests/pw/pages/basePage.ts#L231
2) [e2e_tests] › products.spec.ts:128:9 › Product functionality test › vendor can edit product @lite
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: page.waitForResponse: Timeout 15000ms exceeded while waiting for event "response"
at ../../pages/basePage.ts:231
229 | // click & wait for response
230 | async clickAndWaitForResponse(subUrl: string, selector: string, code = 200): Promise<Response> {
> 231 | const [response] = await Promise.all([this.page.waitForResponse(resp => resp.url().includes(subUrl) && resp.status() === code), this.page.locator(selector).click()]);
| ^
232 | return response;
233 | }
234 |
at ProductsPage.clickAndWaitForResponse (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:231:57)
at ProductsPage.editProduct (/home/runner/work/dokan/dokan/tests/pw/pages/productsPage.ts:499:20)
at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/products.spec.ts:129:9
|
[e2e_tests] › settings.spec.ts:39:9 › Settings test › admin can set dokan selling settings @lite:
tests/pw/pages/basePage.ts#L531
3) [e2e_tests] › settings.spec.ts:39:9 › Settings test › admin can set dokan selling settings @lite
TimeoutError: locator.evaluate: Timeout 15000ms exceeded.
=========================== logs ===========================
waiting for locator('.one_step_product_create .switch span')
============================================================
at ../../pages/basePage.ts:531
529 | async getElementBackgroundColor(selector: string): Promise<string> {
530 | const element = this.getElement(selector);
> 531 | const value = await element.evaluate(element => window.getComputedStyle(element).getPropertyValue('background-color'));
| ^
532 | // console.log(value)
533 | return value;
534 | }
at SettingsPage.getElementBackgroundColor (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:531:37)
at SettingsPage.enableSwitcher (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:1404:34)
at SettingsPage.setDokanSellingSettings (/home/runner/work/dokan/dokan/tests/pw/pages/settingsPage.ts:97:20)
at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/settings.spec.ts:40:9
|
[e2e_tests] › settings.spec.ts:39:9 › Settings test › admin can set dokan selling settings @lite:
tests/pw/pages/basePage.ts#L531
3) [e2e_tests] › settings.spec.ts:39:9 › Settings test › admin can set dokan selling settings @lite
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.evaluate: Timeout 15000ms exceeded.
=========================== logs ===========================
waiting for locator('.one_step_product_create .switch span')
============================================================
at ../../pages/basePage.ts:531
529 | async getElementBackgroundColor(selector: string): Promise<string> {
530 | const element = this.getElement(selector);
> 531 | const value = await element.evaluate(element => window.getComputedStyle(element).getPropertyValue('background-color'));
| ^
532 | // console.log(value)
533 | return value;
534 | }
at SettingsPage.getElementBackgroundColor (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:531:37)
at SettingsPage.enableSwitcher (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:1404:34)
at SettingsPage.setDokanSellingSettings (/home/runner/work/dokan/dokan/tests/pw/pages/settingsPage.ts:97:20)
at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/settings.spec.ts:40:9
|
e2e_api tests
Process completed with exit code 1.
|
Slow Test:
tests/pw/[api_tests] › products.spec.ts#L1
tests/pw/[api_tests] › products.spec.ts took 6.3s
|
Slow Test:
tests/pw/[api_tests] › stores.spec.ts#L1
tests/pw/[api_tests] › stores.spec.ts took 3.3s
|
Slow Test:
tests/pw/[api_tests] › orders.spec.ts#L1
tests/pw/[api_tests] › orders.spec.ts took 3.2s
|
Slow Test:
tests/pw/[e2e_tests] › products.spec.ts#L1
tests/pw/[e2e_tests] › products.spec.ts took 1.7m
|
Slow Test:
tests/pw/[e2e_tests] › settings.spec.ts#L1
tests/pw/[e2e_tests] › settings.spec.ts took 41.6s
|
Slow Test:
tests/pw/[e2e_tests] › customer.spec.ts#L1
tests/pw/[e2e_tests] › customer.spec.ts took 23.8s
|
🎭 Playwright Run Summary
2 skipped
132 passed (19.2s)
|
🎭 Playwright Run Summary
3 failed
[e2e_tests] › products.spec.ts:68:9 › Product functionality test › vendor can add simple product @lite
[e2e_tests] › products.spec.ts:128:9 › Product functionality test › vendor can edit product @lite
[e2e_tests] › settings.spec.ts:39:9 › Settings test › admin can set dokan selling settings @lite
1 skipped
155 passed (5.8m)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
test-artifact
Expired
|
14.1 MB |
|