Skip to content

Commit f4a02ca

Browse files
committed
feat: adding empty suggestions for forms opportunity - test cases
1 parent a6e9201 commit f4a02ca

File tree

5 files changed

+5
-3
lines changed

5 files changed

+5
-3
lines changed

src/forms-opportunities/guidance-handlers/guidance-high-form-views-low-conversions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ async function addSuggestions(
3939
opportunityId: opportunity.opportunityId,
4040
type: 'CONTENT_UPDATE',
4141
rank: 1,
42-
status: 'NEW',
42+
status: 'PENDING_VALIDATION',
4343
data: {
4444
variations: [
4545
{

src/forms-opportunities/guidance-handlers/guidance-high-page-views-low-form-nav.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ async function addSuggestions(
3939
opportunityId: opportunity.opportunityId,
4040
type: 'CONTENT_UPDATE',
4141
rank: 1,
42-
status: 'NEW',
42+
status: 'PENDING_VALIDATION',
4343
data: {
4444
variations: [
4545
{

src/forms-opportunities/guidance-handlers/guidance-high-page-views-low-form-views.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ async function addSuggestions(
3939
opportunityId: opportunity.opportunityId,
4040
type: 'CONTENT_UPDATE',
4141
rank: 1,
42-
status: 'NEW',
42+
status: 'PENDING_VALIDATION',
4343
data: {
4444
variations: [
4545
{

test/audits/forms/guidance-handlers/guidance-high-page-views-low-form-nav.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ describe('Guidance High Page Views Low Form Navigation Handler', () => {
5252
url: 'https://example.com',
5353
form_source: '.form',
5454
guidance: 'Some guidance',
55+
suggestions: ['Suggestion 1', 'Suggestion 2'],
5556
},
5657
};
5758
});

test/audits/forms/guidance-handlers/guidance-high-page-views-low-form-views.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ describe('Guidance High Page Views Low Form Views Handler', () => {
5252
form_source: '.form',
5353
url: 'https://example.com',
5454
guidance: 'Some guidance',
55+
suggestions: ['Suggestion 1', 'Suggestion 2'],
5556
},
5657
};
5758
});

0 commit comments

Comments
 (0)