Ocelot-Social/cypress/integration/Post.Comment/I_comment_the_following.js
Ulf Gebhardt f0a112ec1c
post.comment feature
registration.todo
lots of unifications
2021-04-14 20:36:13 +02:00

7 lines
267 B
JavaScript

import { When } from "cypress-cucumber-preprocessor/steps";
When("I comment the following:", async text => {
const comment = text.replace("\n", " ")
cy.task('pushValue', { name: 'lastComment', value: comment })
cy.get(".editor .ProseMirror").type(comment);
});