Skip to content

Include Max Seats and Seats Owed Coverage in seats_tab_spec

What does this MR do and why?

Relates to https://gitlab.com/gitlab-org/gitlab/-/issues/469517

With the GitLab to CustomersDot purchase flow migration underway, we recently needed to remove the E2E test ee/browser_ui/11_fulfillment/utilization/usage_quotas_seats_spec.rb from the GitLab project due to the test needing to interact with the GitLab purchase flow in order to purchase a subscription.

This MR updates the feature spec ee/spec/features/groups/usage_quotas/seats_tab_spec.rb to add a new test case that includes coverage that was previously included in this E2E test.

The test case combines the following:

  • Verifying Seats in use, Max seats used and Seats owed display the correct calculations
  • Verifying guest users on an Ultimate plan are not counted toward seat calculations or included within the members table
  • Verifying removing a user updates Seats in use, but does not update Max seats or Seats owed

I opted for combining these into one single test case rather than separate test cases in order to reuse test setup and maximize efficiency.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

How to set up and validate locally

  1. Check out this branch to your local GDK
  2. Run bundle exec rspec ee/spec/features/groups/usage_quotas/seats_tab_spec.rb

Merge request reports