Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
77137a29
Commit
77137a29
authored
Nov 09, 2018
by
Sanad Liaquat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modify Page::Component::Select2 to work with search and remove Select2Search
parent
61a5199f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
21 deletions
+7
-21
qa/qa.rb
qa/qa.rb
+0
-1
qa/qa/ee/page/group/settings/ldap_sync.rb
qa/qa/ee/page/group/settings/ldap_sync.rb
+1
-1
qa/qa/page/component/select2.rb
qa/qa/page/component/select2.rb
+6
-1
qa/qa/page/component/select2_search.rb
qa/qa/page/component/select2_search.rb
+0
-18
No files found.
qa/qa.rb
View file @
77137a29
...
...
@@ -276,7 +276,6 @@ module QA
autoload
:GroupsFilter
,
'qa/page/component/groups_filter'
autoload
:Select2
,
'qa/page/component/select2'
autoload
:DropdownFilter
,
'qa/page/component/dropdown_filter'
autoload
:Select2Search
,
'qa/page/component/select2_search'
autoload
:UsersSelect
,
'qa/page/component/users_select'
module
Issuable
...
...
qa/qa/ee/page/group/settings/ldap_sync.rb
View file @
77137a29
...
...
@@ -6,7 +6,7 @@ module QA
module
Group
module
Settings
class
LDAPSync
<
::
QA
::
Page
::
Base
include
QA
::
Page
::
Component
::
Select2
Search
include
QA
::
Page
::
Component
::
Select2
view
'ee/app/views/ldap_group_links/_form.html.haml'
do
element
:ldap_group_cn_select
...
...
qa/qa/page/component/select2.rb
View file @
77137a29
...
...
@@ -3,7 +3,12 @@ module QA
module
Component
module
Select2
def
select_item
(
item_text
)
find
(
'ul.select2-result-sub > li'
,
text:
item_text
).
click
find
(
'.select2-result-label'
,
text:
item_text
).
click
end
def
search_and_select
(
item_text
)
find
(
'.select2-input'
).
set
(
item_text
)
select_item
(
item_text
)
end
end
end
...
...
qa/qa/page/component/select2_search.rb
deleted
100644 → 0
View file @
61a5199f
# frozen_string_literal: true
module
QA
module
Page
module
Component
module
Select2Search
def
search_and_select
(
item
)
wait
(
reload:
false
)
do
page
.
has_css?
(
'.select2-input'
)
end
find
(
'.select2-input'
).
set
(
item
)
find
(
'.select2-result-label'
,
text:
item
).
click
end
end
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment