mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 13:37:30 +00:00
- Move team-related service methods to `ee/server/service`. - Instantiate different service on startup based on license key. - Refactor service errors into separate package. - Add support for running E2E tests in both Core and Basic tiers.
23 lines
522 B
Markdown
23 lines
522 B
Markdown
# Basic tier tests
|
|
|
|
These tests should only run when the server is in `basic` tier.
|
|
|
|
To enable the tests:
|
|
|
|
```sh
|
|
export CYPRESS_FLEET_TIER=basic
|
|
```
|
|
|
|
Before running the appropriate `yarn cypress (open|run)` command.
|
|
|
|
## Filtering
|
|
|
|
Any test suite in this directory should use the following pattern for filtering:
|
|
|
|
**FIXME**: There must be a better way to do this for all tests in the directory rather than having to add the check in each file?
|
|
|
|
```js
|
|
if (Cypress.env("FLEET_TIER") === "basic") {
|
|
// test suite here
|
|
}
|
|
```
|