Commit 206d442b authored by Clement Ho's avatar Clement Ho

Refine search bar specs

parent 4f774c94
require 'rails_helper' require 'rails_helper'
describe 'Search bar', feature: true do describe 'Search bar', js: true, feature: true do
include WaitForAjax include WaitForAjax
let!(:project) { create(:project) } let!(:project) { create(:empty_project) }
let!(:group) { create(:group) }
let!(:user) { create(:user) } let!(:user) { create(:user) }
before do before do
project.team << [user, :master] project.team << [user, :master]
group.add_developer(user)
login_as(user) login_as(user)
create(:issue, project: project) create(:issue, project: project)
visit namespace_project_issues_path(project.namespace, project) visit namespace_project_issues_path(project.namespace, project)
end end
describe 'clear search button', js: true do describe 'clear search button' do
it 'clears text' do it 'clears text' do
search_text = 'search_text' search_text = 'search_text'
filtered_search = find('.filtered-search') filtered_search = find('.filtered-search')
......
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