From f18f56875c72dcb22ef4c5ae5616edee331c5be4 Mon Sep 17 00:00:00 2001 From: Luke Duncalfe Date: Mon, 24 Feb 2025 14:23:41 +1300 Subject: [PATCH] Fix broken Direct Transfer spec Originated from https://gitlab.com/gitlab-org/gitlab/-/merge_requests/182358 which had `pipeline::expedited` label applied, which must have skipped running the spec changes. --- .../groups/import_export/connect_instance_spec.rb | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/spec/features/groups/import_export/connect_instance_spec.rb b/spec/features/groups/import_export/connect_instance_spec.rb index ba38cc51893139..402cad9c3e4980 100644 --- a/spec/features/groups/import_export/connect_instance_spec.rb +++ b/spec/features/groups/import_export/connect_instance_spec.rb @@ -89,10 +89,11 @@ open_import_group end - it 'renders fields and button disabled' do - expect(page).to have_field('GitLab source instance base URL', disabled: true) - expect(page).to have_field('Personal access token', disabled: true) - expect(page).to have_button('Connect instance', disabled: true) + it 'does not render direct transfer section' do + expect(page).not_to have_content('Import groups by direct transfer') + expect(page).not_to have_field('GitLab source instance base URL') + expect(page).not_to have_field('Personal access token') + expect(page).not_to have_button('Connect instance') end end @@ -103,7 +104,8 @@ open_import_group end - it 'renders fields and button enabled' do + it 'renders direct transfer section with fields and button enabled' do + expect(page).to have_content('Import groups by direct transfer') expect(page).to have_field('GitLab source instance base URL', disabled: false) expect(page).to have_field('Personal access token', disabled: false) expect(page).to have_button('Connect instance', disabled: false) -- GitLab