Make release group specs Vue3 compatible
Description
@ntepluhina Identified a list of issues with our specs that needs to be fixed to move on with the Vue3 migration.
The spec files concerning the ~"group::release" are the following:
File | Issue | Status |
---|---|---|
spec/frontend/environments/deploy_board_component_spec.js | Vue.extend | gitlab-org/gitlab!112071 (merged) |
spec/frontend/environments/folder/environments_folder_view_spec.js | overriding method behaviour | gitlab-org/gitlab!112071 (merged) |
spec/frontend/feature_flags/components/feature_flags_spec.js | spying on methods | not started |
We should get rid of these issues.
Technical notes
Vue.extend
is a legacy way of instantiating vue components and it should be possible to replace it with usual component instantiation.
overriding method behaviour
and spying on methods
is trickier as it would most probably require changing the test implementation, switching from checking if certain component's methods have been called, to checking the result of such actions.
Related epics:
Edited by Andrei Zubov