mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
- Cypress test is now passing as a result Co-authored-by: Tirokk <wolle.huss@pjannto.com>
17 lines
425 B
JavaScript
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')
|
|
})
|