fix: navbar avatar height, background colors (#42076)
* fix: navbar avatar height * fix: prevent avatar background change when hovered or focused
This commit is contained in:
committed by
GitHub
parent
e1c00138a9
commit
94d4b2f553
@ -6,7 +6,8 @@ const selectors = {
|
||||
navigationLinks: '.nav-list',
|
||||
avatarContainer: '.avatar-container',
|
||||
defaultAvatar: '.avatar-container',
|
||||
menuButton: '.toggle-button-nav'
|
||||
menuButton: '.toggle-button-nav',
|
||||
avatarImage: '.avatar-container .avatar'
|
||||
};
|
||||
|
||||
let appHasStarted;
|
||||
@ -99,4 +100,10 @@ describe('Navbar', () => {
|
||||
cy.get(selectors.avatarContainer).should('have.class', 'default-border');
|
||||
cy.get(selectors.defaultAvatar).should('exist');
|
||||
});
|
||||
|
||||
it('Should have a profile image with dimensions that are <= 31px', () => {
|
||||
cy.login();
|
||||
cy.get(selectors.avatarImage).invoke('width').should('lte', 31);
|
||||
cy.get(selectors.avatarImage).invoke('height').should('lte', 31);
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user