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

Inconsistency between UI and backing data in Reports page #1166

Open
shankarsridhar opened this issue Mar 23, 2020 · 2 comments
Open

Inconsistency between UI and backing data in Reports page #1166

shankarsridhar opened this issue Mar 23, 2020 · 2 comments

Comments

@shankarsridhar
Copy link
Contributor

TL;DR:

  • Display logic for Approve button seems to be inconsistent with the backing data for the UI.
  • Filtering is not working unless page is refreshed.

After backstop tests are run, and backstop report page is opened (by running ember backstop-report), the Approve button, if present, comes back after switching between the passed and failed tabs.

Just to be clear, here is what I am referring to as the passed and failed tabs:
image

Expectation:

  • The Approve button should not be present for tests that have already been approved.
  • The test that was approved (by clicking on Approve button) should be filtered as passed.

What actually happens:

  • The Approve button is present for tests that have already been approved.
  • Filtering tests bases on passed/failed seems to be not working. Tests that have been approved are still displayed in the failed category.

If the backstop report page is refreshed, then all the UI state seems to be updated/rendered correctly as per the backing data.

Here is a screen capture to illustrate the problem:
Approve-button-bug.mov.zip

@shankarsridhar shankarsridhar changed the title Switching between passed and failed tabs breaks UI state of the Approved/Approve button Switching between passed and failed tabs breaks UI state Mar 23, 2020
@shankarsridhar shankarsridhar changed the title Switching between passed and failed tabs breaks UI state Inconsistency between UI and backing data in Reports page Mar 23, 2020
@garris
Copy link
Owner

garris commented Mar 26, 2020

Great catch @shankarsridhar!

@1276stella is this because we are not saving approved state? (my guess is we simply update the DOM)

1276stella pushed a commit to 1276stella/BackstopJS that referenced this issue Apr 9, 2020
1276stella pushed a commit to 1276stella/BackstopJS that referenced this issue Apr 9, 2020
1276stella pushed a commit to 1276stella/BackstopJS that referenced this issue Apr 9, 2020
@1276stella
Copy link
Contributor

@garris a PR is opened to fix this issue. Please see the detailed explanations in the PR. #1175 Thank you!

garris pushed a commit that referenced this issue Apr 9, 2020
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

No branches or pull requests

3 participants