Commit 61865cfc authored by Mike Greiling's avatar Mike Greiling

add CookieHelper and InputHelper automatically to :js tests

parent 787ef979
require 'rails_helper'
describe 'Issue Boards', :js do
include CookieHelper
include DragTo
let(:group) { create(:group, :nested) }
......
require 'rails_helper'
describe 'Visual tokens', :js do
include CookieHelper
include FilteredSearchHelpers
include WaitForRequests
let!(:project) { create(:project) }
let!(:user) { create(:user, name: 'administrator', username: 'root') }
......
require 'rails_helper'
feature 'GFM autocomplete', :js do
include InputHelper
let(:user) { create(:user, name: '💃speciąl someone💃', username: 'someone.special') }
let(:project) { create(:project) }
let(:label) { create(:label, project: project, title: 'special+') }
......
require 'spec_helper'
feature 'Diff note avatars', :js do
include CookieHelper
include NoteInteractionHelpers
let(:user) { create(:user) }
......
require 'spec_helper'
feature 'Merge requests > User posts diff notes', :js do
include CookieHelper
include MergeRequestDiffHelpers
let(:user) { create(:user) }
......
require 'rails_helper'
feature 'Ref switcher', :js do
include CookieHelper
let(:user) { create(:user) }
let(:project) { create(:project, :public, :repository) }
......
require 'spec_helper'
feature 'Multi-file editor new directory', :js do
include CookieHelper
include WaitForRequests
let(:user) { create(:user) }
let(:project) { create(:project, :repository) }
......
require 'spec_helper'
feature 'Multi-file editor new file', :js do
include CookieHelper
include WaitForRequests
let(:user) { create(:user) }
let(:project) { create(:project, :repository) }
......
require 'spec_helper'
feature 'Multi-file editor upload file', :js do
include CookieHelper
include WaitForRequests
let(:user) { create(:user) }
let(:project) { create(:project, :repository) }
let(:txt_file) { File.join(Rails.root, 'spec', 'fixtures', 'doc_sample.txt') }
......
......@@ -48,6 +48,8 @@ RSpec.configure do |config|
config.include Warden::Test::Helpers, type: :request
config.include LoginHelpers, type: :feature
config.include SearchHelpers, type: :feature
config.include CookieHelper, :js
config.include InputHelper, :js
config.include WaitForRequests, :js
config.include StubConfiguration
config.include EmailHelpers, :mailer, type: :mailer
......
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