Fix Usage Quotas spec opening EE tabs under CE environment
What does this MR do and why?
Addresses #540893 (closed)
Currently when Usage Quotas page is opened — a default tab is opened. In groups Usage Quotas in EE — it's Seats tab. Seats tab is only available under EE environment, and requires some stubs to work.
To ensure the Usage Quotas specs run properly in EE environment — we create a helper that would stub environment in EE, and will do nothing in CE (FOSS).
References
Screenshots or screen recordings
N/A
How to set up and validate locally
- simulate EE environment (
export FOSS_ONLY=1
) - run
bundle exec rspec spec/features/groups/usage_quotas/usage_quotas_spec.rb and spec/features/groups/usage_quotas/storage_tab_spec.rb
- simulate FOSS environment (
export FOSS_ONLY=0
) - run the same
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Kos Palchyk