diff options
author | Louis Chemineau <louis@chmn.me> | 2023-06-28 13:56:24 +0200 |
---|---|---|
committer | Louis Chemineau <louis@chmn.me> | 2023-06-28 14:05:55 +0200 |
commit | 9b62944d562eb08788e2e1589c3e1625d2fd0267 (patch) | |
tree | 66188e153177a1c47b927d151ced981f9273961b | |
parent | f8c0f24cf871667e36364839f876760780b5b52c (diff) |
Remove delay in e2e tests
Signed-off-by: Louis Chemineau <louis@chmn.me>
-rw-r--r-- | cypress/e2e/post.cy.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cypress/e2e/post.cy.ts b/cypress/e2e/post.cy.ts index dfd32167..bea305fa 100644 --- a/cypress/e2e/post.cy.ts +++ b/cypress/e2e/post.cy.ts @@ -67,10 +67,10 @@ describe('Create posts', () => { it('Write a post to @alice', () => { cy.intercept({ times: 1, method: 'POST', url: '/index.php/apps/social/api/v1/statuses' }).as('postMessage') cy.intercept({ times: 1, method: 'GET', url: '/index.php/apps/social/api/v1/global/accounts/search' }) - cy.get('.new-post').find('[contenteditable]').type(`@${alice.userId}`, { delay: 500 }) + cy.get('.new-post').find('[contenteditable]').type(`@${alice.userId}`) cy.get('.tribute-container').should('be.visible') cy.get('.tribute-container ul li:first').contains(alice.userId) - cy.get('.new-post').find('[contenteditable]').type('{enter} Hello there', { delay: 100, force: true }) + cy.get('.new-post').find('[contenteditable]').type('{enter} Hello there') cy.get('.new-post button[type=submit]').click() cy.wait('@postMessage') cy.get('.social__timeline .timeline-entry:first-child').should('contain', `@${alice.userId}`) @@ -79,7 +79,7 @@ describe('Create posts', () => { it('Opens the menu and shows that followers is selected by default', () => { cy.intercept({ times: 1, method: 'POST', url: '/index.php/apps/social/api/v1/statuses' }).as('postMessage') cy.intercept({ times: 1, method: 'GET', url: '/index.php/apps/social/api/v1/global/accounts/search' }) - cy.get('.new-post').find('[contenteditable]').click({ force: true }).type(`@${alice.userId}{enter} Hello world`, { delay: 200, force: true }) + cy.get('.new-post').find('[contenteditable]').type(`@${alice.userId}{enter} Hello world`) cy.wait(500) cy.get('.new-post button[type=submit]').should('not.be.disabled') const visibilityButton = cy.get('.new-post .options > .action-item > div > button') |