summaryrefslogtreecommitdiffstats
path: root/cypress
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2020-10-09 15:31:20 +0200
committerRobin Appelman <robin@icewind.nl>2020-10-09 15:31:20 +0200
commit304a2556d26a3259152e4dd36574bdd2f4eb093e (patch)
treed4e3c69b8edbb048c131d9e05cc065245addd6ba /cypress
parent4ff65bcf7615e12c6f085dba65a84465c936327f (diff)
cypress fixes
fixes errors caused by paralel changes Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'cypress')
-rw-r--r--cypress/integration/post.spec.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/cypress/integration/post.spec.js b/cypress/integration/post.spec.js
index 1de7688f..3b9f8ee8 100644
--- a/cypress/integration/post.spec.js
+++ b/cypress/integration/post.spec.js
@@ -61,6 +61,7 @@ describe('Create posts', function() {
it('Write a post to @admin', function() {
cy.server()
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('.tribute-container').should('be.visible')
cy.get('.tribute-container ul li:first').contains('admin')
@@ -68,7 +69,7 @@ describe('Create posts', function() {
cy.get('.new-post input[type=submit]')
.click()
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() {
@@ -86,7 +87,7 @@ describe('Create posts', function() {
cy.get('.new-post input[type=submit]')
.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')
})