diff options
author | Robin Appelman <robin@icewind.nl> | 2020-10-15 15:21:01 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2020-10-15 15:21:01 +0200 |
commit | 638b79ca25a296a6cfe1da4aa1c2bf130e5f6cb5 (patch) | |
tree | 2c383b8765be732fde43ecd5102ffd63dd6d6707 /cypress/integration | |
parent | 19dfe49661fcee7e29f6b88e37cd71b19e0297b2 (diff) |
remove empty content after a post has been added
Fixes #1070
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'cypress/integration')
-rw-r--r-- | cypress/integration/post.spec.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cypress/integration/post.spec.js b/cypress/integration/post.spec.js index 5257b91f..10216eb7 100644 --- a/cypress/integration/post.spec.js +++ b/cypress/integration/post.spec.js @@ -41,6 +41,10 @@ describe('Create posts', function() { Cypress.Cookies.preserveOnce('nc_username', 'nc_token', 'nc_session_id', 'oc_sessionPassphrase'); }) + it('See the empty content illustration', function() { + cy.get('.emptycontent').should('be.visible').contains('No posts found') + }) + it('Write a post to followers', function() { cy.visit('/apps/social/') cy.server() @@ -56,6 +60,10 @@ describe('Create posts', function() { cy.get('.social__timeline div.timeline-entry:first-child').should('contain', 'Hello world') }) + it('No longer see the empty content illustration', function() { + cy.get('.emptycontent').should('not.be.visible') + }) + it('Write a post to followers with shift enter', function() { cy.visit('/apps/social/') cy.server() |