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

Don't use confirm dialog in admin homepage form #4023

Merged
merged 1 commit into from
May 26, 2020

Conversation

javierm
Copy link
Member

@javierm javierm commented May 25, 2020

References

Objectives

  • Improve the usability of the form to edit feeds in the homepage
  • Fix an incompatibility with tests testing that form and Chrome 83

Notes

These tests were failing with Chrome 83, probably because we use confirm_dialog and then we use visit without checking the page in between.

In theory we shouldn't need to check the page in between because the request generated by confirm_dialog is a synchronous one and so visit isn't executed after the previous request has finished, but apparently this behavior has changed in Chrome 83.

We could add an expectation before executing the visit method, but that wouldn't improve the usability of the application.

@javierm javierm added the UX label May 25, 2020
@javierm javierm self-assigned this May 25, 2020
@javierm javierm marked this pull request as draft May 25, 2020 16:25
@javierm javierm added this to Doing in Consul Democracy May 25, 2020
Base automatically changed from webdrivers to master May 25, 2020 17:27
In this case the confirmation dialog isn't really necessary since the
action to enable/disable the setting can easily be undone.

Furthermore, these tests were failing with Chrome 83, probably because
we use `confirm_dialog` and then we use `visit` without checking the
page in between.

In theory we shouldn't need to check the page in between because the
request generated by `confirm_dialog` is a synchronous one and so
`visit` isn't executed after the previous request has finished, but
apparently this behavior has changed in Chrome 83.

We could add an expectation before executing the `visit` method, but
that wouldn't improve the usability of the application.
@javierm javierm marked this pull request as ready for review May 25, 2020 17:32
@javierm javierm moved this from Doing to Reviewing in Consul Democracy May 25, 2020
Consul Democracy automation moved this from Reviewing to Testing May 26, 2020
Copy link
Member

@Senen Senen left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@javierm javierm merged commit f929108 into master May 26, 2020
Consul Democracy automation moved this from Testing to Release 1.2.0 May 26, 2020
@javierm javierm deleted the homepage_confirm_dialog branch May 26, 2020 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants