Skip to content

Comments

feat: Adds Playwright testing.#24

Merged
willum070 merged 3 commits intomainfrom
playwright-tests-5
Jan 16, 2025
Merged

feat: Adds Playwright testing.#24
willum070 merged 3 commits intomainfrom
playwright-tests-5

Conversation

@willum070
Copy link
Collaborator

This change adds Playwright testing to ensure that all samples build without error, and load properly. It loops through the samples, builds and runs locally using Vite. Tests check for the following conditions:

  • No build errors.
  • No console errors.
  • google is loaded on the page.
  • The map locator is visible.

Notes:

  • Chromium is currently the only browser tests run on. Currently that should be fine since our primary goal is detecting broken samples rather than determining intra-browser issues.
  • The visibility check on the map locator will need to be updated to accommodate samples that don't use a page locator for the map.

@willum070 willum070 merged commit e1bc3d9 into main Jan 16, 2025
5 checks passed
@willum070 willum070 deleted the playwright-tests-5 branch January 16, 2025 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant