Skip to content

Added some more test fixtures#1400

Merged
aharwood2 merged 8 commits into
devfrom
992-add-some-basic-tests-with-profiling
Jul 2, 2026
Merged

Added some more test fixtures#1400
aharwood2 merged 8 commits into
devfrom
992-add-some-basic-tests-with-profiling

Conversation

@aharwood2

Copy link
Copy Markdown
Member

This pull request introduces comprehensive improvements to the test suite for the application, focusing on increasing reliability, coverage, and robustness of both API and UI (Playwright) tests. Key enhancements include the addition of new endpoint tests for various modules, improved test setup and teardown logic, robust navigation and authentication handling for UI tests, and a mechanism to ensure the server is ready before tests run.

Test Coverage Improvements:

  • Added new endpoint tests for Leave Bookings, Timesheets, Skills, and Workload Model Analysis to verify that API endpoints are accessible and return expected status codes, increasing coverage and reliability of the API test suite. [1] [2] [3] [4]

Test Infrastructure and Reliability:

  • Updated the test setup in Setup.cs to wait for the application server to be ready before running tests, preventing false negatives due to server startup delays.
  • Added a [OneTimeSetUp] method to BaseApiTest to ensure API test setup is performed once per test fixture.
  • Introduced helper methods in BaseApiTest for generating date ranges and the current year, standardizing test parameter generation.

Playwright UI Test Suite Enhancements:

  • Refactored PageLoadTests to:
    • Disable test parallelization for stability,
    • Add robust navigation with retry logic,
    • Implement automatic login handling when required,
    • Add teardown logic to clear cookies and storage between tests,
    • Parameterize page load checks for maintainability,
    • Expand coverage to all main application pages.

Dependencies and Project Configuration:

  • Added explicit Using directive for Microsoft.Playwright in the test project file to ensure Playwright APIs are available.

These changes collectively make the test suite more robust, maintainable, and comprehensive, reducing flakiness and improving confidence in application quality.

@aharwood2 aharwood2 self-assigned this Jul 2, 2026
@aharwood2 aharwood2 added this to the v1.14.1 milestone Jul 2, 2026
@aharwood2 aharwood2 merged commit 399a441 into dev Jul 2, 2026
11 checks passed
@aharwood2 aharwood2 deleted the 992-add-some-basic-tests-with-profiling branch July 2, 2026 15:53
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