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 21, 2023
1 parent fd2bee8 commit ec8e130
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
run: npm run setup-test-site
- name: Build test site
run: npm run build-test-site
- name: Serve test site
run: npm run serve-test-site
- name: Run Playwright tests
run: npx playwright test
- uses: actions/upload-artifact@v3
Expand Down
5 changes: 5 additions & 0 deletions e2e/vertical-full-page-map.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,13 @@ test.describe('full page map with filters test suite', () => {
test('clicking on a cluster causes a new search to be run', async ({ page }) => {
const numResults = await page.locator('#js-answersVerticalResults').count();
await page.getByRole('button', { name: 'Cluster of 4 results' }).click();
<<<<<<< HEAD
const numResultsAfterSelectingCluster = await page.locator('#js-answersVerticalResults').count();
await expect(numResults).not.toBe(numResultsAfterSelectingCluster);
=======
const responsePromise = await page.waitForResponse(/https:\/\/prod-cdn\.us\.yextapis\.com\/v2\/accounts\/me\/search\/vertical/i);
const response = await responsePromise;
>>>>>>> 97ec8bc (Implement playwright acceptance tests for vertical full page map)
});

});
Loading

0 comments on commit ec8e130

Please sign in to comment.