Skip to content

Commit

Permalink
Direct answer visual tests (#809)
Browse files Browse the repository at this point in the history
Add percy snapshots for field direct answers and for document search direct answers

J=SLAP-1361
TEST=visual

Check the updated percy snapshots
  • Loading branch information
cea2aj authored Jun 4, 2021
1 parent 8693f6e commit 6dbe44c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/percy/photographer.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class Photographer {
await this._captureVerticalGridSearch();
await this._captureVerticalMapSearch();
await this._captureVerticalFullPageMapSearch();
await this._captureDirectAnswers();
}

async _captureUniversalSearch () {
Expand Down Expand Up @@ -88,6 +89,14 @@ class Photographer {
.gotoVerticalPage('locations_full_page_map_with_filters', { query: 'virginia' });
await this._camera.snapshotDesktopOnly('vertical-full-page-map-with-filters--nlp-filters__desktop-view');
}

async _captureDirectAnswers () {
await this._pageNavigator.gotoUniversalPage({ query: 'bryan reed phone number' });
await this._camera.snapshot('field-direct-answer');

await this._pageNavigator.gotoUniversalPage({ query: 'where was joe exotic born?' });
await this._camera.snapshot('documentsearch-direct-answer')
}
}

module.exports = Photographer;

0 comments on commit 6dbe44c

Please sign in to comment.