Skip to content

Add playwright tests for example site pages#7

Merged
d-oit merged 1 commit intomainfrom
add-playwright-tests
Dec 26, 2024
Merged

Add playwright tests for example site pages#7
d-oit merged 1 commit intomainfrom
add-playwright-tests

Conversation

@d-oit
Copy link
Owner

@d-oit d-oit commented Dec 26, 2024

Fixes #5

Add Playwright tests for example site pages.

  • package.json: Add playwright as a dev dependency and add test:playwright script to run Playwright tests.
  • playwright.config.ts: Configure Playwright to test both mobile and desktop views, set viewport sizes, and configure test directory and test match pattern.
  • tests/exampleSite.spec.ts: Write tests for each specified page, including tests for mobile and desktop views. Test interactions such as navigating through images, fullscreen button, and thumbnails. Verify captions and descriptions are displayed correctly.
  • .github/workflows/test.yml: Add a step to run Playwright tests.
  • .husky/pre-commit: Add a command to run Playwright tests before committing.

For more details, open the Copilot Workspace session.

Fixes #5

Add Playwright tests for example site pages.

* **package.json**: Add `playwright` as a dev dependency and add `test:playwright` script to run Playwright tests.
* **playwright.config.ts**: Configure Playwright to test both mobile and desktop views, set viewport sizes, and configure test directory and test match pattern.
* **tests/exampleSite.spec.ts**: Write tests for each specified page, including tests for mobile and desktop views. Test interactions such as navigating through images, fullscreen button, and thumbnails. Verify captions and descriptions are displayed correctly.
* **.github/workflows/test.yml**: Add a step to run Playwright tests.
* **.husky/pre-commit**: Add a command to run Playwright tests before committing.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/d-oit/hinode-mod-slideshow-gallery/issues/5?shareId=XXXX-XXXX-XXXX-XXXX).
@d-oit d-oit merged commit 7bbb0b1 into main Dec 26, 2024
1 of 7 checks passed
@d-oit d-oit deleted the add-playwright-tests branch December 26, 2024 18:15
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.

Create a playwright test for the example site pages

1 participant