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

Check the comment is present after commenting #3596

Merged
merged 1 commit into from
Jun 6, 2019

Conversation

javierm
Copy link
Member

@javierm javierm commented Jun 6, 2019

Background

We've got a bug which causes the admin description not to appear immediately after commenting, due to the admin_layout variable being false when we add a comment using an AJAX request.

So the test reloaded the page to check the admin description was there. However, sometimes reloading the page is faster than the AJAX request, and so the comment is not there yet.

Objectives

  • Don't make two requests at the same time while testing

Notes

A proper solution would be to display the admin description or name right after the comment is added.

@javierm javierm self-assigned this Jun 6, 2019
We've got a bug which causes the admin description not to appear
immediately after commenting, due to the `admin_layout` variable being
false when we add a comment using an AJAX request.

So the test reloaded the page to check the admin description was there.
However, sometimes reloading the page is faster than the AJAX request,
and so the comment is not there yet.

By checking the results of the AJAX request before reloading the page,
the test passes.

A proper solution would be to display the admin description or name
right after the comment is added.
@javierm javierm changed the title Don't check admin description after commenting Check the comment is present after commenting Jun 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants