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:
Matt Rider 2019-05-05 12:26:02 -03:00
parent 1fff9bbc46
commit ad46c2d059
3 changed files with 1 additions and 26 deletions

View File

@ -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)
})

View File

@ -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

View File

@ -79,7 +79,7 @@ export default {
},
handleSubmit() {
this.loading = true
this.loading = false
this.disabled = true
this.$apollo
.mutate({
mutation: gql`