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 ae618ed commit f5e4d76
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions e2e/vertical-full-page-map.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@ test.describe('full page map test suite', () => {
test('search when map moves works', async ({ page }) => {
await page.getByPlaceholder('Search for locations').fill('virginia');
await page.getByPlaceholder('Search for locations').press('Enter');
await page.mouse.move(600, 300);
await page.mouse.down();
await page.mouse.move(1200, 450, {steps: 5});
await page.mouse.up();
await page.mouse.wheel(600, 300);
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 f5e4d76

Please sign in to comment.