Commit 1e41440b authored by Filipa Lacerda's avatar Filipa Lacerda

Fix broken tests

parent e93214bc
......@@ -12,7 +12,7 @@
notes_path: notes_url(view: 'full_data'),
last_fetched_at: Time.now.to_i,
issue_data: serialize_issuable(@issue),
current_user_data: UserSerializer.new.represent(current_user).to_json }}
current_user_data: UserSerializer.new.represent(current_user).to_json } }
- content_for :page_specific_javascripts do
= webpack_bundle_tag 'common_vue'
= webpack_bundle_tag 'notes'
......
......@@ -39,7 +39,8 @@ describe('issue_note_awards_list component', () => {
});
it('should render awarded emojis', () => {
expect(vm.$el.querySelectorAll('.js-awards-block button').length).toEqual(awardsMock.length);
expect(vm.$el.querySelector('.js-awards-block button [data-name="flag_tz"]')).toBeDefined();
expect(vm.$el.querySelector('.js-awards-block button [data-name="cartwheel_tone3"]')).toBeDefined();
});
it('should be possible to remove awareded emoji', () => {
......
......@@ -40,6 +40,7 @@ describe('issue_note_body component', () => {
});
it('should render awards list', () => {
expect(vm.$el.querySelectorAll('.js-awards-block button').length).toEqual(note.award_emoji.length);
expect(vm.$el.querySelector('.js-awards-block button [data-name="baseball"]')).toBeDefined();
expect(vm.$el.querySelector('.js-awards-block button [data-name="bath_tone3"]')).toBeDefined();
});
});
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment