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 Nov 29, 2023
1 parent 45d6554 commit 55f11bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions e2e/vertical-full-page-map.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ test.describe('full page map test suite', () => {
await page.getByPlaceholder('Search for locations').fill('virginia');
await page.getByPlaceholder('Search for locations').press('Enter');
await page.getByLabel('Map controls').getByText('Search When Map Moves').click();
await page.locator('div').filter({ hasText: /^Search This Area$/ }).nth(1).click();
await page.mouse.move(1200, 450, {steps: 5});
const response = await page.waitForResponse(resp =>
resp.url().includes('https:\/\/prod-cdn\.us\.yextapis\.com\/v2\/accounts\/me\/search\/vertical\/query'));
await expect(response.status()).toBe(200);
Expand Down

0 comments on commit 55f11bd

Please sign in to comment.