f783798825
* master: (113 commits) Introduce new hook data builders for Issue and MergeRequest Don't create todos for old issue assignees Start adding Gitlab::HookData::IssuableBuilder Include the changes in issuable webhook payloads Rename the `codeclimate` job to `codequality` Don't show an "Unsubscribe" link in snippet comment notifications Add QA::Scenario::Gitlab::Group::Create Removes CommitsList from global namespace Fix wiki empty page translation namespace not being removed Fixes mini graph in commit view Fix link to new i18n index page Update i18n docs Move i18n/introduction to i18n/index Resolve "Simple documentation update - backup to restore in restore section" Remove AjaxLoadingSpinner and CreateLabelDropdown from global namespace Move cycle analytics banner into a vue file Updated Icons + Fix for Collapsed Groups Angle Don't create fork networks for root projects that are deleted Remove executable permissions on images to make docs lint happy Sync up hard coded DN class in migration ...
28 lines
708 B
Ruby
28 lines
708 B
Ruby
require 'spec_helper'
|
|
|
|
RSpec.describe 'Dashboard Group' do
|
|
before do
|
|
sign_in(create(:user))
|
|
end
|
|
|
|
it 'defaults sort dropdown to last created' do
|
|
visit dashboard_groups_path
|
|
|
|
expect(page).to have_button('Last created')
|
|
end
|
|
|
|
it 'creates new group', :js do
|
|
visit dashboard_groups_path
|
|
find('.btn-new').click
|
|
new_path = 'Samurai'
|
|
new_description = 'Tokugawa Shogunate'
|
|
|
|
fill_in 'group_path', with: new_path
|
|
fill_in 'group_description', with: new_description
|
|
click_button 'Create group'
|
|
|
|
expect(current_path).to eq group_path(Group.find_by(name: new_path))
|
|
expect(page).to have_content(new_path)
|
|
expect(page).to have_content(new_description)
|
|
end
|
|
end
|