From 103ae13b1474ed672ee9c492561923df3d47e9ca Mon Sep 17 00:00:00 2001 From: Ankit Gade Date: Tue, 27 Aug 2024 22:35:33 +0530 Subject: [PATCH] CR feedback - round 1. --- .../setup-stepper/setup-paid-ads/paid-ads-setup-sections.js | 2 +- tests/e2e/utils/pages/setup-ads/setup-budget.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/js/src/setup-mc/setup-stepper/setup-paid-ads/paid-ads-setup-sections.js b/js/src/setup-mc/setup-stepper/setup-paid-ads/paid-ads-setup-sections.js index 98e6154f2c..cffcf604cc 100644 --- a/js/src/setup-mc/setup-stepper/setup-paid-ads/paid-ads-setup-sections.js +++ b/js/src/setup-mc/setup-stepper/setup-paid-ads/paid-ads-setup-sections.js @@ -37,7 +37,7 @@ const defaultPaidAds = { recommendations: [], isValid: false, isReady: false, - recommendationData: {}, + recommendationData: null, }; /* diff --git a/tests/e2e/utils/pages/setup-ads/setup-budget.js b/tests/e2e/utils/pages/setup-ads/setup-budget.js index ac83cf73ea..56e914412a 100644 --- a/tests/e2e/utils/pages/setup-ads/setup-budget.js +++ b/tests/e2e/utils/pages/setup-ads/setup-budget.js @@ -18,7 +18,9 @@ export default class SetupBudget extends MockRequests { * @return {import('@playwright/test').Locator} The budget recommendation text row. */ getBudgetRecommendationTip() { - return this.page.locator( '.components-tip p' ); + return this.page.locator( + '.gla-budget-recommendation > .components-tip' + ); } /**