Failure in ./spec/ui/trial/start_free_trial_spec.rb | no billable user error in personal billing page
Summary
Failures started happening today with start_free_trial_spec.rb
due to a timeout error.
Stack trace
Failures:
1) user starts a free trial when from billing page behaves like free trial expires in 30 days
Failure/Error: trial.page_title?
Watir::Wait::TimeoutError:
timed out after 30 seconds, waiting for true condition on #<Watir::Heading: located: false; {:text=>/Start your Free Gold Trial/, :tag_name=>"h3"}>
Shared Example Group: "free trial" called from ./spec/ui/trial/start_free_trial_spec.rb:54
# /usr/local/bundle/gems/watir-6.17.0/lib/watir/wait.rb:46:in `until'
# /usr/local/bundle/gems/watir-6.17.0/lib/watir/wait.rb:125:in `wait_until'
# ./page/base.rb:127:in `find_element'
# ./page/base.rb:18:in `block (3 levels) in singleton class'
# ./page/base.rb:22:in `block (3 levels) in singleton class'
# ./spec/ui/trial/start_free_trial_spec.rb:15:in `block (3 levels) in <module:QA>'
# ./page/base.rb:56:in `initialize'
# ./spec/ui/trial/start_free_trial_spec.rb:14:in `new'
# ./spec/ui/trial/start_free_trial_spec.rb:14:in `block (2 levels) in <module:QA>'
Screenshot / HTML page
What is the current bug behavior?
The billable_members API endpoint is being called from personal namespaces sending the namespace_id where a group_id is expected. The group with id = namespace_id can't be found so the user sees the error above.
API call: https://gitlab.com/api/v4/groups/#{namespace_id}/billable_members?per_page=1&page=1
Response: {"message":"404 Group Not Found"}
What is the expected correct behavior?
The billable_members call should only be done for groups (this is currently working without issues).
Edited by Amparo Luna