Fix test in 'NotificationsTable.spec.js' for new 'user-teaser' component

This commit is contained in:
Wolfgang Huß 2020-01-22 13:17:11 +01:00
parent 71cf2a397a
commit e563887022
2 changed files with 3 additions and 3 deletions

View File

@ -152,7 +152,7 @@ describe('NotificationsTable.vue', () => {
})
it('renders me as the triggerer', () => {
const triggererName = thirdRowNotification.find('.username')
const triggererName = thirdRowNotification.find('.userName-for-test')
expect(triggererName.text()).toEqual('myName')
})

View File

@ -20,14 +20,14 @@
<div class="info">
<span class="text">
<span class="slug">{{ userSlug }}</span>
<span v-if="dateTime">{{ userName }}</span>
<span class="userName-for-test" v-if="dateTime">{{ userName }}</span>
</span>
<span v-if="dateTime" class="text">
<base-icon name="clock" />
<hc-relative-date-time :date-time="dateTime" />
<slot name="dateTime"></slot>
</span>
<span v-else class="text">{{ userName }}</span>
<span v-else class="text userName-for-test">{{ userName }}</span>
</div>
</nuxt-link>
</template>