Skip to content

Fix persistence and timing problems with tests #197

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dcollie2
Copy link
Collaborator

What Changed? And Why Did It Change?

This adds database_cleaner and adds a delay to a test that was running fine on its own but was failing when all tests were run.

This fixes the tests locally for me, but I'm curious whether anyone else was encountering these problems. If not, then perhaps there is something particular to my setup that needs to be fixed.

@dmitrytrager
Copy link
Collaborator

I will try to run full test locally. But I think more important is what we can see during CI run

@@ -43,7 +43,9 @@
context "when sorting" do
it "displays users in the selected order" do
select "By least recently added", from: "search_order"
expect(page).to have_text(/#{admin.email}.+#{martin.email}.+#{rosemary.email}/m)
Capybara.using_wait_time(7) do
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there something that can take 7 seconds to load search results when we have only several users in the DB?

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.

2 participants