Skip to content

Latest commit

 

History

History
26 lines (15 loc) · 1.47 KB

File metadata and controls

26 lines (15 loc) · 1.47 KB

Examples for e2e tests

Basics

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:

Types of tests

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