diff --git a/cypress/integration/Moderation.ReportContent/I_click_on_the_author.js b/cypress/integration/Moderation.ReportContent/I_click_on_the_author.js index 3a6600ff6..fad21e1a6 100644 --- a/cypress/integration/Moderation.ReportContent/I_click_on_the_author.js +++ b/cypress/integration/Moderation.ReportContent/I_click_on_the_author.js @@ -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/') }) \ No newline at end of file diff --git a/webapp/components/UserTeaser/UserTeaser.vue b/webapp/components/UserTeaser/UserTeaser.vue index 96507672f..c7d3df131 100644 --- a/webapp/components/UserTeaser/UserTeaser.vue +++ b/webapp/components/UserTeaser/UserTeaser.vue @@ -5,7 +5,7 @@