mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2026-01-13 08:24:48 +00:00
8 lines
303 B
JavaScript
8 lines
303 B
JavaScript
import { When } from "cypress-cucumber-preprocessor/steps";
|
|
|
|
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);
|
|
}); |