mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Update test cases to match style changes
This commit is contained in:
parent
fa1cf7b7a3
commit
6e54a13ba2
@ -81,18 +81,18 @@ define([
|
|||||||
|
|
||||||
|
|
||||||
span.addClass('text-gray');
|
span.addClass('text-gray');
|
||||||
span.removeClass('font-white');
|
span.removeClass('text-fg-inverse');
|
||||||
icon.addClass('text-gray');
|
icon.addClass('text-gray');
|
||||||
icon.removeClass('font-white');
|
icon.removeClass('text-fg-inverse');
|
||||||
},
|
},
|
||||||
|
|
||||||
applyEnabledStyle: function() {
|
applyEnabledStyle: function() {
|
||||||
var element = this.$el;
|
var element = this.$el;
|
||||||
var span = this.$el.find('span');
|
var span = this.$el.find('span');
|
||||||
|
|
||||||
span.addClass('font-white');
|
span.addClass('text-fg-inverse');
|
||||||
span.removeClass('text-gray');
|
span.removeClass('text-gray');
|
||||||
element.find('i').addClass('font-white');
|
element.find('i').addClass('text-fg-inverse');
|
||||||
element.find('i').removeClass('text-gray');
|
element.find('i').removeClass('text-gray');
|
||||||
|
|
||||||
span.on('mouseover',() => {
|
span.on('mouseover',() => {
|
||||||
|
@ -194,7 +194,7 @@
|
|||||||
/* Typography */
|
/* Typography */
|
||||||
|
|
||||||
|
|
||||||
.font-white {
|
.text-fg-inverse {
|
||||||
color: $color-fg-inverse;
|
color: $color-fg-inverse;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ define([
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('should change the text color to gray', function () {
|
it('should change the text color to gray', function () {
|
||||||
expect(menuItem.$el.find('span').hasClass('font-gray-4')).toBeTruthy();
|
expect(menuItem.$el.find('span').hasClass('text-gray')).toBeTruthy();
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('when becomes enabled', function () {
|
describe('when becomes enabled', function () {
|
||||||
@ -33,8 +33,8 @@ define([
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('should change the text color to white', function () {
|
it('should change the text color to white', function () {
|
||||||
expect(menuItem.$el.find('span').hasClass('font-gray-4')).toBeFalsy();
|
expect(menuItem.$el.find('span').hasClass('text-gray')).toBeFalsy();
|
||||||
expect(menuItem.$el.find('span').hasClass('font-white')).toBeTruthy();
|
expect(menuItem.$el.find('span').hasClass('text-fg-inverse')).toBeTruthy();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@ -46,7 +46,7 @@ define([
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('should change the text color to white', function () {
|
it('should change the text color to white', function () {
|
||||||
expect(menuItem.$el.find('span').hasClass('font-white')).toBeTruthy();
|
expect(menuItem.$el.find('span').hasClass('text-fg-inverse')).toBeTruthy();
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('when becomes disabled', function () {
|
describe('when becomes disabled', function () {
|
||||||
@ -56,8 +56,8 @@ define([
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('should change the text color to gray', function () {
|
it('should change the text color to gray', function () {
|
||||||
expect(menuItem.$el.find('span').hasClass('font-gray-4')).toBeTruthy();
|
expect(menuItem.$el.find('span').hasClass('text-gray')).toBeTruthy();
|
||||||
expect(menuItem.$el.find('span').hasClass('font-white')).toBeFalsy();
|
expect(menuItem.$el.find('span').hasClass('text-fg-inverse')).toBeFalsy();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user