mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
14 lines
413 B
JavaScript
14 lines
413 B
JavaScript
import { Given } from "cypress-cucumber-preprocessor/steps";
|
|
import narrator from "../data/narrator"
|
|
|
|
Given("I previously created a post", () => {
|
|
const lastPost = {
|
|
title: "previously created post",
|
|
content: "with some content",
|
|
};
|
|
cy.factory()
|
|
.build("post", lastPost, {
|
|
authorId: narrator.id
|
|
});
|
|
cy.task('pushValue', { name: 'lastPost', value: lastPost })
|
|
}); |