mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-12 23:35:52 +00:00
9 lines
310 B
JavaScript
9 lines
310 B
JavaScript
import { Then } from "@badeball/cypress-cucumber-preprocessor";
|
|
|
|
Then("the post was saved successfully", async () => {
|
|
cy.task('getValue', 'lastPost').then(lastPost => {
|
|
cy.get(".base-card > .title").should("contain", lastPost.title);
|
|
cy.get(".content").should("contain", lastPost.content);
|
|
})
|
|
});
|