Failure in qa/specs/features/browser_ui/1_manage/group/bulk_import_group_spec.rb | `expect { imported_subgroup.labels }.to eventually_include` fails

Summary

Expectation to find imported labels fails. Screenshot indicates group was imported, but matching labels in the API response fails. Possible timeout given the details in the linked issue.

Stack trace

2.1) Failure/Error: expect { imported_subgroup.reload! }.to eventually_eq(subgroup).within(duration: 10)
          
            Wait condition not met after 10 seconds:
            expected to eventually equal [{
              "name": "subgroup-for-import-f584e9cc",
              "path": "subgroup-for-import-f584e9cc",
              "description": "",
              "emails_disabled": null,
              "lfs_enabled": true,
              "mentions_disabled": null,
              "project_creation_level": "developer",
              "request_access_enabled": true,
              "require_two_factor_authentication": false,
              "share_with_group_lock": false,
              "subgroup_creation_level": "maintainer"
            }], last attempt was nil
          # ./qa/specs/features/browser_ui/1_manage/group/bulk_import_group_spec.rb:100:in `block (5 levels) in <module:QA>'
     2.2) Failure/Error: expect { imported_subgroup.labels }.to eventually_include(*subgroup.labels).within(duration: 10)
          
            Wait condition not met after 10 seconds:
            expected to eventually include [{
              "name": "source-group-1b6436f8",
              "description": "This is a test label",
              "description_html": "This is a test label",
              "color": "#0033CC",
              "text_color": "#FFFFFF",
              "subscribed": false
            }, {
              "name": "subgroup-7f483255",
              "description": "This is a test label",
              "description_html": "This is a test label",
              "color": "#0033CC",
              "text_color": "#FFFFFF",
              "subscribed": false
            }], last attempt was nil
          # ./qa/specs/features/browser_ui/1_manage/group/bulk_import_group_spec.rb:103:in `block (5 levels) in <module:QA>'

Screenshot / HTML page

manage_bulk_group_import_imports_group_with_subgroups_and_labels__1_

Possible fixes

Edited by andrey