Commit 7e113b68 authored by Keifer Furzland's avatar Keifer Furzland Committed by Rémy Coutable

Remove superfluous type defs in specs

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 4eebd8e1
require 'rails_helper' require 'rails_helper'
describe SentNotificationsController, type: :controller do describe SentNotificationsController do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:project) { create(:empty_project) } let(:project) { create(:empty_project) }
let(:sent_notification) { create(:sent_notification, project: project, noteable: issue, recipient: user) } let(:sent_notification) { create(:sent_notification, project: project, noteable: issue, recipient: user) }
......
require 'spec_helper' require 'spec_helper'
feature 'Abuse reports', feature: true do feature 'Abuse reports' do
let(:another_user) { create(:user) } let(:another_user) { create(:user) }
before do before do
......
require 'spec_helper' require 'spec_helper'
describe "Admin::AbuseReports", feature: true, js: true do describe "Admin::AbuseReports", js: true do
let(:user) { create(:user) } let(:user) { create(:user) }
context 'as an admin' do context 'as an admin' do
......
require 'spec_helper' require 'spec_helper'
feature 'Admin Appearance', feature: true do feature 'Admin Appearance' do
let!(:appearance) { create(:appearance) } let!(:appearance) { create(:appearance) }
scenario 'Create new appearance' do scenario 'Create new appearance' do
......
require 'spec_helper' require 'spec_helper'
feature 'Admin Broadcast Messages', feature: true do feature 'Admin Broadcast Messages' do
before do before do
sign_in(create(:admin)) sign_in(create(:admin))
create(:broadcast_message, :expired, message: 'Migration to new server') create(:broadcast_message, :expired, message: 'Migration to new server')
......
require 'rails_helper' require 'rails_helper'
feature 'Admin cohorts page', feature: true do feature 'Admin cohorts page' do
before do before do
sign_in(create(:admin)) sign_in(create(:admin))
end end
......
require 'spec_helper' require 'spec_helper'
RSpec.describe 'admin deploy keys', type: :feature do RSpec.describe 'admin deploy keys' do
let!(:deploy_key) { create(:deploy_key, public: true) } let!(:deploy_key) { create(:deploy_key, public: true) }
let!(:another_deploy_key) { create(:another_deploy_key, public: true) } let!(:another_deploy_key) { create(:another_deploy_key, public: true) }
......
require 'rails_helper' require 'rails_helper'
feature 'Admin disables Git access protocol', feature: true do feature 'Admin disables Git access protocol' do
include StubENV include StubENV
let(:project) { create(:empty_project, :empty_repo) } let(:project) { create(:empty_project, :empty_repo) }
......
require 'rails_helper' require 'rails_helper'
feature 'Admin disables 2FA for a user', feature: true do feature 'Admin disables 2FA for a user' do
scenario 'successfully', js: true do scenario 'successfully', js: true do
sign_in(create(:admin)) sign_in(create(:admin))
user = create(:user, :two_factor) user = create(:user, :two_factor)
......
require 'spec_helper' require 'spec_helper'
feature 'Admin Groups', feature: true do feature 'Admin Groups' do
include Select2Helper include Select2Helper
let(:internal) { Gitlab::VisibilityLevel::INTERNAL } let(:internal) { Gitlab::VisibilityLevel::INTERNAL }
......
require 'spec_helper' require 'spec_helper'
feature "Admin Health Check", feature: true do feature "Admin Health Check" do
include StubENV include StubENV
before do before do
......
require 'spec_helper' require 'spec_helper'
feature 'Admin::HookLogs', feature: true do feature 'Admin::HookLogs' do
let(:project) { create(:project) } let(:project) { create(:project) }
let(:system_hook) { create(:system_hook) } let(:system_hook) { create(:system_hook) }
let(:hook_log) { create(:web_hook_log, web_hook: system_hook, internal_error_message: 'some error') } let(:hook_log) { create(:web_hook_log, web_hook: system_hook, internal_error_message: 'some error') }
......
require 'spec_helper' require 'spec_helper'
describe 'Admin::Hooks', feature: true do describe 'Admin::Hooks' do
before do before do
@project = create(:project) @project = create(:project)
sign_in(create(:admin)) sign_in(create(:admin))
......
require 'spec_helper' require 'spec_helper'
RSpec.describe 'admin manage applications', feature: true do RSpec.describe 'admin manage applications' do
before do before do
sign_in(create(:admin)) sign_in(create(:admin))
end end
......
require 'spec_helper' require 'spec_helper'
describe "Admin::Projects", feature: true do describe "Admin::Projects" do
include Select2Helper include Select2Helper
let(:user) { create :user } let(:user) { create :user }
......
require 'spec_helper' require 'spec_helper'
describe 'Admin::RequestsProfilesController', feature: true do describe 'Admin::RequestsProfilesController' do
before do before do
FileUtils.mkdir_p(Gitlab::RequestProfiler::PROFILES_DIR) FileUtils.mkdir_p(Gitlab::RequestProfiler::PROFILES_DIR)
sign_in(create(:admin)) sign_in(create(:admin))
......
require 'spec_helper' require 'spec_helper'
feature 'Admin updates settings', feature: true do feature 'Admin updates settings' do
include StubENV include StubENV
before do before do
......
require 'spec_helper' require 'spec_helper'
describe 'Admin > Users > Impersonation Tokens', feature: true, js: true do describe 'Admin > Users > Impersonation Tokens', js: true do
let(:admin) { create(:admin) } let(:admin) { create(:admin) }
let!(:user) { create(:user) } let!(:user) { create(:user) }
......
require 'spec_helper' require 'spec_helper'
describe "Admin::Users", feature: true do describe "Admin::Users" do
let!(:user) do let!(:user) do
create(:omniauth_user, provider: 'twitter', extern_uid: '123456') create(:omniauth_user, provider: 'twitter', extern_uid: '123456')
end end
......
require 'rails_helper' require 'rails_helper'
feature 'Admin uses repository checks', feature: true do feature 'Admin uses repository checks' do
include StubENV include StubENV
before do before do
......
require 'spec_helper' require 'spec_helper'
describe "Dashboard Issues Feed", feature: true do describe "Dashboard Issues Feed" do
describe "GET /issues" do describe "GET /issues" do
let!(:user) { create(:user, email: 'private1@example.com', public_email: 'public1@example.com') } let!(:user) { create(:user, email: 'private1@example.com', public_email: 'public1@example.com') }
let!(:assignee) { create(:user, email: 'private2@example.com', public_email: 'public2@example.com') } let!(:assignee) { create(:user, email: 'private2@example.com', public_email: 'public2@example.com') }
......
require 'spec_helper' require 'spec_helper'
describe "Dashboard Feed", feature: true do describe "Dashboard Feed" do
describe "GET /" do describe "GET /" do
let!(:user) { create(:user, name: "Jonh") } let!(:user) { create(:user, name: "Jonh") }
......
require 'spec_helper' require 'spec_helper'
describe 'Issues Feed', feature: true do describe 'Issues Feed' do
describe 'GET /issues' do describe 'GET /issues' do
let!(:user) { create(:user, email: 'private1@example.com', public_email: 'public1@example.com') } let!(:user) { create(:user, email: 'private1@example.com', public_email: 'public1@example.com') }
let!(:assignee) { create(:user, email: 'private2@example.com', public_email: 'public2@example.com') } let!(:assignee) { create(:user, email: 'private2@example.com', public_email: 'public2@example.com') }
......
require 'spec_helper' require 'spec_helper'
describe "User Feed", feature: true do describe "User Feed" do
describe "GET /" do describe "GET /" do
let!(:user) { create(:user) } let!(:user) { create(:user) }
......
require 'rails_helper' require 'rails_helper'
describe 'Issue Boards add issue modal', :feature, :js do describe 'Issue Boards add issue modal', :js do
let(:project) { create(:empty_project, :public) } let(:project) { create(:empty_project, :public) }
let(:board) { create(:board, project: project) } let(:board) { create(:board, project: project) }
let(:user) { create(:user) } let(:user) { create(:user) }
......
require 'rails_helper' require 'rails_helper'
describe 'Issue Boards', feature: true, js: true do describe 'Issue Boards', js: true do
include DragTo include DragTo
let(:group) { create(:group, :nested) } let(:group) { create(:group, :nested) }
......
require 'rails_helper' require 'rails_helper'
describe 'Issue Boards', :feature, :js do describe 'Issue Boards', :js do
include DragTo include DragTo
let(:project) { create(:empty_project, :public) } let(:project) { create(:empty_project, :public) }
......
require 'rails_helper' require 'rails_helper'
describe 'Issue Boards shortcut', feature: true, js: true do describe 'Issue Boards shortcut', js: true do
let(:project) { create(:empty_project) } let(:project) { create(:empty_project) }
before do before do
......
require 'rails_helper' require 'rails_helper'
describe 'Issue Boards add issue modal filtering', :feature, :js do describe 'Issue Boards add issue modal filtering', :js do
let(:project) { create(:empty_project, :public) } let(:project) { create(:empty_project, :public) }
let(:board) { create(:board, project: project) } let(:board) { create(:board, project: project) }
let(:planning) { create(:label, project: project, name: 'Planning') } let(:planning) { create(:label, project: project, name: 'Planning') }
......
require 'rails_helper' require 'rails_helper'
describe 'Issue Boards new issue', feature: true, js: true do describe 'Issue Boards new issue', js: true do
let(:project) { create(:empty_project, :public) } let(:project) { create(:empty_project, :public) }
let(:board) { create(:board, project: project) } let(:board) { create(:board, project: project) }
let!(:list) { create(:list, board: board, position: 0) } let!(:list) { create(:list, board: board, position: 0) }
......
require 'rails_helper' require 'rails_helper'
describe 'Issue Boards', feature: true, js: true do describe 'Issue Boards', js: true do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:user2) { create(:user) } let(:user2) { create(:user) }
let(:project) { create(:empty_project, :public) } let(:project) { create(:empty_project, :public) }
......
require 'rails_helper' require 'rails_helper'
describe 'Sub-group project issue boards', :feature, :js do describe 'Sub-group project issue boards', :js do
let(:group) { create(:group) } let(:group) { create(:group) }
let(:nested_group_1) { create(:group, parent: group) } let(:nested_group_1) { create(:group, parent: group) }
let(:project) { create(:empty_project, group: nested_group_1) } let(:project) { create(:empty_project, group: nested_group_1) }
......
require 'spec_helper' require 'spec_helper'
feature 'Contributions Calendar', :feature, :js do feature 'Contributions Calendar', :js do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:contributed_project) { create(:empty_project, :public) } let(:contributed_project) { create(:empty_project, :public) }
let(:issue_note) { create(:note, project: contributed_project) } let(:issue_note) { create(:note, project: contributed_project) }
......
...@@ -77,7 +77,7 @@ describe 'Commits' do ...@@ -77,7 +77,7 @@ describe 'Commits' do
end end
end end
describe 'Commit builds', :feature, :js do describe 'Commit builds', :js do
before do before do
visit ci_status_path(pipeline) visit ci_status_path(pipeline)
end end
...@@ -152,7 +152,7 @@ describe 'Commits' do ...@@ -152,7 +152,7 @@ describe 'Commits' do
visit ci_status_path(pipeline) visit ci_status_path(pipeline)
end end
it 'Renders header', :feature, :js do it 'Renders header', :js do
expect(page).to have_content pipeline.sha[0..7] expect(page).to have_content pipeline.sha[0..7]
expect(page).to have_content pipeline.git_commit_message expect(page).to have_content pipeline.git_commit_message
expect(page).to have_content pipeline.user.name expect(page).to have_content pipeline.user.name
...@@ -165,7 +165,7 @@ describe 'Commits' do ...@@ -165,7 +165,7 @@ describe 'Commits' do
end end
end end
context 'when accessing internal project with disallowed access', :feature, :js do context 'when accessing internal project with disallowed access', :js do
before do before do
project.update( project.update(
visibility_level: Gitlab::VisibilityLevel::INTERNAL, visibility_level: Gitlab::VisibilityLevel::INTERNAL,
......
require 'spec_helper' require 'spec_helper'
describe 'Copy as GFM', feature: true, js: true do describe 'Copy as GFM', js: true do
include MarkupHelper include MarkupHelper
include RepoHelpers include RepoHelpers
include ActionView::Helpers::JavaScriptHelper include ActionView::Helpers::JavaScriptHelper
......
require 'spec_helper' require 'spec_helper'
feature 'Cycle Analytics', feature: true, js: true do feature 'Cycle Analytics', js: true do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:guest) { create(:user) } let(:guest) { create(:user) }
let(:project) { create(:project, :repository) } let(:project) { create(:project, :repository) }
......
require 'spec_helper' require 'spec_helper'
RSpec.describe 'Dashboard Active Tab', js: true, feature: true do RSpec.describe 'Dashboard Active Tab', js: true do
before do before do
sign_in(create(:user)) sign_in(create(:user))
end end
......
require 'spec_helper' require 'spec_helper'
RSpec.describe 'Dashboard Archived Project', feature: true do RSpec.describe 'Dashboard Archived Project' do
let(:user) { create :user } let(:user) { create :user }
let(:project) { create :project} let(:project) { create :project}
let(:archived_project) { create(:project, :archived) } let(:archived_project) { create(:project, :archived) }
......
require 'spec_helper' require 'spec_helper'
feature 'Tooltips on .timeago dates', feature: true, js: true do feature 'Tooltips on .timeago dates', js: true do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:project) { create(:project, name: 'test', namespace: user.namespace) } let(:project) { create(:project, name: 'test', namespace: user.namespace) }
let(:created_date) { Date.yesterday.to_time } let(:created_date) { Date.yesterday.to_time }
......
require 'spec_helper' require 'spec_helper'
RSpec.describe 'Dashboard Group', feature: true do RSpec.describe 'Dashboard Group' do
before do before do
sign_in(create(:user)) sign_in(create(:user))
end end
......
require 'spec_helper' require 'spec_helper'
RSpec.describe 'Dashboard Help', feature: true do RSpec.describe 'Dashboard Help' do
before do before do
sign_in(create(:user)) sign_in(create(:user))
end end
......
require 'spec_helper' require 'spec_helper'
describe 'Navigation bar counter', :use_clean_rails_memory_store_caching, feature: true do describe 'Navigation bar counter', :use_clean_rails_memory_store_caching do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:project) { create(:empty_project, namespace: user.namespace) } let(:project) { create(:empty_project, namespace: user.namespace) }
let(:issue) { create(:issue, project: project) } let(:issue) { create(:issue, project: project) }
......
require 'spec_helper' require 'spec_helper'
feature 'Dashboard Issues filtering', js: true do feature 'Dashboard Issues filtering', :js do
include SortingHelper include SortingHelper
let(:user) { create(:user) } let(:user) { create(:user) }
......
require 'spec_helper' require 'spec_helper'
RSpec.describe 'Dashboard Issues', feature: true do RSpec.describe 'Dashboard Issues' do
let(:current_user) { create :user } let(:current_user) { create :user }
let(:user) { current_user } # Shared examples depend on this being available let(:user) { current_user } # Shared examples depend on this being available
let!(:public_project) { create(:empty_project, :public) } let!(:public_project) { create(:empty_project, :public) }
......
require 'spec_helper' require 'spec_helper'
describe 'Dashboard > label filter', feature: true, js: true do describe 'Dashboard > label filter', js: true do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:project) { create(:project, name: 'test', namespace: user.namespace) } let(:project) { create(:project, name: 'test', namespace: user.namespace) }
let(:project2) { create(:project, name: 'test2', path: 'test2', namespace: user.namespace) } let(:project2) { create(:project, name: 'test2', path: 'test2', namespace: user.namespace) }
......
require 'spec_helper' require 'spec_helper'
feature 'Dashboard > milestone filter', :feature, :js do feature 'Dashboard > milestone filter', :js do
include FilterItemSelectHelper include FilterItemSelectHelper
let(:user) { create(:user) } let(:user) { create(:user) }
......
require 'spec_helper' require 'spec_helper'
describe 'Dashboard milestone tabs', :js, :feature do describe 'Dashboard milestone tabs', :js do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:project) { create(:empty_project) } let(:project) { create(:empty_project) }
let!(:label) { create(:label, project: project) } let!(:label) { create(:label, project: project) }
......
require 'spec_helper' require 'spec_helper'
feature 'Dashboard > Milestones', feature: true do feature 'Dashboard > Milestones' do
describe 'as anonymous user' do describe 'as anonymous user' do
before do before do
visit dashboard_milestones_path visit dashboard_milestones_path
......
require 'spec_helper' require 'spec_helper'
feature 'Project member activity', feature: true, js: true do feature 'Project member activity', js: true do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:project) { create(:empty_project, :public, name: 'x', namespace: user.namespace) } let(:project) { create(:empty_project, :public, name: 'x', namespace: user.namespace) }
......
require 'spec_helper' require 'spec_helper'
feature 'Dashboard shortcuts', :feature, :js do feature 'Dashboard shortcuts', :js do
context 'logged in' do context 'logged in' do
before do before do
sign_in(create(:user)) sign_in(create(:user))
......
require 'spec_helper' require 'spec_helper'
describe 'Dashboard snippets', feature: true do describe 'Dashboard snippets' do
context 'when the project has snippets' do context 'when the project has snippets' do
let(:project) { create(:empty_project, :public) } let(:project) { create(:empty_project, :public) }
let!(:snippets) { create_list(:project_snippet, 2, :public, author: project.owner, project: project) } let!(:snippets) { create_list(:project_snippet, 2, :public, author: project.owner, project: project) }
......
require 'spec_helper' require 'spec_helper'
describe 'Dashboard > User filters projects', :feature do describe 'Dashboard > User filters projects' do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:project) { create(:project, name: 'Victorialand', namespace: user.namespace) } let(:project) { create(:project, name: 'Victorialand', namespace: user.namespace) }
let(:user2) { create(:user) } let(:user2) { create(:user) }
......
require 'spec_helper' require 'spec_helper'
describe 'Discussion Comments Merge Request', :feature, :js do describe 'Discussion Comments Merge Request', :js do
include RepoHelpers include RepoHelpers
let(:user) { create(:user) } let(:user) { create(:user) }
......
require 'spec_helper' require 'spec_helper'
describe 'Discussion Comments Issue', :feature, :js do describe 'Discussion Comments Issue', :js do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:project) { create(:empty_project) } let(:project) { create(:empty_project) }
let(:issue) { create(:issue, project: project) } let(:issue) { create(:issue, project: project) }
......
require 'spec_helper' require 'spec_helper'
describe 'Discussion Comments Merge Request', :feature, :js do describe 'Discussion Comments Merge Request', :js do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:project) { create(:project) } let(:project) { create(:project) }
let(:merge_request) { create(:merge_request, source_project: project) } let(:merge_request) { create(:merge_request, source_project: project) }
......
require 'spec_helper' require 'spec_helper'
describe 'Discussion Comments Issue', :feature, :js do describe 'Discussion Comments Issue', :js do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:project) { create(:empty_project) } let(:project) { create(:empty_project) }
let(:snippet) { create(:project_snippet, :private, project: project, author: user) } let(:snippet) { create(:project_snippet, :private, project: project, author: user) }
......
require 'spec_helper' require 'spec_helper'
feature 'Expand and collapse diffs', js: true, feature: true do feature 'Expand and collapse diffs', js: true do
let(:branch) { 'expand-collapse-diffs' } let(:branch) { 'expand-collapse-diffs' }
let(:project) { create(:project, :repository) } let(:project) { create(:project, :repository) }
......
require 'spec_helper' require 'spec_helper'
describe 'Explore Groups page', :js, :feature do describe 'Explore Groups page', :js do
let!(:user) { create :user } let!(:user) { create :user }
let!(:group) { create(:group) } let!(:group) { create(:group) }
let!(:public_group) { create(:group, :public) } let!(:public_group) { create(:group, :public) }
......
require 'spec_helper' require 'spec_helper'
feature 'Top Plus Menu', feature: true, js: true do feature 'Top Plus Menu', :js do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:group) { create(:group) } let(:group) { create(:group) }
let(:project) { create(:project, :repository, creator: user, namespace: user.namespace) } let(:project) { create(:project, :repository, creator: user, namespace: user.namespace) }
......
require 'spec_helper' require 'spec_helper'
describe "GitLab Flavored Markdown", feature: true do describe "GitLab Flavored Markdown" do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:project) { create(:empty_project) } let(:project) { create(:empty_project) }
let(:issue) { create(:issue, project: project) } let(:issue) { create(:issue, project: project) }
...@@ -49,7 +49,7 @@ describe "GitLab Flavored Markdown", feature: true do ...@@ -49,7 +49,7 @@ describe "GitLab Flavored Markdown", feature: true do
end end
end end
describe "for issues", feature: true, js: true do describe "for issues", js: true do
before do before do
@other_issue = create(:issue, @other_issue = create(:issue,
author: user, author: user,
......
require 'spec_helper' require 'spec_helper'
feature 'Global search', feature: true do feature 'Global search' do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:project) { create(:empty_project, namespace: user.namespace) } let(:project) { create(:empty_project, namespace: user.namespace) }
......
require 'spec_helper' require 'spec_helper'
feature 'Group activity page', feature: true do feature 'Group activity page' do
let(:user) { create(:group_member, :developer, user: create(:user), group: group ).user } let(:user) { create(:group_member, :developer, user: create(:user), group: group ).user }
let(:group) { create(:group) } let(:group) { create(:group) }
let(:path) { activity_group_path(group) } let(:path) { activity_group_path(group) }
......
require 'spec_helper' require 'spec_helper'
feature 'Group name toggle', feature: true, js: true do feature 'Group name toggle', js: true do
let(:group) { create(:group) } let(:group) { create(:group) }
let(:nested_group_1) { create(:group, parent: group) } let(:nested_group_1) { create(:group, parent: group) }
let(:nested_group_2) { create(:group, parent: nested_group_1) } let(:nested_group_2) { create(:group, parent: nested_group_1) }
......
require 'spec_helper' require 'spec_helper'
feature 'Edit group settings', feature: true do feature 'Edit group settings' do
given(:user) { create(:user) } given(:user) { create(:user) }
given(:group) { create(:group, path: 'foo') } given(:group) { create(:group, path: 'foo') }
......
require 'spec_helper' require 'spec_helper'
feature 'Group issues page', feature: true do feature 'Group issues page' do
let(:path) { issues_group_path(group) } let(:path) { issues_group_path(group) }
let(:issuable) { create(:issue, project: project, title: "this is my created issuable")} let(:issuable) { create(:issue, project: project, title: "this is my created issuable")}
......
require 'spec_helper' require 'spec_helper'
feature 'Edit group label', feature: true do feature 'Edit group label' do
given(:user) { create(:user) } given(:user) { create(:user) }
given(:group) { create(:group) } given(:group) { create(:group) }
given(:label) { create(:group_label, group: group) } given(:label) { create(:group_label, group: group) }
......
require 'spec_helper' require 'spec_helper'
feature 'Labels subscription', feature: true do feature 'Labels subscription' do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:group) { create(:group) } let(:group) { create(:group) }
let!(:feature) { create(:group_label, group: group, title: 'feature') } let!(:feature) { create(:group_label, group: group, title: 'feature') }
......
require 'spec_helper' require 'spec_helper'
feature 'Groups > Members > Leave group', feature: true do feature 'Groups > Members > Leave group' do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:other_user) { create(:user) } let(:other_user) { create(:user) }
let(:group) { create(:group) } let(:group) { create(:group) }
......
require 'spec_helper' require 'spec_helper'
feature 'Groups > Members > List members', feature: true do feature 'Groups > Members > List members' do
include Select2Helper include Select2Helper
let(:user1) { create(:user, name: 'John Doe') } let(:user1) { create(:user, name: 'John Doe') }
......
require 'spec_helper' require 'spec_helper'
feature 'Groups > Members > Manage access requests', feature: true do feature 'Groups > Members > Manage access requests' do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:owner) { create(:user) } let(:owner) { create(:user) }
let(:group) { create(:group, :public, :access_requestable) } let(:group) { create(:group, :public, :access_requestable) }
......
require 'spec_helper' require 'spec_helper'
feature 'Groups > Members > Manage members', feature: true do feature 'Groups > Members > Manage members' do
include Select2Helper include Select2Helper
let(:user1) { create(:user, name: 'John Doe') } let(:user1) { create(:user, name: 'John Doe') }
......
require 'spec_helper' require 'spec_helper'
feature 'Groups > Members > Request access', feature: true do feature 'Groups > Members > Request access' do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:owner) { create(:user) } let(:owner) { create(:user) }
let(:group) { create(:group, :public, :access_requestable) } let(:group) { create(:group, :public, :access_requestable) }
......
require 'spec_helper' require 'spec_helper'
feature 'Groups > Members > Sort members', feature: true do feature 'Groups > Members > Sort members' do
let(:owner) { create(:user, name: 'John Doe') } let(:owner) { create(:user, name: 'John Doe') }
let(:developer) { create(:user, name: 'Mary Jane', last_sign_in_at: 5.days.ago) } let(:developer) { create(:user, name: 'Mary Jane', last_sign_in_at: 5.days.ago) }
let(:group) { create(:group) } let(:group) { create(:group) }
......
require 'spec_helper' require 'spec_helper'
feature 'Group merge requests page', feature: true do feature 'Group merge requests page' do
let(:path) { merge_requests_group_path(group) } let(:path) { merge_requests_group_path(group) }
let(:issuable) { create(:merge_request, source_project: project, target_project: project, title: 'this is my created issuable') } let(:issuable) { create(:merge_request, source_project: project, target_project: project, title: 'this is my created issuable') }
......
require 'rails_helper' require 'rails_helper'
feature 'Group milestones', :feature, :js do feature 'Group milestones', :js do
let(:group) { create(:group) } let(:group) { create(:group) }
let!(:project) { create(:project_empty_repo, group: group) } let!(:project) { create(:project_empty_repo, group: group) }
let(:user) { create(:group_member, :master, user: create(:user), group: group ).user } let(:user) { create(:group_member, :master, user: create(:user), group: group ).user }
......
require 'spec_helper' require 'spec_helper'
feature 'Group show page', feature: true do feature 'Group show page' do
let(:group) { create(:group) } let(:group) { create(:group) }
let(:path) { group_path(group) } let(:path) { group_path(group) }
......
require 'spec_helper' require 'spec_helper'
feature 'Group', feature: true do feature 'Group' do
before do before do
sign_in(create(:admin)) sign_in(create(:admin))
end end
......
require 'spec_helper' require 'spec_helper'
describe 'Help Pages', feature: true do describe 'Help Pages' do
describe 'Get the main help page' do describe 'Get the main help page' do
shared_examples_for 'help page' do |prefix: ''| shared_examples_for 'help page' do |prefix: ''|
it 'prefixes links correctly' do it 'prefixes links correctly' do
......
require 'spec_helper' require 'spec_helper'
describe 'Issuables Close/Reopen/Report toggle', :feature do describe 'Issuables Close/Reopen/Report toggle' do
let(:user) { create(:user) } let(:user) { create(:user) }
shared_examples 'an issuable close/reopen/report toggle' do shared_examples 'an issuable close/reopen/report toggle' do
......
require 'spec_helper' require 'spec_helper'
describe 'Projects > Issuables > Default sort order', feature: true do describe 'Projects > Issuables > Default sort order' do
let(:project) { create(:empty_project, :public) } let(:project) { create(:empty_project, :public) }
let(:first_created_issuable) { issuables.order_created_asc.first } let(:first_created_issuable) { issuables.order_created_asc.first }
......
require 'rails_helper' require 'rails_helper'
describe 'issuable list', feature: true do describe 'issuable list' do
let(:project) { create(:empty_project) } let(:project) { create(:empty_project) }
let(:user) { create(:user) } let(:user) { create(:user) }
......
require 'rails_helper' require 'rails_helper'
describe 'Awards Emoji', feature: true do describe 'Awards Emoji' do
let!(:project) { create(:project, :public) } let!(:project) { create(:project, :public) }
let!(:user) { create(:user) } let!(:user) { create(:user) }
let(:issue) do let(:issue) do
......
require 'rails_helper' require 'rails_helper'
feature 'Issue awards', js: true, feature: true do feature 'Issue awards', js: true do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:project) { create(:project, :public) } let(:project) { create(:project, :public) }
let(:issue) { create(:issue, project: project) } let(:issue) { create(:issue, project: project) }
......
require 'rails_helper' require 'rails_helper'
feature 'Issues > Labels bulk assignment', feature: true do feature 'Issues > Labels bulk assignment' do
let(:user) { create(:user) } let(:user) { create(:user) }
let!(:project) { create(:project) } let!(:project) { create(:project) }
let!(:issue1) { create(:issue, project: project, title: "Issue 1") } let!(:issue1) { create(:issue, project: project, title: "Issue 1") }
......
require 'rails_helper' require 'rails_helper'
feature 'Create Branch/Merge Request Dropdown on issue page', feature: true, js: true do feature 'Create Branch/Merge Request Dropdown on issue page', js: true do
let(:user) { create(:user) } let(:user) { create(:user) }
let!(:project) { create(:project) } let!(:project) { create(:project) }
let(:issue) { create(:issue, project: project, title: 'Cherry-Coloured Funk') } let(:issue) { create(:issue, project: project, title: 'Cherry-Coloured Funk') }
......
require 'rails_helper' require 'rails_helper'
feature 'Resolving all open discussions in a merge request from an issue', feature: true, js: true do feature 'Resolving all open discussions in a merge request from an issue', js: true do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:project) { create(:project) } let(:project) { create(:project) }
let(:merge_request) { create(:merge_request, source_project: project) } let(:merge_request) { create(:merge_request, source_project: project) }
......
require 'rails_helper' require 'rails_helper'
feature 'Resolve an open discussion in a merge request by creating an issue', feature: true do feature 'Resolve an open discussion in a merge request by creating an issue' do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:project) { create(:project, only_allow_merge_if_all_discussions_are_resolved: true) } let(:project) { create(:project, only_allow_merge_if_all_discussions_are_resolved: true) }
let(:merge_request) { create(:merge_request, source_project: project) } let(:merge_request) { create(:merge_request, source_project: project) }
......
require 'rails_helper' require 'rails_helper'
describe 'Dropdown assignee', :feature, :js do describe 'Dropdown assignee', :js do
include FilteredSearchHelpers include FilteredSearchHelpers
let!(:project) { create(:empty_project) } let!(:project) { create(:empty_project) }
......
require 'rails_helper' require 'rails_helper'
describe 'Dropdown author', js: true, feature: true do describe 'Dropdown author', js: true do
include FilteredSearchHelpers include FilteredSearchHelpers
let!(:project) { create(:empty_project) } let!(:project) { create(:empty_project) }
......
require 'rails_helper' require 'rails_helper'
describe 'Dropdown hint', :js, :feature do describe 'Dropdown hint', :js do
include FilteredSearchHelpers include FilteredSearchHelpers
let!(:project) { create(:empty_project) } let!(:project) { create(:empty_project) }
......
require 'spec_helper' require 'spec_helper'
describe 'Dropdown label', js: true, feature: true do describe 'Dropdown label', js: true do
include FilteredSearchHelpers include FilteredSearchHelpers
let(:project) { create(:empty_project) } let(:project) { create(:empty_project) }
......
require 'rails_helper' require 'rails_helper'
describe 'Dropdown milestone', :feature, :js do describe 'Dropdown milestone', :js do
include FilteredSearchHelpers include FilteredSearchHelpers
let!(:project) { create(:empty_project) } let!(:project) { create(:empty_project) }
......
require 'spec_helper' require 'spec_helper'
describe 'Filter issues', js: true, feature: true do describe 'Filter issues', js: true do
include Devise::Test::IntegrationHelpers include Devise::Test::IntegrationHelpers
include FilteredSearchHelpers include FilteredSearchHelpers
......
require 'spec_helper' require 'spec_helper'
describe 'Recent searches', js: true, feature: true do describe 'Recent searches', js: true do
include FilteredSearchHelpers include FilteredSearchHelpers
let(:project_1) { create(:empty_project, :public) } let(:project_1) { create(:empty_project, :public) }
......
require 'rails_helper' require 'rails_helper'
describe 'Search bar', js: true, feature: true do describe 'Search bar', js: true do
include FilteredSearchHelpers include FilteredSearchHelpers
let!(:project) { create(:empty_project) } let!(:project) { create(:empty_project) }
......
require 'rails_helper' require 'rails_helper'
describe 'Visual tokens', js: true, feature: true do describe 'Visual tokens', js: true do
include FilteredSearchHelpers include FilteredSearchHelpers
include WaitForRequests include WaitForRequests
......
require 'rails_helper' require 'rails_helper'
describe 'New/edit issue', :feature, :js do describe 'New/edit issue', :js do
include ActionView::Helpers::JavaScriptHelper include ActionView::Helpers::JavaScriptHelper
include FormHelper include FormHelper
......
require 'rails_helper' require 'rails_helper'
feature 'GFM autocomplete', feature: true, js: true do feature 'GFM autocomplete', js: true do
let(:user) { create(:user, name: '💃speciąl someone💃', username: 'someone.special') } let(:user) { create(:user, name: '💃speciąl someone💃', username: 'someone.special') }
let(:project) { create(:project) } let(:project) { create(:project) }
let(:label) { create(:label, project: project, title: 'special+') } let(:label) { create(:label, project: project, title: 'special+') }
......
require 'rails_helper' require 'rails_helper'
describe 'Group label on issue', :feature do describe 'Group label on issue' do
it 'renders link to the project issues page' do it 'renders link to the project issues page' do
group = create(:group) group = create(:group)
project = create(:empty_project, :public, namespace: group) project = create(:empty_project, :public, namespace: group)
......
require 'rails_helper' require 'rails_helper'
feature 'Issue Detail', js: true, feature: true do feature 'Issue Detail', :js do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:project) { create(:project, :public) } let(:project) { create(:project, :public) }
let(:issue) { create(:issue, project: project, author: user) } let(:issue) { create(:issue, project: project, author: user) }
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment