2023-01-04 14:36:33 +00:00
|
|
|
const userId = 'janedoe' + Date.now()
|
2020-10-01 15:29:37 +00:00
|
|
|
|
2023-03-16 14:41:51 +00:00
|
|
|
describe('Social app setup', function () {
|
|
|
|
before(function () {
|
|
|
|
cy.createRandomUser()
|
|
|
|
.then((user) => {
|
|
|
|
cy.login(user)
|
|
|
|
cy.visit('/apps/social')
|
|
|
|
})
|
2020-10-09 15:36:51 +00:00
|
|
|
})
|
|
|
|
|
2023-03-16 14:41:51 +00:00
|
|
|
it('See the welcome message', function () {
|
2020-10-01 15:29:37 +00:00
|
|
|
cy.get('.social__welcome').should('contain', 'Nextcloud becomes part of the federated social networks!')
|
|
|
|
cy.get('.social__welcome').find('.icon-close').click()
|
|
|
|
cy.get('.social__welcome').should('not.exist')
|
|
|
|
})
|
|
|
|
|
2023-03-16 14:41:51 +00:00
|
|
|
it('See the home section in the sidebar', function () {
|
2020-10-01 15:29:37 +00:00
|
|
|
cy.get('.app-navigation').contains('Home').click()
|
2023-03-16 14:41:51 +00:00
|
|
|
cy.get('.app-social .empty-content').should('be.visible')
|
2020-10-01 15:29:37 +00:00
|
|
|
})
|
|
|
|
|
2023-03-16 14:41:51 +00:00
|
|
|
it('See the empty content illustration', function () {
|
|
|
|
cy.reload()
|
2020-10-01 15:29:37 +00:00
|
|
|
cy.get('.app-navigation').contains('Direct messages').click()
|
2023-03-16 14:41:51 +00:00
|
|
|
cy.get('.app-social .empty-content').should('be.visible').contains('No direct messages found')
|
2020-10-01 15:29:37 +00:00
|
|
|
cy.get('.app-navigation').contains('Profile').click()
|
2023-03-16 14:41:51 +00:00
|
|
|
cy.get('.app-social .empty-content').should('be.visible').contains('You have not tooted yet')
|
2020-10-01 15:29:37 +00:00
|
|
|
})
|
|
|
|
})
|