diff options
Diffstat (limited to 'spec/features/groups/import_export/import_file_spec.rb')
-rw-r--r-- | spec/features/groups/import_export/import_file_spec.rb | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/spec/features/groups/import_export/import_file_spec.rb b/spec/features/groups/import_export/import_file_spec.rb index 3d23451feef..b69b8bf2c19 100644 --- a/spec/features/groups/import_export/import_file_spec.rb +++ b/spec/features/groups/import_export/import_file_spec.rb @@ -30,7 +30,7 @@ RSpec.describe 'Import/Export - Group Import', :js do visit new_group_path click_link 'Import group' - fill_in :import_group_name, with: group_name + fill_in s_('Groups|Group name'), with: group_name expect(page).to have_content 'Import group from file' attach_file(file) do @@ -41,10 +41,12 @@ RSpec.describe 'Import/Export - Group Import', :js do group = Group.find_by(name: group_name) - expect(group).not_to be_nil - expect(group.description).to eq 'A voluptate non sequi temporibus quam at.' - expect(group.path).to eq 'test-group-import' - expect(group.import_state.status).to eq GroupImportState.state_machine.states[:finished].value + aggregate_failures do + expect(group).not_to be_nil + expect(group.description).to eq 'A voluptate non sequi temporibus quam at.' + expect(group.path).to eq 'test-group-import' + expect(group.import_state.status).to eq GroupImportState.state_machine.states[:finished].value + end end end @@ -53,9 +55,9 @@ RSpec.describe 'Import/Export - Group Import', :js do visit new_group_path click_link 'Import group' - fill_in :import_group_name, with: 'Test Group Import' + fill_in s_('Groups|Group name'), with: 'Test Group Import' - fill_in :import_group_path, with: 'custom-path' + fill_in s_('Groups|Group URL'), with: 'custom-path' attach_file(file) do find('.js-filepicker-button').click end @@ -76,8 +78,10 @@ RSpec.describe 'Import/Export - Group Import', :js do visit new_group_path click_link 'Import group' - fill_in :import_group_path, with: 'test-group-import' - expect(page).to have_content "Group path is already taken. We've suggested one that is available." + fill_in s_('Groups|Group URL'), with: 'test-group-import' + expect(page).to have_content s_( + 'Groups|Group path is unavailable. Path has been replaced with a suggested available path.' + ) end end end @@ -89,7 +93,7 @@ RSpec.describe 'Import/Export - Group Import', :js do visit new_group_path click_link 'Import group' - fill_in :import_group_name, with: 'Test Group Import' + fill_in s_('Groups|Group name'), with: 'Test Group Import' attach_file(file) do find('.js-filepicker-button').click end |