Skip to content
This repository was archived by the owner on Oct 11, 2022. It is now read-only.

Conversation

@tadasant
Copy link
Contributor

Tiny PR: was looking through the E2E tests and this one kept failing locally. If it wasn't failing the CI build previously, I imagine it's due to a difference in machine specs.

Problem was that the cy.get('[data-cy="join-community-button"]').should('be.disabled'); was getting invoked too late. Sequence that occurred:

  1. Test clicks button, invokes async request
  2. Button becomes disabled
  3. Async request returns, button becomes enabled
  4. Test begins waiting for button to become disabled

Sometimes happened on the first .should('be.disabled'), sometimes on the second. With the changes, haven't experienced any failures.

Screenshot of failure prior to change:

flaky test

Status

  • WIP
  • Ready for review
  • Needs testing

Deploy after merge (delete what needn't be deployed)
N/A

Copy link
Contributor

@mxstbr mxstbr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ohh thank you so much for digging into that! ❤️

@mxstbr mxstbr merged commit 2ae2e68 into withspectrum:alpha May 29, 2018
@tadasant tadasant deleted the e2e-tests-community-view branch May 29, 2018 14:22
@mxstbr mxstbr mentioned this pull request May 29, 2018
3 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants