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

Refine search bar specs

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