Skip to content

Commit

Permalink
Implement playwright acceptance tests for vertical full page map
Browse files Browse the repository at this point in the history
  • Loading branch information
likimmy committed Dec 1, 2023
1 parent b639059 commit 95365c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions e2e/vertical-full-page-map.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ test.describe('full page map test suite', () => {
resp.url().includes('https:\/\/prod-cdn\.us\.yextapis\.com\/v2\/accounts\/me\/search\/vertical\/query')
&& resp.url().includes('queryTrigger'));
const prevResponseJson = await prevResponse.json();
const prevResultsCount = prevResponseJson.resultsCount;
const prevResultsCount = prevResponseJson.response.resultsCount;

await page.getByPlaceholder('Search for locations').fill('virginia');
await page.getByPlaceholder('Search for locations').press('Enter');
const response = await page.waitForResponse(resp =>
resp.url().includes('https:\/\/prod-cdn\.us\.yextapis\.com\/v2\/accounts\/me\/search\/vertical\/query')
&& resp.url().includes('input=virginia'));
const responseJson = await response.json();
const resultsCount = responseJson.resultsCount;
const resultsCount = responseJson.response.resultsCount;

expect(prevResultsCount).not.toBe(resultsCount);
});
Expand Down

0 comments on commit 95365c5

Please sign in to comment.