From 1421973a9fd76345749f9f05fe2962f6aeeb8aae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Sat, 22 Oct 2022 08:41:27 +0200 Subject: [PATCH] Fix Cypress test 'I_click_on_the_author.js' --- .../Moderation.ReportContent/I_click_on_the_author.js | 2 +- webapp/components/UserTeaser/UserTeaser.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 @@
- +