add CookieHelper and InputHelper automatically to :js tests
This commit is contained in:
parent
787ef979ad
commit
61865cfc93
10 changed files with 2 additions and 18 deletions
|
@ -1,7 +1,6 @@
|
|||
require 'rails_helper'
|
||||
|
||||
describe 'Issue Boards', :js do
|
||||
include CookieHelper
|
||||
include DragTo
|
||||
|
||||
let(:group) { create(:group, :nested) }
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
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') }
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
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+') }
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
feature 'Diff note avatars', :js do
|
||||
include CookieHelper
|
||||
include NoteInteractionHelpers
|
||||
|
||||
let(:user) { create(:user) }
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
feature 'Merge requests > User posts diff notes', :js do
|
||||
include CookieHelper
|
||||
include MergeRequestDiffHelpers
|
||||
|
||||
let(:user) { create(:user) }
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
require 'rails_helper'
|
||||
|
||||
feature 'Ref switcher', :js do
|
||||
include CookieHelper
|
||||
|
||||
let(:user) { create(:user) }
|
||||
let(:project) { create(:project, :public, :repository) }
|
||||
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
feature 'Multi-file editor new directory', :js do
|
||||
include CookieHelper
|
||||
include WaitForRequests
|
||||
|
||||
let(:user) { create(:user) }
|
||||
let(:project) { create(:project, :repository) }
|
||||
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
feature 'Multi-file editor new file', :js do
|
||||
include CookieHelper
|
||||
include WaitForRequests
|
||||
|
||||
let(:user) { create(:user) }
|
||||
let(:project) { create(:project, :repository) }
|
||||
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue