Fix Cypress test 'I_click_on_the_author.js'

This commit is contained in:
Wolfgang Huß 2022-10-22 08:41:27 +02:00
parent 9773a7b4ba
commit 1421973a9f
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
import { When } from "cypress-cucumber-preprocessor/steps";
When('I click on the author', () => {
cy.get('.user-teaser')
cy.get('[data-test="avatarUserLink"]')
.click()
.url().should('include', '/profile/')
})

View File

@ -5,7 +5,7 @@
</div>
<div v-else :class="[{ 'disabled-content': user.disabled }]" placement="top-start">
<div :class="['user-teaser']">
<nuxt-link :to="userLink">
<nuxt-link :to="userLink" data-test="avatarUserLink">
<profile-avatar v-if="showAvatar" :profile="user" size="small" />
</nuxt-link>
<div class="info flex-direction-column">