From 46343c923c9bbf53c95208a1ca5c110279f4ef35 Mon Sep 17 00:00:00 2001 From: mattwr18 Date: Tue, 21 Jan 2020 17:03:50 +0100 Subject: [PATCH] Fix cypress tests after renamed variables --- cypress/integration/common/post.js | 2 +- cypress/integration/common/report.js | 2 +- cypress/integration/common/search.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cypress/integration/common/post.js b/cypress/integration/common/post.js index 833a70f85..4d1856bcc 100644 --- a/cypress/integration/common/post.js +++ b/cypress/integration/common/post.js @@ -27,7 +27,7 @@ Then("I should see my comment", () => { .get(".user-avatar img") .should("have.attr", "src") .and("contain", narratorAvatar) - .get("div p.ds-text span") + .get(".user-teaser > .info > .text") .should("contain", "today at"); }); diff --git a/cypress/integration/common/report.js b/cypress/integration/common/report.js index 4bfc3c240..2e11c1d0d 100644 --- a/cypress/integration/common/report.js +++ b/cypress/integration/common/report.js @@ -63,7 +63,7 @@ When('I click on "Report User" from the content menu in the user info box', () = }) When('I click on the author', () => { - cy.get('.username') + cy.get('.user-teaser') .click() .url().should('include', '/profile/') }) diff --git a/cypress/integration/common/search.js b/cypress/integration/common/search.js index 6320b5ff4..f6589763b 100644 --- a/cypress/integration/common/search.js +++ b/cypress/integration/common/search.js @@ -87,7 +87,7 @@ Then( ); Then("I select a user entry", () => { - cy.get(".searchable-input .user-info") + cy.get(".searchable-input .user-teaser") .first() .trigger("click"); })