Skip to content

Commit

Permalink
Remove unused functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
asvinb committed Aug 22, 2024
1 parent bac491e commit 50b13df
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 50 deletions.
11 changes: 0 additions & 11 deletions tests/e2e/utils/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,6 @@ export function getCountryInputSearchBox( page ) {
);
}

/**
* Get tree select menu.
*
* @param {import('@playwright/test').Page} page The current page.
*
* @return {import('@playwright/test').Locator} Get tree select menu.
*/
export function getTreeSelectMenu( page ) {
return page.locator( '.woocommerce-tree-select-control__main' );
}

/**
* Get tree item by country name.
*
Expand Down
39 changes: 0 additions & 39 deletions tests/e2e/utils/pages/setup-ads/setup-budget.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,6 @@ export default class SetupBudget extends MockRequests {
this.page = page;
}

/**
* Get budget recommendation text row.
*
* @return {import('@playwright/test').Locator} The budget recommendation text row.
*/
getBudgetRecommendationTextRow() {
return this.page.locator( '.components-tip p > em > strong' );
}

/**
* Get budget input.
*
Expand Down Expand Up @@ -84,36 +75,6 @@ export default class SetupBudget extends MockRequests {
);
}

/**
* Extract budget recommendation value.
*
* @param {string} text
*
* @return {string} The budget recommendation value.
*/
extractBudgetRecommendationValue( text ) {
const match = text.match( /set a daily budget of (\d+)/ );
if ( match ) {
return match[ 1 ];
}
return '';
}

/**
* Register the responses when removing an ads audience.
*
* @return {Promise<import('@playwright/test').Response>} The response.
*/
registerBudgetRecommendationResponse() {
return this.page.waitForResponse(
( response ) =>
response
.url()
.includes( '/gla/ads/campaigns/budget-recommendation' ) &&
response.status() === 200
);
}

/**
* Fill the budget.
*
Expand Down

0 comments on commit 50b13df

Please sign in to comment.