Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
shashwatahalder01 committed Dec 13, 2024
1 parent d6983b3 commit b49a074
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions tests/pw/README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ Create .env file according to .env.example file
<br/>

```
# Plugin Configuration
# Plugin Configuration
ADMIN=John_Doe [Admin username]
ADMIN_PASSWORD=AdminPass123 [Password for the admin account]
VENDOR=David_Johnson [Vendor username]
Expand Down Expand Up @@ -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]
Expand All @@ -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
```

<br/>
Expand Down
2 changes: 1 addition & 1 deletion tests/pw/pages/euCompliancePage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion tests/pw/pages/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"]',
},

Expand Down
2 changes: 1 addition & 1 deletion tests/pw/pages/sellerVacationPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/pw/utils/payloads.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2251,7 +2251,7 @@ export const payloads = {
// title : 'dokan',
// description : 'Just another WordPress site',
// url : 'http://dokan.test',
email : '[email protected]',
email: '[email protected]',
timezone: 'Asia/Dhaka',
date_format: 'F j, Y',
time_format: 'g:i a',
Expand Down

0 comments on commit b49a074

Please sign in to comment.