From b49a074a8346220e86a3e12f5e7562f3b03321f1 Mon Sep 17 00:00:00 2001 From: shashwata Date: Fri, 13 Dec 2024 13:20:39 +0600 Subject: [PATCH] Fix lint issues --- tests/pw/README.MD | 8 ++++---- tests/pw/pages/euCompliancePage.ts | 2 +- tests/pw/pages/selectors.ts | 2 +- tests/pw/pages/sellerVacationPage.ts | 2 +- tests/pw/utils/payloads.ts | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/pw/README.MD b/tests/pw/README.MD index b403cc7558..96793ce30c 100644 --- a/tests/pw/README.MD +++ b/tests/pw/README.MD @@ -120,7 +120,7 @@ Create .env file according to .env.example file
``` -# Plugin Configuration +# Plugin Configuration ADMIN=John_Doe [Admin username] ADMIN_PASSWORD=AdminPass123 [Password for the admin account] VENDOR=David_Johnson [Vendor username] @@ -155,7 +155,7 @@ TEST_MERCHANT_ID_PAYPAL_MARKETPLACE=test_merchant_id TEST_CLIENT_ID_PAYPAL_MARKETPLACE=test_client_id_paypal_marketplace [PayPal Marketplace Client ID] TEST_CLIENT_SECRET_PAYPAL_MARKETPLACE=test_client_secret_paypal_marketplace [PayPal Marketplace Client Secret] -# Playwright Configuration +# Playwright Configuration BASE_URL=https://example.com [Base URL of the test site] CI=true [CI/CD environment indicator] SLOWMO=10 [Slow down test execution by provided seconds] [optional] @@ -164,13 +164,13 @@ LOCAL=true NON_HEADLESS=true [browser mode indicator] [optional] SITE_PATH=/users/rk/sites/dokan [Path of the local test site][only for local testing] -# Database Configuration +# Database Configuration DB_HOST_NAME=localhost [Database server hostname or IP address] DB_USER_NAME=dbuser [Database username] DB_USER_PASSWORD=dbpassword [Database user password] DATABASE=mywpdb [Database name] DB_PORT=3306 [Database connection port] -DB_PREFIX=wp +DB_PREFIX=wp ```
diff --git a/tests/pw/pages/euCompliancePage.ts b/tests/pw/pages/euCompliancePage.ts index 89e677099c..efe07e5a17 100644 --- a/tests/pw/pages/euCompliancePage.ts +++ b/tests/pw/pages/euCompliancePage.ts @@ -44,7 +44,7 @@ export class EuCompliancePage extends AdminPage { await this.goto(data.subUrls.backend.dokan.settings); await this.notToBeVisible(selector.admin.dokan.settings.menus.euComplianceFields); - // vendor dashboard settings + // vendor dashboard settings await this.goto(data.subUrls.frontend.vDashboard.settingsStore); await this.multipleElementNotVisible(selector.vendor.vStoreSettings.euFields); diff --git a/tests/pw/pages/selectors.ts b/tests/pw/pages/selectors.ts index ccc33ec0bf..88e0398297 100644 --- a/tests/pw/pages/selectors.ts +++ b/tests/pw/pages/selectors.ts @@ -2237,7 +2237,7 @@ export const selector = { menuNameInput: '//div[@class="first-part"]//input', menuNameConfirm: '//div[@class="menu-item"]//div[@class="action-icon-wrapper check-icon-wrapper"]', menuNameCancel: '//div[@class="menu-item"]//div[@class="action-icon-wrapper cancel-icon-wrapper"]', - menuSwitcher: (menuName: string) => `//span[text()='${menuName}']/../..//label[@class="switch tips"]`, + menuSwitcher: (menuName: string) => `(//div[@class="tabs-details"]//div[not(@style="display: none;")])[1]//span[text()='${menuName}']/../..//label[@class="switch tips"]`, noPermissionNotice: '//strong[text()="You have no permission to view this page"]', }, diff --git a/tests/pw/pages/sellerVacationPage.ts b/tests/pw/pages/sellerVacationPage.ts index 95aa8d45ec..5d4ba181ae 100644 --- a/tests/pw/pages/sellerVacationPage.ts +++ b/tests/pw/pages/sellerVacationPage.ts @@ -15,7 +15,7 @@ export class SellerVacationPage extends VendorPage { // enable seller vacation module async enableSellerVacationModule() { - // vendor dashboard settings + // vendor dashboard settings await this.goto(data.subUrls.frontend.vDashboard.settingsStore); await this.toBeVisible(settingsVendor.vacation.vacationDiv); } diff --git a/tests/pw/utils/payloads.ts b/tests/pw/utils/payloads.ts index 316e85e81d..9d98d71de5 100644 --- a/tests/pw/utils/payloads.ts +++ b/tests/pw/utils/payloads.ts @@ -2251,7 +2251,7 @@ export const payloads = { // title : 'dokan', // description : 'Just another WordPress site', // url : 'http://dokan.test', - email : 'shashwata@wedevs.com', + email: 'shashwata@wedevs.com', timezone: 'Asia/Dhaka', date_format: 'F j, Y', time_format: 'g:i a',