diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-19 17:16:28 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-19 17:16:28 +0300 |
commit | e4384360a16dd9a19d4d2d25d0ef1f2b862ed2a6 (patch) | |
tree | 2fcdfa7dcdb9db8f5208b2562f4b4e803d671243 /spec/frontend/members | |
parent | ffda4e7bcac36987f936b4ba515995a6698698f0 (diff) |
Add latest changes from gitlab-org/gitlab@16-2-stable-eev16.2.0-rc42
Diffstat (limited to 'spec/frontend/members')
-rw-r--r-- | spec/frontend/members/components/table/members_table_spec.js | 2 | ||||
-rw-r--r-- | spec/frontend/members/components/table/role_dropdown_spec.js | 10 |
2 files changed, 12 insertions, 0 deletions
diff --git a/spec/frontend/members/components/table/members_table_spec.js b/spec/frontend/members/components/table/members_table_spec.js index e3c89bfed53..efc8c9b4459 100644 --- a/spec/frontend/members/components/table/members_table_spec.js +++ b/spec/frontend/members/components/table/members_table_spec.js @@ -221,9 +221,11 @@ describe('MembersTable', () => { 'col-actions', 'gl-display-none!', 'gl-lg-display-table-cell!', + 'gl-vertical-align-middle!', ]); expect(findTableCellByMemberId('Actions', members[1].id).classes()).toStrictEqual([ 'col-actions', + 'gl-vertical-align-middle!', ]); }); }); diff --git a/spec/frontend/members/components/table/role_dropdown_spec.js b/spec/frontend/members/components/table/role_dropdown_spec.js index 1285404fd9f..fa188f50d54 100644 --- a/spec/frontend/members/components/table/role_dropdown_spec.js +++ b/spec/frontend/members/components/table/role_dropdown_spec.js @@ -238,6 +238,16 @@ describe('RoleDropdown', () => { it('does not call updateMemberRole', () => { expect(actions.updateMemberRole).not.toHaveBeenCalled(); }); + + it('re-enables dropdown', async () => { + await waitForPromises(); + + expect(findListbox().props('disabled')).toBe(false); + }); + + it('resets selected dropdown item', () => { + expect(findListbox().props('selected')).toBe(member.validRoles.Owner); + }); }); }); }); |