mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
9 lines
308 B
JavaScript
9 lines
308 B
JavaScript
import { When } from "@badeball/cypress-cucumber-preprocessor";
|
|
|
|
When("I choose {string} as the title", async title => {
|
|
const lastPost = {}
|
|
lastPost.title = title.replace("\n", " ");
|
|
cy.task('pushValue', { name: 'lastPost', value: lastPost })
|
|
cy.get('input[name="title"]').type(lastPost.title);
|
|
});
|