diff --git a/cypress/integration/01-basic-spec.js b/cypress/integration/01-basic-spec.js index 158ee505..7efd9da4 100644 --- a/cypress/integration/01-basic-spec.js +++ b/cypress/integration/01-basic-spec.js @@ -1,6 +1,7 @@ describe('Basic spec', () => { beforeEach(() => { cy.visit('/') + cy.wait(500) }) it('has the correct

', () => { diff --git a/cypress/integration/02-login-spec.js b/cypress/integration/02-login-spec.js index 55232b1c..b993cf7d 100644 --- a/cypress/integration/02-login-spec.js +++ b/cypress/integration/02-login-spec.js @@ -1,6 +1,7 @@ describe('Login spec', () => { beforeEach(() => { cy.visit('/') + cy.wait(500) }) it('Cannot log in to a fake instance', () => { @@ -24,6 +25,7 @@ describe('Login spec', () => { it('Logs out', () => { cy.login('foobar@localhost:3000', 'foobarfoobar') + cy.wait(500) cy.get('nav a[aria-label=Settings]').click() cy.get('a').contains('Instances').click() cy.get('a').contains('localhost:3000').click() diff --git a/cypress/integration/03-basic-timeline-spec.js b/cypress/integration/03-basic-timeline-spec.js index 418766c6..214399a5 100644 --- a/cypress/integration/03-basic-timeline-spec.js +++ b/cypress/integration/03-basic-timeline-spec.js @@ -4,6 +4,7 @@ describe('Basic timeline spec', () => { beforeEach(() => { cy.login('foobar@localhost:3000', 'foobarfoobar') cy.visit('/') + cy.wait(500) }) const homeTimeline = [ diff --git a/cypress/support/commands.js b/cypress/support/commands.js index b2ada548..f1419f42 100644 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -33,8 +33,10 @@ Cypress.Commands.add('login', (email, password) => { }) cy.visit('/settings/instances/add') + cy.wait(500) cy.get('#instanceInput').clear().type('localhost:3000') cy.get('.add-new-instance').submit() + cy.wait(500) cy.url().should('equal', 'http://localhost:3000/auth/sign_in') cy.get('input#user_email').should('exist') cy.get('input#user_password').should('exist')