Added some more test fixtures#1400
Merged
Merged
Conversation
…ts-with-profiling
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
Test Infrastructure and Reliability:
Setup.csto wait for the application server to be ready before running tests, preventing false negatives due to server startup delays.[OneTimeSetUp]method toBaseApiTestto ensure API test setup is performed once per test fixture.BaseApiTestfor generating date ranges and the current year, standardizing test parameter generation.Playwright UI Test Suite Enhancements:
PageLoadTeststo:Dependencies and Project Configuration:
Usingdirective forMicrosoft.Playwrightin 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.