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

In Results Tree, Test History always display content of first selected test #392

Open
mirekdlugosz opened this issue Sep 22, 2022 · 0 comments
Labels
bug Something isn't working frontend

Comments

@mirekdlugosz
Copy link

I usually review my test runs in Results Tree view. After selecting the test, there's tabbed interface on the right. After clicking "Test history", I can see selected test runs history. So far so good.

But after selecting another test in tree view, "Test history" still displays content for the first selected test. I can't force it to refresh - switching tabs or clicking "Refresh results" doesn't change what is displayed.

In dev tools, I can see that selecting "Test history" for the first time makes two HTTP requests:

  • /api/widget/result-aggregator?group_field=result&additional_filters=test_id%3Dtest_granularity_dropdown%2Cstart_time%3E2022-09-14T17%3A05%3A44.492Z%2Cenv%3Dstage
  • /api/result?0=test_id%5Beq%5D%3Dtest_granularity_dropdown&1=env%5Beq%5D%3Dstage&2=result%5Beq%5D%3Dpassed&filter=test_id%3Dtest_granularity_dropdown&filter=env%3Dstage&filter=result%3Dpassed&pageSize=1&page=1&estimate=true

Switching test makes only request to /api/artifact?resultId=52ec142c-57ae-41c0-ba3a-4f8fb115bbac.

Clicking "Refresh results" makes HTTP requests to correct endpoints, but test_id param is not updated - so I do get refreshed results, but for test that is no longer selected:

  • /api/widget/result-aggregator?group_field=result&additional_filters=test_id%3Dtest_granularity_dropdown%2Cstart_time%3E2022-09-14T17%3A05%3A44.492Z%2Cenv%3Dstage
  • /api/result?0=result%5Bin%5D%3Dpassed%3Bskipped%3Bfailed%3Berror%3Bxpassed%3Bxfailed&1=test_id%5Beq%5D%3Dtest_granularity_dropdown&2=start_time%5Bgt%5D%3D2022-09-14T17%3A05%3A44.492Z&3=env%5Beq%5D%3Dstage&filter=result*passed%3Bskipped%3Bfailed%3Berror%3Bxpassed%3Bxfailed&filter=test_id%3Dtest_granularity_dropdown&filter=start_time%3E2022-09-14T17%3A05%3A44.492Z&filter=env%3Dstage&pageSize=10&page=1&estimate=true
@john-dupuy john-dupuy added bug Something isn't working frontend labels Sep 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working frontend
Projects
None yet
Development

No branches or pull requests

2 participants