Code improvements
This commit is contained in:
parent
f44fb5cfd0
commit
af178560c0
3 changed files with 4 additions and 3 deletions
|
@ -79,6 +79,7 @@
|
|||
return dataValue !== null;
|
||||
}
|
||||
|
||||
// Determines the full search query (visual tokens + input)
|
||||
static getSearchQuery() {
|
||||
const tokensContainer = document.querySelector('.tokens-container');
|
||||
const values = [];
|
||||
|
|
|
@ -112,7 +112,7 @@ describe 'Filter issues', js: true, feature: true do
|
|||
end
|
||||
|
||||
context 'author with other filters' do
|
||||
search_term = 'issue'
|
||||
let(:search_term) { 'issue' }
|
||||
|
||||
it 'filters issues by searched author and text' do
|
||||
input_filtered_search("author:@#{user.username} #{search_term}")
|
||||
|
@ -536,7 +536,7 @@ describe 'Filter issues', js: true, feature: true do
|
|||
end
|
||||
|
||||
context 'milestone with other filters' do
|
||||
search_term = 'bug'
|
||||
let(:search_term) { 'bug' }
|
||||
|
||||
it 'filters issues by searched milestone and text' do
|
||||
input_filtered_search("milestone:%#{milestone.title} #{search_term}")
|
||||
|
|
|
@ -70,7 +70,7 @@ feature 'Issue filtering by Labels', feature: true, js: true do
|
|||
|
||||
context 'filter by label enhancement and bug in issues list' do
|
||||
before do
|
||||
input_filtered_search('label:~bug label:~enhancement ')
|
||||
input_filtered_search('label:~bug label:~enhancement')
|
||||
end
|
||||
|
||||
it 'applies the filters' do
|
||||
|
|
Loading…
Reference in a new issue