Skip to content

Litetests

Litetests #301

Triggered via pull request March 7, 2024 04:02
Status Failure
Total duration 9m 39s
Artifacts 1

e2e_api_tests.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors, 4 warnings, and 2 notices
[e2e_tests] › settings.spec.ts:39:9 › Settings test › admin can set dokan selling settings @lite @a: tests/pw/pages/basePage.ts#L892
1) [e2e_tests] › settings.spec.ts:39:9 › Settings test › admin can set dokan selling settings @lite @A TimeoutError: locator.click: Timeout 30000ms exceeded. Call log: - waiting for locator('//label[@for=\'dokan_selling[tax_fee_recipient][seller]\']') at ../../pages/basePage.ts:892 890 | async clickLocator(selector: string): Promise<void> { 891 | const locator = this.page.locator(selector); > 892 | await locator.click(); | ^ 893 | } 894 | 895 | // get locator count at SettingsPage.clickLocator (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:892:23) at SettingsPage.click (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:172:20) at SettingsPage.setDokanSellingSettings (/home/runner/work/dokan/dokan/tests/pw/pages/settingsPage.ts:95: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 @a: tests/pw/pages/basePage.ts#L892
1) [e2e_tests] › settings.spec.ts:39:9 › Settings test › admin can set dokan selling settings @lite @A Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TimeoutError: locator.click: Timeout 30000ms exceeded. Call log: - waiting for locator('//label[@for=\'dokan_selling[tax_fee_recipient][seller]\']') at ../../pages/basePage.ts:892 890 | async clickLocator(selector: string): Promise<void> { 891 | const locator = this.page.locator(selector); > 892 | await locator.click(); | ^ 893 | } 894 | 895 | // get locator count at SettingsPage.clickLocator (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:892:23) at SettingsPage.click (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:172:20) at SettingsPage.setDokanSellingSettings (/home/runner/work/dokan/dokan/tests/pw/pages/settingsPage.ts:95:20) at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/settings.spec.ts:40:9
[e2e_tests] › settings.spec.ts:51:9 › Settings test › admin can set dokan page settings @lite @a: tests/pw/pages/basePage.ts#L739
2) [e2e_tests] › settings.spec.ts:51:9 › Settings test › admin can set dokan page settings @lite @A TimeoutError: page.selectOption: Timeout 30000ms exceeded. Call log: - waiting for locator('#dokan_pages\\[reg_tc_page\\]') - locator resolved to <select class="regular medium" id="dokan_pages[reg_tc_pa…>…</select> - selecting specified option(s) - did not find some options - waiting... at ../../pages/basePage.ts:739 737 | // select by label 738 | async selectByLabel(selector: string, value: string): Promise<string[]> { > 739 | return await this.page.selectOption(selector, { label: value }); | ^ 740 | } 741 | 742 | // select by number at SettingsPage.selectByLabel (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:739:32) at SettingsPage.setPageSettings (/home/runner/work/dokan/dokan/tests/pw/pages/settingsPage.ts:215:20) at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/settings.spec.ts:52:9
[e2e_tests] › settings.spec.ts:51:9 › Settings test › admin can set dokan page settings @lite @a: tests/pw/pages/basePage.ts#L739
2) [e2e_tests] › settings.spec.ts:51:9 › Settings test › admin can set dokan page settings @lite @A Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TimeoutError: page.selectOption: Timeout 30000ms exceeded. Call log: - waiting for locator('#dokan_pages\\[reg_tc_page\\]') - locator resolved to <select class="regular medium" id="dokan_pages[reg_tc_pa…>…</select> - selecting specified option(s) - did not find some options - waiting... at ../../pages/basePage.ts:739 737 | // select by label 738 | async selectByLabel(selector: string, value: string): Promise<string[]> { > 739 | return await this.page.selectOption(selector, { label: value }); | ^ 740 | } 741 | 742 | // select by number at SettingsPage.selectByLabel (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:739:32) at SettingsPage.setPageSettings (/home/runner/work/dokan/dokan/tests/pw/pages/settingsPage.ts:215:20) at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/settings.spec.ts:52:9
[e2e_tests] › settings.spec.ts:55:9 › Settings test › admin can set dokan appearance settings @lite @a: tests/pw/pages/basePage.ts#L892
3) [e2e_tests] › settings.spec.ts:55:9 › Settings test › admin can set dokan appearance settings @lite @A TimeoutError: locator.click: Timeout 30000ms exceeded. Call log: - waiting for locator('//div[@Class="map_api_source dokan-settings-field-type-radio"] //label[@for="dokan_appearance[map_api_source][google_maps]"]') at ../../pages/basePage.ts:892 890 | async clickLocator(selector: string): Promise<void> { 891 | const locator = this.page.locator(selector); > 892 | await locator.click(); | ^ 893 | } 894 | 895 | // get locator count at SettingsPage.clickLocator (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:892:23) at SettingsPage.click (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:172:20) at SettingsPage.setDokanAppearanceSettings (/home/runner/work/dokan/dokan/tests/pw/pages/settingsPage.ts:229:20) at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/settings.spec.ts:56:9
[e2e_tests] › settings.spec.ts:55:9 › Settings test › admin can set dokan appearance settings @lite @a: tests/pw/pages/basePage.ts#L892
3) [e2e_tests] › settings.spec.ts:55:9 › Settings test › admin can set dokan appearance settings @lite @A Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TimeoutError: locator.click: Timeout 30000ms exceeded. Call log: - waiting for locator('//div[@Class="map_api_source dokan-settings-field-type-radio"] //label[@for="dokan_appearance[map_api_source][google_maps]"]') at ../../pages/basePage.ts:892 890 | async clickLocator(selector: string): Promise<void> { 891 | const locator = this.page.locator(selector); > 892 | await locator.click(); | ^ 893 | } 894 | 895 | // get locator count at SettingsPage.clickLocator (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:892:23) at SettingsPage.click (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:172:20) at SettingsPage.setDokanAppearanceSettings (/home/runner/work/dokan/dokan/tests/pw/pages/settingsPage.ts:229:20) at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/settings.spec.ts:56:9
[e2e_tests] › settings.spec.ts:59:9 › Settings test › admin can set dokan privacy policy settings @lite @a: tests/pw/utils/dbUtils.ts#L61
4) [e2e_tests] › settings.spec.ts:59:9 › Settings test › admin can set dokan privacy policy settings @lite @A TypeError: Cannot read properties of undefined (reading 'option_value') at ../../utils/dbUtils.ts:61 59 | // console.log(res[0].option_value); 60 | // console.log(unserialize(res[0].option_value)); > 61 | return unserialize(res[0].option_value); | ^ 62 | }, 63 | 64 | // set dokan settings at Object.getDokanSettings (/home/runner/work/dokan/dokan/tests/pw/utils/dbUtils.ts:61:35) at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/settings.spec.ts:60:39
[e2e_tests] › settings.spec.ts:59:9 › Settings test › admin can set dokan privacy policy settings @lite @a: tests/pw/utils/dbUtils.ts#L61
4) [e2e_tests] › settings.spec.ts:59:9 › Settings test › admin can set dokan privacy policy settings @lite @A Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TypeError: Cannot read properties of undefined (reading 'option_value') at ../../utils/dbUtils.ts:61 59 | // console.log(res[0].option_value); 60 | // console.log(unserialize(res[0].option_value)); > 61 | return unserialize(res[0].option_value); | ^ 62 | }, 63 | 64 | // set dokan settings at Object.getDokanSettings (/home/runner/work/dokan/dokan/tests/pw/utils/dbUtils.ts:61:35) at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/settings.spec.ts:60:39
[e2e_tests] › customer.spec.ts:43:9 › Customer functionality test › customer can add billing details @lite @c: tests/pw/pages/basePage.ts#L1350
5) [e2e_tests] › customer.spec.ts:43:9 › Customer functionality test › customer can add billing details @lite @c Error: Timed out 15000ms waiting for expect(locator).toContainText(expected) Locator: locator('.woocommerce-message') Expected string: "Address changed successfully." Received string: "" Call log: - expect.toContainText with timeout 15000ms - waiting for locator('.woocommerce-message') at ../../pages/basePage.ts:1350 1348 | // assert element to contain text 1349 | async toContainText(selector: string, text: string | RegExp) { > 1350 | await expect(this.page.locator(selector)).toContainText(text); | ^ 1351 | } 1352 | 1353 | // assert element to have count at CustomerPage.toContainText (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:1350:51) at CustomerPage.addBillingAddress (/home/runner/work/dokan/dokan/tests/pw/pages/customerPage.ts:194:20) at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/customer.spec.ts:44: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 16.2s
Slow Test: tests/pw/[api_tests] › stores.spec.ts#L1
tests/pw/[api_tests] › stores.spec.ts took 8.9s
Slow Test: tests/pw/[e2e_tests] › settings.spec.ts#L1
tests/pw/[e2e_tests] › settings.spec.ts took 3.7m
Slow Test: tests/pw/[e2e_tests] › products.spec.ts#L1
tests/pw/[e2e_tests] › products.spec.ts took 1.8m
🎭 Playwright Run Summary
23 skipped 137 passed (47.3s)
🎭 Playwright Run Summary
4 failed [e2e_tests] › settings.spec.ts:39:9 › Settings test › admin can set dokan selling settings @lite @A [e2e_tests] › settings.spec.ts:51:9 › Settings test › admin can set dokan page settings @lite @A [e2e_tests] › settings.spec.ts:55:9 › Settings test › admin can set dokan appearance settings @lite @A [e2e_tests] › settings.spec.ts:59:9 › Settings test › admin can set dokan privacy policy settings @lite @A 1 flaky [e2e_tests] › customer.spec.ts:43:9 › Customer functionality test › customer can add billing details @lite @c 45 skipped 155 passed (5.8m)

Artifacts

Produced during runtime
Name Size
test-artifact Expired
31.7 MB