From c80ee2d9ac054455566e91652966fb34f9b215b9 Mon Sep 17 00:00:00 2001 From: cea2aj <42848445+cea2aj@users.noreply.github.com> Date: Fri, 4 Jun 2021 18:23:58 -0400 Subject: [PATCH] Snapshot professional cards (#815) Snapshot the professional cards J=SLAP-1361 TEST=visual Check the updated percy snapshots --- test-site/config/index.json | 3 +++ test-site/scripts/create-verticals.js | 12 +++++++++++- tests/percy/photographer.js | 5 ++++- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/test-site/config/index.json b/test-site/config/index.json index d6c6b135e..b88c26b3d 100644 --- a/test-site/config/index.json +++ b/test-site/config/index.json @@ -47,6 +47,9 @@ }, "links": { "cardType": "link-standard" + }, + "healthcare_professionals": { + "cardType": "professional-location" } } } \ No newline at end of file diff --git a/test-site/scripts/create-verticals.js b/test-site/scripts/create-verticals.js index 2caf8dfa6..c2e8eee11 100644 --- a/test-site/scripts/create-verticals.js +++ b/test-site/scripts/create-verticals.js @@ -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'); diff --git a/tests/percy/photographer.js b/tests/percy/photographer.js index 363c3ecf9..cf66762c2 100644 --- a/tests/percy/photographer.js +++ b/tests/percy/photographer.js @@ -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 () {