Skip to content
Snippets Groups Projects
Commit 5985a9b5 authored by Dmitry Silin's avatar Dmitry Silin
Browse files

Replaced js-dropdown-input-field with data-testid

Changelog: changed
parent 1f2cf676
No related branches found
No related tags found
1 merge request!122384Replaced js-dropdown-input-field with data-testid
......@@ -131,7 +131,6 @@ export default {
ref="search"
:value="searchTerm"
:placeholder="searchText"
class="js-dropdown-input-field"
@input="setSearchTerm"
/>
</slot>
......
......@@ -308,7 +308,7 @@ export default {
<gl-search-box-by-type
ref="search"
:value="search"
class="js-dropdown-input-field"
data-testid="user-search-input"
@input="debouncedSearchKeyUpdate"
/>
</template>
......
......@@ -162,7 +162,7 @@
open_assignees_dropdown
page.within '.dropdown-menu-user' do
find('.js-dropdown-input-field').find('input').set(user2.name)
find('[data-testid="user-search-input"]').set(user2.name)
wait_for_requests
......@@ -182,7 +182,7 @@
it 'keeps your filtered term after filtering and dismissing the dropdown' do
open_assignees_dropdown
find('.js-dropdown-input-field').find('input').set(user2.name)
find('[data-testid="user-search-input"]').set(user2.name)
wait_for_requests
page.within '.dropdown-menu-user' do
......@@ -199,7 +199,7 @@
expect(page.all('[data-testid="selected-participant"]').length).to eq(1)
end
expect(find('.js-dropdown-input-field').find('input').value).to eq(user2.name)
expect(find('[data-testid="user-search-input"]').value).to eq(user2.name)
end
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment