At this point in time, the framework mixes a few tests with Fixtures and some others with beforeEach/All and afterEach/All.
Some contraints in the current architecture do not facilitate the use of Fixture, but it is prefered as it is considered a good practice.
You can see an examples of fixture usage at github discovery test.
Some tests use a global page variable let page: Page;. This is used to avoid reauthentications on the test due to the current rate limits on github.
Examples:
- https://github.com/redhat-developer/rhdh/blob/release-1.5/e2e-tests/playwright/e2e/google-signin-happy-path.spec.ts
- https://github.com/redhat-developer/rhdh/blob/release-1.5/e2e-tests/playwright/e2e/guest-signin-happy-path.spec.ts
Almost all test are related to testing the frontend functionalities of the app and plugins like all the tests related to catalog, learning page or the ones under /plugins.
Some other notable ones are:
- Integration with Github:
github-discovery.spec, github-integration-org-fetch.spec, github-happy-path.spec.ts - Checks on OC cluster elements like
verify-redis-cache.spec
Besides, there are many other tests realted to different authentication providers, like google-signin-happy-path.spec or guest-signin-happy-path.spec, and all under /authProviders