Matt Rider bc35ab835f Modify cypress tests, attempt to get them to work
- they are still not triggering a change in form.content, therefore sending an empty string and either failing the back end validations, or if removed creating a comment with an empty string
2019-04-24 20:56:57 -03:00

17 lines
425 B
JavaScript

import { When, Then } from 'cypress-cucumber-preprocessor/steps'
Then('my comment should be successfully created', () => {
cy.get('.iziToast-message')
.contains('Comment Submitted')
})
Then('I should see my comment', () => {
cy.get('div.comment p')
.should('contain', 'Human Connection rocks')
})
Then('the editor should be cleared', () => {
cy.get('.ProseMirror p')
.should('have.class', 'is-empty')
})