Ocelot-Social/cypress/integration/Post.Comment/I_should_see_my_comment.js
Ulf Gebhardt ddcbeb5b6a
post.comment feature
registration.todo
lots of unifications
2021-04-12 13:24:51 +02:00

13 lines
458 B
JavaScript

import { Then } from "cypress-cucumber-preprocessor/steps";
Then("I should see my comment", () => {
cy.get("article.comment-card p")
.should("contain", "Ocelot.social rocks")
.get(".user-teaser span.slug")
.should("contain", "@peter-pan") // specific enough
.get(".user-avatar img")
.should("have.attr", "src")
.and("contain", 'https://') // some url
.get(".user-teaser > .info > .text")
.should("contain", "today at");
});