diff options
Diffstat (limited to 'qa/qa/page/group/new.rb')
-rw-r--r-- | qa/qa/page/group/new.rb | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/qa/qa/page/group/new.rb b/qa/qa/page/group/new.rb index 47fda787085..5b86dea2b8f 100644 --- a/qa/qa/page/group/new.rb +++ b/qa/qa/page/group/new.rb @@ -7,31 +7,31 @@ module QA include Page::Component::VisibilitySetting view 'app/assets/javascripts/groups/components/group_name_and_path.vue' do - element :group_path_field - element :group_name_field + element 'group-path-field' + element 'group-name-field' end view 'app/views/groups/_new_group_fields.html.haml' do - element :create_group_button + element 'create-group-button' end view 'app/views/groups/_import_group_from_another_instance_panel.html.haml' do - element :import_gitlab_url - element :import_gitlab_token - element :connect_instance_button + element 'import-gitlab-url' + element 'import-gitlab-token' + element 'connect-instance-button' end view 'app/assets/javascripts/vue_shared/new_namespace/components/welcome.vue' do - element :panel_link + element 'panel-link' end def set_path(path) - fill_element(:group_path_field, path) - fill_element(:group_name_field, path) + fill_element('group-path-field', path) + fill_element('group-name-field', path) end def create - click_element(:create_group_button) + click_element('create-group-button') end def create_subgroup @@ -39,11 +39,11 @@ module QA end def set_gitlab_url(url) - fill_element(:import_gitlab_url, url) + fill_element('import-gitlab-url', url) end def set_gitlab_token(token) - fill_element(:import_gitlab_token, token) + fill_element('import-gitlab-token', token) end def click_import_group @@ -51,7 +51,7 @@ module QA end def click_create_group - click_on 'Create group' + click_element('panel-link', panel_name: 'create-group-pane') end # Connect gitlab instance @@ -61,16 +61,16 @@ module QA # @return [void] def connect_gitlab_instance(gitlab_url, gitlab_token) # Wait until element is present and refresh if not in case feature flag did not kick in - wait_until(max_duration: 10) { has_element?(:import_gitlab_url, wait: 1) } + wait_until(max_duration: 10) { has_element?('import-gitlab-url', wait: 1) } set_gitlab_url(gitlab_url) set_gitlab_token(gitlab_token) - click_element(:connect_instance_button) + click_element('connect-instance-button') end def switch_to_import_tab - click_element(:panel_link, panel_name: 'import-group-pane') + click_element('panel-link', panel_name: 'import-group-pane') end end end |