Skip to content

Commit

Permalink
Menu item snapshots (#817)
Browse files Browse the repository at this point in the history
Snapshot the menu item card

J=SLAP-1361
TEST=visual

Check the updated percy snapshots
  • Loading branch information
cea2aj committed Jun 7, 2021
1 parent 59d4593 commit b929f5e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test-site/scripts/create-verticals.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ const verticalConfiguration = {
verticalKey: 'jobs',
template: 'vertical-standard',
cardName: 'job-standard'
},
menu_items: {
verticalKey: 'menu_items',
template: 'vertical-grid',
cardName: 'menuitem-standard'
}
};

Expand Down
3 changes: 3 additions & 0 deletions tests/percy/photographer.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ class Photographer {

await this._pageNavigator.gotoVerticalPage('jobs', { query: 'job' });
await this._camera.snapshot('vertical-search--job-standard');

await this._pageNavigator.gotoVerticalPage('menu_items', { query: 'roll' });
await this._camera.snapshot('vertical-search--menuitem-standard');
}

async _captureVerticalGridSearch () {
Expand Down

0 comments on commit b929f5e

Please sign in to comment.