summaryrefslogtreecommitdiffstats
path: root/cypress/e2e/0.setup.cy.js
blob: 2ad548879437e2603486722076f55f3c04ad55f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
const userId = 'janedoe' + Date.now()

describe('Social app setup', function() {
	before(function() {
		cy.nextcloudCreateUser(userId, 'p4ssw0rd')
		cy.login(userId, 'p4ssw0rd')
	})

	it('See the welcome message', function() {
		cy.visit('/apps/social/')
		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')
	})

	it('See the home section in the sidebar', function() {
		cy.get('.app-navigation').contains('Home').click()
		cy.get('.emptycontent').should('be.visible')
	})

	it('See the empty content illustration', function() {
		cy.get('.app-navigation').contains('Direct messages').click()
		cy.get('.emptycontent').should('be.visible').contains('No direct messages found')
		cy.get('.app-navigation').contains('Profile').click()
		cy.get('.emptycontent').should('be.visible').contains('You have not tooted yet')
	})

})