mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-12 23:35:52 +00:00
14 lines
466 B
JavaScript
14 lines
466 B
JavaScript
import { Then } from "@badeball/cypress-cucumber-preprocessor";
|
|
|
|
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(".profile-avatar img")
|
|
.should("have.attr", "src")
|
|
.and("contain", 'https://') // some url
|
|
.get(".user-teaser > .info > .text")
|
|
.should("contain", "today at");
|
|
});
|