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
48ea8754
Commit
48ea8754
authored
Jan 20, 2022
by
Illya Klymov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace usage of find/findAll in ee/spec/frontend/members
* migrate to proper use of findComponent/findAllComponents
parent
68755b38
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
10 additions
and
10 deletions
+10
-10
ee/spec/frontend/members/components/action_buttons/user_action_buttons_spec.js
...ers/components/action_buttons/user_action_buttons_spec.js
+1
-1
ee/spec/frontend/members/components/avatars/user_avatar_spec.js
...c/frontend/members/components/avatars/user_avatar_spec.js
+1
-1
ee/spec/frontend/members/components/ldap/ldap_dropdown_item_spec.js
...ontend/members/components/ldap/ldap_dropdown_item_spec.js
+1
-1
ee/spec/frontend/members/components/ldap/ldap_override_button_spec.js
...tend/members/components/ldap/ldap_override_button_spec.js
+1
-1
ee/spec/frontend/members/components/ldap/ldap_override_confirmation_modal_spec.js
.../components/ldap/ldap_override_confirmation_modal_spec.js
+1
-1
ee/spec/frontend/members/components/table/expiration_datepicker_spec.js
...nd/members/components/table/expiration_datepicker_spec.js
+1
-1
ee/spec/frontend/members/components/table/member_table_cell_spec.js
...ontend/members/components/table/member_table_cell_spec.js
+1
-1
ee/spec/frontend/members/components/table/role_dropdown_spec.js
...c/frontend/members/components/table/role_dropdown_spec.js
+3
-3
No files found.
ee/spec/frontend/members/components/action_buttons/user_action_buttons_spec.js
View file @
48ea8754
...
...
@@ -24,7 +24,7 @@ describe('UserActionButtons', () => {
return
waitForPromises
();
};
const
findLdapOverrideButton
=
()
=>
wrapper
.
find
(
LdapOverrideButton
);
const
findLdapOverrideButton
=
()
=>
wrapper
.
find
Component
(
LdapOverrideButton
);
afterEach
(()
=>
{
wrapper
.
destroy
();
...
...
ee/spec/frontend/members/components/avatars/user_avatar_spec.js
View file @
48ea8754
...
...
@@ -32,7 +32,7 @@ describe('UserAvatar', () => {
`
(
'
renders the "$badgeText" badge
'
,
({
member
,
badgeText
})
=>
{
createComponent
({
member
});
expect
(
wrapper
.
find
(
GlBadge
).
text
()).
toBe
(
badgeText
);
expect
(
wrapper
.
find
Component
(
GlBadge
).
text
()).
toBe
(
badgeText
);
});
});
});
ee/spec/frontend/members/components/ldap/ldap_dropdown_item_spec.js
View file @
48ea8754
...
...
@@ -55,7 +55,7 @@ describe('LdapDropdownItem', () => {
beforeEach
(()
=>
{
createComponent
();
wrapper
.
find
(
GlDropdownItem
).
find
(
'
[role="menuitem"]
'
).
trigger
(
'
click
'
);
wrapper
.
find
Component
(
GlDropdownItem
).
find
(
'
[role="menuitem"]
'
).
trigger
(
'
click
'
);
});
it
(
'
calls `updateLdapOverride` action
'
,
()
=>
{
...
...
ee/spec/frontend/members/components/ldap/ldap_override_button_spec.js
View file @
48ea8754
...
...
@@ -45,7 +45,7 @@ describe('LdapOverrideButton', () => {
});
};
const
findButton
=
()
=>
wrapper
.
find
(
GlButton
);
const
findButton
=
()
=>
wrapper
.
find
Component
(
GlButton
);
beforeEach
(()
=>
{
createComponent
();
...
...
ee/spec/frontend/members/components/ldap/ldap_override_confirmation_modal_spec.js
View file @
48ea8754
...
...
@@ -62,7 +62,7 @@ describe('LdapOverrideConfirmationModal', () => {
});
};
const
findModal
=
()
=>
wrapper
.
find
(
GlModal
);
const
findModal
=
()
=>
wrapper
.
find
Component
(
GlModal
);
const
getByText
=
(
text
,
options
)
=>
createWrapper
(
within
(
findModal
().
element
).
getByText
(
text
,
options
));
const
getEditPermissionsButton
=
()
=>
...
...
ee/spec/frontend/members/components/table/expiration_datepicker_spec.js
View file @
48ea8754
...
...
@@ -16,7 +16,7 @@ describe('ExpirationDatepicker', () => {
});
};
const
findDatepicker
=
()
=>
wrapper
.
find
(
GlDatepicker
);
const
findDatepicker
=
()
=>
wrapper
.
find
Component
(
GlDatepicker
);
afterEach
(()
=>
{
wrapper
.
destroy
();
...
...
ee/spec/frontend/members/components/table/member_table_cell_spec.js
View file @
48ea8754
...
...
@@ -62,7 +62,7 @@ describe('MemberTableCell', () => {
});
};
const
findWrappedComponent
=
()
=>
wrapper
.
find
(
WrappedComponent
);
const
findWrappedComponent
=
()
=>
wrapper
.
find
Component
(
WrappedComponent
);
afterEach
(()
=>
{
wrapper
.
destroy
();
...
...
ee/spec/frontend/members/components/table/role_dropdown_spec.js
View file @
48ea8754
...
...
@@ -24,7 +24,7 @@ describe('RoleDropdown', () => {
return
waitForPromises
();
};
const
findDropdown
=
()
=>
wrapper
.
find
(
GlDropdown
);
const
findDropdown
=
()
=>
wrapper
.
find
Component
(
GlDropdown
);
afterEach
(()
=>
{
wrapper
.
destroy
();
...
...
@@ -40,7 +40,7 @@ describe('RoleDropdown', () => {
member
:
{
...
member
,
isOverridden
:
true
},
});
expect
(
wrapper
.
find
(
LdapDropdownItem
).
exists
()).
toBe
(
true
);
expect
(
wrapper
.
find
Component
(
LdapDropdownItem
).
exists
()).
toBe
(
true
);
});
});
...
...
@@ -66,7 +66,7 @@ describe('RoleDropdown', () => {
},
});
expect
(
wrapper
.
find
(
LdapDropdownItem
).
exists
()).
toBe
(
false
);
expect
(
wrapper
.
find
Component
(
LdapDropdownItem
).
exists
()).
toBe
(
false
);
});
});
});
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