Licence Compliance frontend in Master (+ Staging) is not displaying correctly
Summary
The frontend of license compliance is not displaying correctly. The Add a licence dropdown is now a text box.
This is failing in the master pipeline - gitlab-org/quality/testcases#575 (comment 449960364)
Also observed locally on GDK master
Steps to reproduce
- Populate a project with a licence report / run a licence scan
- Select Project level Licence Compliance
- Policies tab - add a licence
Example Project
Or create a project on Master and populate report from https://gitlab.com/gitlab-org/gitlab/-/blob/master/qa/qa/ee/fixtures/secure_premade_reports/gl-license-scanning-report.json
What is the current bug behavior?
Licence Compliance is displayed incorrectly
What is the expected correct behavior?
Licence Compliance is displayed correctly
Relevant logs and/or screenshots
Master Pipeline | Local |
---|---|
![]() |
![]() |
Failure/Error: license_compliance.approve_license approved_license_name
Capybara::ElementNotFound:
Unable to find visible css "span.select2-arrow"
/usr/local/bundle/gems/capybara-3.29.0/lib/capybara/node/finders.rb:296:in `block in synced_resolve'
/usr/local/bundle/gems/capybara-3.29.0/lib/capybara/node/base.rb:83:in `synchronize'
/usr/local/bundle/gems/capybara-3.29.0/lib/capybara/node/finders.rb:287:in `synced_resolve'
/usr/local/bundle/gems/capybara-3.29.0/lib/capybara/node/finders.rb:52:in `find'
/usr/local/bundle/gems/capybara-3.29.0/lib/capybara/session.rb:749:in `block (2 levels) in <class:Session>'
/usr/local/bundle/gems/capybara-3.29.0/lib/capybara/dsl.rb:51:in `block (2 levels) in <module:DSL>'
./qa/page/component/select2.rb:52:in `expand_select_list'
./qa/ee/page/project/secure/license_compliance.rb:30:in `approve_license'
./qa/specs/features/ee/browser_ui/secure/merge_request_license_widget_spec.rb:112:in `block (4 levels) in <module:QA>'
./qa/scenario/actable.rb:16:in `perform'
./qa/specs/features/ee/browser_ui/secure/merge_request_license_widget_spec.rb:110:in `block (3 levels) in <module:QA>'
Output of checks
Results of GitLab environment info
Occurs on the Master pipeline eg. https://gitlab.com/gitlab-org/gitlab-qa-mirror/-/jobs/857329485
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of: `sudo gitlab-rake gitlab:env:info`) (For installations from source run and paste the output of: `sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true
)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true
)(we will only investigate if the tests are passing)