kopia lustrzana https://github.com/nextcloud/social
cypress fixes
fixes errors caused by paralel changes Signed-off-by: Robin Appelman <robin@icewind.nl>pull/1053/head
rodzic
4ff65bcf76
commit
304a2556d2
|
@ -61,6 +61,7 @@ describe('Create posts', function() {
|
||||||
it('Write a post to @admin', function() {
|
it('Write a post to @admin', function() {
|
||||||
cy.server()
|
cy.server()
|
||||||
cy.route('POST', '/index.php/apps/social/api/v1/post').as('postMessage')
|
cy.route('POST', '/index.php/apps/social/api/v1/post').as('postMessage')
|
||||||
|
cy.route('GET', '/index.php/apps/social/api/v1/global/accounts/search')
|
||||||
cy.get('.new-post').find('[contenteditable]').type('@adm', {delay: 500})
|
cy.get('.new-post').find('[contenteditable]').type('@adm', {delay: 500})
|
||||||
cy.get('.tribute-container').should('be.visible')
|
cy.get('.tribute-container').should('be.visible')
|
||||||
cy.get('.tribute-container ul li:first').contains('admin')
|
cy.get('.tribute-container ul li:first').contains('admin')
|
||||||
|
@ -68,7 +69,7 @@ describe('Create posts', function() {
|
||||||
cy.get('.new-post input[type=submit]')
|
cy.get('.new-post input[type=submit]')
|
||||||
.click()
|
.click()
|
||||||
cy.wait('@postMessage')
|
cy.wait('@postMessage')
|
||||||
cy.get('.social__timeline div.timeline-entry:first-child').should('contain', 'admin@localhost')
|
cy.get('.social__timeline div.timeline-entry:first-child').should('contain', '@admin')
|
||||||
})
|
})
|
||||||
|
|
||||||
it('Opens the menu and shows that followers is selected by default', function() {
|
it('Opens the menu and shows that followers is selected by default', function() {
|
||||||
|
@ -86,7 +87,7 @@ describe('Create posts', function() {
|
||||||
|
|
||||||
cy.get('.new-post input[type=submit]')
|
cy.get('.new-post input[type=submit]')
|
||||||
.click()
|
.click()
|
||||||
cy.get('.social__timeline div.timeline-entry:first-child').should('contain', 'Hello there').should('contain', 'admin@localhost')
|
cy.get('.social__timeline div.timeline-entry:first-child').should('contain', 'Hello there').should('contain', '@admin')
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue