Rename class 'user-avatar' to 'profile-avatar'

This commit is contained in:
Wolfgang Huß 2022-08-29 18:09:51 +02:00
parent 2fc84f9c36
commit 077a63aca7
8 changed files with 10 additions and 10 deletions

View File

@ -5,7 +5,7 @@ Then("I should see my comment", () => {
.should("contain", "Ocelot.social rocks")
.get(".user-teaser span.slug")
.should("contain", "@peter-pan") // specific enough
.get(".user-avatar img")
.get(".profile-avatar img")
.should("have.attr", "src")
.and("contain", 'https://') // some url
.get(".user-teaser > .info > .text")

View File

@ -44,7 +44,7 @@ describe('AvatarMenu.vue', () => {
it('renders the UserAvatar component', () => {
wrapper.find('.avatar-menu-trigger').trigger('click')
expect(wrapper.find('.user-avatar').exists()).toBe(true)
expect(wrapper.find('.profile-avatar').exists()).toBe(true)
})
describe('given a userName', () => {

View File

@ -130,7 +130,7 @@ export default {
align-items: center;
padding-left: $space-xx-small;
> .user-avatar {
> .profile-avatar {
margin-right: $space-xx-small;
}
}

View File

@ -88,7 +88,7 @@ export default {
display: flex;
flex-wrap: nowrap;
> .user-avatar {
> .profile-avatar {
flex-shrink: 0;
}

View File

@ -1,10 +1,10 @@
import { mount } from '@vue/test-utils'
import UserAvatar from './UserAvatar.vue'
import UserAvatar from './UserAvatar'
import BaseIcon from '~/components/_new/generic/BaseIcon/BaseIcon'
const localVue = global.localVue
describe('UserAvatar.vue', () => {
describe('UserAvatar', () => {
let propsData, wrapper
beforeEach(() => {
propsData = {}

View File

@ -1,5 +1,5 @@
<template>
<div :class="['user-avatar', size && `--${this.size}`, !isAvatar && '--no-image']">
<div :class="['profile-avatar', size && `--${this.size}`, !isAvatar && '--no-image']">
<!-- '--no-image' is neccessary, because otherwise we still have a little unwanted boarder araund the image for images with white backgrounds -->
<span class="initials">{{ userInitials }}</span>
<base-icon v-if="isAnonymous" name="eye-slash" />
@ -48,7 +48,7 @@ export default {
</script>
<style lang="scss">
.user-avatar {
.profile-avatar {
position: relative;
height: $size-avatar-base;
width: $size-avatar-base;

View File

@ -427,7 +427,7 @@ export default {
</script>
<style lang="scss">
.profile-page-avatar.user-avatar {
.profile-page-avatar.profile-avatar {
margin: auto;
margin-top: -60px;
}

View File

@ -417,7 +417,7 @@ export default {
</script>
<style lang="scss">
.profile-page-avatar.user-avatar {
.profile-page-avatar.profile-avatar {
margin: auto;
margin-top: -60px;
}