Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2024-01-23 18:08:36 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2024-01-23 18:08:36 +0300
commit118083ac69c8cba0bc60633a15b9bb44e5f78281 (patch)
tree1e00c72fa30c952c9a8d86b3441132f037b3fc21 /spec/frontend/vue_shared/components
parent84b507d17bad7636a02ae2e9f59e8eb219ad7e15 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/vue_shared/components')
-rw-r--r--spec/frontend/vue_shared/components/user_popover/user_popover_spec.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/frontend/vue_shared/components/user_popover/user_popover_spec.js b/spec/frontend/vue_shared/components/user_popover/user_popover_spec.js
index 0457044f985..3a1318d30db 100644
--- a/spec/frontend/vue_shared/components/user_popover/user_popover_spec.js
+++ b/spec/frontend/vue_shared/components/user_popover/user_popover_spec.js
@@ -29,6 +29,7 @@ const DEFAULT_PROPS = {
id: 1,
username: 'root',
name: 'Administrator',
+ email: null,
location: 'Vienna',
localTime: '2:30 PM',
webUrl: '/root',
@@ -125,7 +126,17 @@ describe('User Popover Component', () => {
describe('job data', () => {
const findWorkInformation = () => wrapper.findComponent({ ref: 'workInformation' });
const findBio = () => wrapper.findComponent({ ref: 'bio' });
+ const findEmail = () => wrapper.findComponent({ ref: 'email' });
const bio = 'My super interesting bio';
+ const email = 'my@email.com';
+
+ it('should show email', () => {
+ const user = { ...DEFAULT_PROPS.user, email };
+
+ createWrapper({ user });
+
+ expect(findEmail().text()).toBe(email);
+ });
it('should show only bio if work information is not available', () => {
const user = { ...DEFAULT_PROPS.user, bio };