mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Remove cypress test
- it is not part of the scope of this ticket, and therefore should be extracted and dealt with separately
This commit is contained in:
parent
1fff9bbc46
commit
ad46c2d059
@ -23,17 +23,3 @@ Then('the editor should be cleared', () => {
|
||||
cy.get('.ProseMirror p')
|
||||
.should('have.class', 'is-empty')
|
||||
})
|
||||
|
||||
Then('I rapidly double click on the {string} button', text => {
|
||||
cy.get('button').contains(text).click().click()
|
||||
})
|
||||
|
||||
Then('I should see my comment once', () => {
|
||||
cy.get('div.comment p')
|
||||
.should('contain', 'Human Connection rocks')
|
||||
.and('have.length', 1)
|
||||
.get('.ds-avatar img')
|
||||
.should('have.attr', 'src')
|
||||
.and('contain', narratorAvatar)
|
||||
.and('have.length', 1)
|
||||
})
|
||||
@ -20,14 +20,3 @@ Feature: Post Comment
|
||||
Then my comment should be successfully created
|
||||
And I should see my comment
|
||||
And the editor should be cleared
|
||||
|
||||
Scenario: Prevention of multiple comment creation
|
||||
Given I visit "post/bWBjpkTKZp/101-essays"
|
||||
And I type in the following text:
|
||||
"""
|
||||
Human Connection rocks
|
||||
"""
|
||||
And I rapidly double click on the "Comment" button
|
||||
Then my comment should be successfully created
|
||||
And I should see my comment once
|
||||
And the editor should be cleared
|
||||
|
||||
@ -79,7 +79,7 @@ export default {
|
||||
},
|
||||
handleSubmit() {
|
||||
this.loading = true
|
||||
this.loading = false
|
||||
this.disabled = true
|
||||
this.$apollo
|
||||
.mutate({
|
||||
mutation: gql`
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user