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() diff --git a/src/components/TimelineList.vue b/src/components/TimelineList.vue index 9e86912a..1dae5df8 100644 --- a/src/components/TimelineList.vue +++ b/src/components/TimelineList.vue @@ -33,7 +33,7 @@
- +