Skip to content

Commit

Permalink
Snapshot professional cards (#815)
Browse files Browse the repository at this point in the history
Snapshot the professional cards

J=SLAP-1361
TEST=visual

Check the updated percy snapshots
  • Loading branch information
cea2aj committed Jun 4, 2021
1 parent cfa1029 commit c80ee2d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
3 changes: 3 additions & 0 deletions test-site/config/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@
},
"links": {
"cardType": "link-standard"
},
"healthcare_professionals": {
"cardType": "professional-location"
}
}
}
12 changes: 11 additions & 1 deletion test-site/scripts/create-verticals.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,17 @@ const verticalConfiguration = {
verticalKey: 'products',
template: 'vertical-grid',
cardName: 'product-prominentimage-clickable'
}
},
financial_professionals: {
verticalKey: 'financial_professionals',
template: 'vertical-standard',
cardName: 'financial-professional-location'
},
healthcare_professionals: {
verticalKey: 'healthcare_professionals',
template: 'vertical-grid',
cardName: 'professional-standard'
},
};

const pagesDir = path.resolve(__dirname, '../pages');
Expand Down
5 changes: 4 additions & 1 deletion tests/percy/photographer.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,11 @@ class Photographer {
await this._pageNavigator.gotoVerticalPage('events', { query: 'a' });
await this._camera.snapshot('vertical-search--no-results');

await this._pageNavigator.gotoVerticalPage('events',{ query: 'vrginia' });
await this._pageNavigator.gotoVerticalPage('events', { query: 'vrginia' });
await this._camera.snapshot('vertical-search--spellcheck');

await this._pageNavigator.gotoVerticalPage('financial_professionals', { query: 'connor' });
await this._camera.snapshot('vertical-search--financial-professional-location');
}

async _captureVerticalGridSearch () {
Expand Down

0 comments on commit c80ee2d

Please sign in to comment.