mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Add cypress step to check the editor is cleared
This commit is contained in:
parent
20112bdd9b
commit
3b00a34199
@ -15,4 +15,9 @@ When('I should be able to post a comment', () => {
|
||||
Then('I should see my comment', () => {
|
||||
cy.get('div.comment p')
|
||||
.should('contain', 'This is a comment')
|
||||
})
|
||||
})
|
||||
|
||||
Then('the editor should be cleared', () => {
|
||||
cy.get('.ProseMirror p')
|
||||
.should('have.class', 'is-empty')
|
||||
})
|
||||
|
||||
@ -10,7 +10,8 @@ Feature: Post Comment
|
||||
And I have a user account
|
||||
And I am logged in
|
||||
|
||||
Scenario:
|
||||
Scenario: Comment creation
|
||||
Given I visit "post/bWBjpkTKZp/101-essays"
|
||||
Then I should be able to post a comment
|
||||
And I should see my comment
|
||||
And I should see my comment
|
||||
And the editor should be cleared
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user