Commit 30157572 authored by Gilang Gumilar's avatar Gilang Gumilar Committed by Miguel Rincon

Migrate '.fa-spinner' to '.spinner' for 'app/.../gpg_badges.js'

parent e36f62ad
...@@ -13,7 +13,8 @@ export default class GpgBadges { ...@@ -13,7 +13,8 @@ export default class GpgBadges {
const badges = $('.js-loading-gpg-badge'); const badges = $('.js-loading-gpg-badge');
badges.html('<i class="fa fa-spinner fa-spin"></i>'); badges.html('<span class="gl-spinner gl-spinner-orange gl-spinner-sm"></span>');
badges.children().attr('aria-label', __('Loading'));
const displayError = () => createFlash(__('An error occurred while loading commit signatures')); const displayError = () => createFlash(__('An error occurred while loading commit signatures'));
......
---
title: Migrate '.fa-spinner' to '.spinner' for 'app/assets/javascripts/gpg_badges.js'
merge_request: 41136
author: Gilang Gumilar
type: changed
...@@ -68,7 +68,7 @@ describe('GpgBadges', () => { ...@@ -68,7 +68,7 @@ describe('GpgBadges', () => {
GpgBadges.fetch() GpgBadges.fetch()
.then(() => { .then(() => {
expect(document.querySelector('.js-loading-gpg-badge:empty')).toBe(null); expect(document.querySelector('.js-loading-gpg-badge:empty')).toBe(null);
const spinners = document.querySelectorAll('.js-loading-gpg-badge i.fa.fa-spinner.fa-spin'); const spinners = document.querySelectorAll('.js-loading-gpg-badge span.gl-spinner');
expect(spinners.length).toBe(1); expect(spinners.length).toBe(1);
done(); done();
......
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