diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-18 15:13:06 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-18 15:13:06 +0300 |
commit | c7b2529418eb0fb802637709eafe8016a4d106b0 (patch) | |
tree | 858333642b5a371009f4e4eabcd5c0e2dd5df25f /spec/frontend/invite_members | |
parent | 31522c5182bf14886900131c12d17d004ce28534 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/invite_members')
-rw-r--r-- | spec/frontend/invite_members/components/user_limit_notification_spec.js | 37 |
1 files changed, 1 insertions, 36 deletions
diff --git a/spec/frontend/invite_members/components/user_limit_notification_spec.js b/spec/frontend/invite_members/components/user_limit_notification_spec.js index 543fc28a342..1ff2e86412f 100644 --- a/spec/frontend/invite_members/components/user_limit_notification_spec.js +++ b/spec/frontend/invite_members/components/user_limit_notification_spec.js @@ -1,12 +1,7 @@ import { GlAlert, GlSprintf } from '@gitlab/ui'; import { shallowMountExtended } from 'helpers/vue_test_utils_helper'; import UserLimitNotification from '~/invite_members/components/user_limit_notification.vue'; - -import { - REACHED_LIMIT_MESSAGE, - REACHED_LIMIT_UPGRADE_SUGGESTION_MESSAGE, -} from '~/invite_members/constants'; - +import { REACHED_LIMIT_UPGRADE_SUGGESTION_MESSAGE } from '~/invite_members/constants'; import { freeUsersLimit, membersCount } from '../mock_data/member_modal'; const WARNING_ALERT_TITLE = 'You only have space for 2 more members in name'; @@ -52,22 +47,6 @@ describe('UserLimitNotification', () => { }); }); - describe('when close to limit within a personal namepace', () => { - beforeEach(() => { - createComponent(true, false, { membersCount: 3, userNamespace: true }); - }); - - it('renders the limit for a personal namespace', () => { - const alert = findAlert(); - - expect(alert.attributes('title')).toEqual(WARNING_ALERT_TITLE); - - expect(alert.text()).toEqual( - 'To make more space, you can remove members who no longer need access.', - ); - }); - }); - describe('when close to limit within a group', () => { it("renders user's limit notification", () => { createComponent(true, false, { membersCount: 3 }); @@ -91,19 +70,5 @@ describe('UserLimitNotification', () => { expect(alert.attributes('title')).toEqual("You've reached your 5 members limit for name"); expect(alert.text()).toEqual(REACHED_LIMIT_UPGRADE_SUGGESTION_MESSAGE); }); - - describe('when free user namespace', () => { - it("renders user's limit notification", () => { - createComponent(true, true, { userNamespace: true }); - - const alert = findAlert(); - - expect(alert.attributes('title')).toEqual( - "You've reached your 5 members limit for your personal projects", - ); - - expect(alert.text()).toEqual(REACHED_LIMIT_MESSAGE); - }); - }); }); }); |