Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3426 [Flaky Spec] Address timing issues in enterprise users feature specs #3470

Conversation

kristinalim
Copy link
Member

Address timing issues in enterprise users feature specs.

What? Why?

Closes #3426

What should we test?

Semaphore build should be green.

In the long term, this test should also not fail.

Release notes

  • Address intermittently failing feature tests

Changelog Category: Fixed

@kristinalim kristinalim self-assigned this Feb 11, 2019
@kristinalim kristinalim changed the title Address timing issues in enterprise users feature specs WIP 3426 [Flaky Spec] Address timing issues in enterprise users feature specs Feb 11, 2019
@kristinalim kristinalim changed the title WIP 3426 [Flaky Spec] Address timing issues in enterprise users feature specs 3426 [Flaky Spec] Address timing issues in enterprise users feature specs Feb 11, 2019
click_link "Users"
end

expect(page).to have_selector "table.managers"
Copy link
Contributor

@sauloperez sauloperez Feb 11, 2019

Choose a reason for hiding this comment

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

I wouldn't add this here as we're coupling the actual navigation with an assertion. As a result, in line 133 above we're adding an extra step that we don't need. That being said, I don't think line 101 should need it either. If we have to wait for things to appear on the page, let's find them instead.

Copy link
Contributor

Choose a reason for hiding this comment

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

what do you think @kristinalim ?

Copy link
Member Author

Choose a reason for hiding this comment

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

@sauloperez I moved check for table presence out of the helper method. Build is green, and I moved this back to Code Review.

Copy link
Contributor

@sauloperez sauloperez left a comment

Choose a reason for hiding this comment

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

👌

@sauloperez sauloperez merged commit 0a39178 into openfoodfoundation:master Feb 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants