Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add testing for accessibility, Playwright, and mocked API #20

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

scubaninja
Copy link
Owner

@scubaninja scubaninja commented Nov 5, 2024

Fixes #19

Add tests for accessibility, interface assertions, and mocked API.

  • Accessibility Tests: Add server/Tests/AccessibilityTests.cs to check for accessibility issues using Axe. Tests include checking the main page, buttons, and forms for accessibility violations.
  • Playwright Tests: Add server/Tests/PlaywrightTests.cs to perform interface assertions using Playwright. Tests include checking the home page title, existence of buttons, forms, and links.
  • Mocked API Tests: Add server/Tests/MockApiTests.cs to mock API responses and test functionality. Tests include GET and POST endpoint responses with expected content.

For more details, open the Copilot Workspace session.

Fixes #19

Add tests for accessibility, interface assertions, and mocked API.

* **Accessibility Tests**: Add `server/Tests/AccessibilityTests.cs` to check for accessibility issues using Axe. Tests include checking the main page, buttons, and forms for accessibility violations.
* **Playwright Tests**: Add `server/Tests/PlaywrightTests.cs` to perform interface assertions using Playwright. Tests include checking the home page title, existence of buttons, forms, and links.
* **Mocked API Tests**: Add `server/Tests/MockApiTests.cs` to mock API responses and test functionality. Tests include GET and POST endpoint responses with expected content.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/scubaninja/dotNET-mail-demo/issues/19?shareId=XXXX-XXXX-XXXX-XXXX).
@scubaninja scubaninja requested a review from Copilot November 5, 2024 17:37

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 3 out of 3 changed files in this pull request and generated no suggestions.

Tip: Copilot only keeps its highest confidence comments to reduce noise and keep you focused. Learn more

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.

.NET Conf - Add Testing
1 participant