Skip to content

Fix that clicking an empty area of the timeline should not switch the…#4416

Merged
julienw merged 1 commit into
firefox-devtools:mainfrom
julienw:fix-seelcting-calltree
Jan 11, 2023
Merged

Fix that clicking an empty area of the timeline should not switch the…#4416
julienw merged 1 commit into
firefox-devtools:mainfrom
julienw:fix-seelcting-calltree

Conversation

@julienw
Copy link
Copy Markdown
Contributor

@julienw julienw commented Jan 10, 2023

… selected panel to the call tree

Fixes #4415

production
deploy preview

STR:

  1. open the link, notice the marker chart is opened.
  2. click an empty space in the activity graph (note: take care that you're clicking on the activity graph lane, as the bug doesn't appear on other lanes such as the empty space in the marker track)

@julienw julienw requested a review from canova January 10, 2023 19:19
expect(getCallNodePath()).toEqual([]);
});

it('when clicking a stack, this selects the call tree panel', function () {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

In #4331 I said that I couldn't find existing tests for the activity graph, looks like I found them in this file after all... so I moved the existing test here and added a new one.

@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 10, 2023

Codecov Report

Base: 88.56% // Head: 88.56% // Increases project coverage by +0.00% 🎉

Coverage data is based on head (8937d19) compared to base (3177b85).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4416   +/-   ##
=======================================
  Coverage   88.56%   88.56%           
=======================================
  Files         282      282           
  Lines       25493    25494    +1     
  Branches     6865     6866    +1     
=======================================
+ Hits        22577    22578    +1     
  Misses       2709     2709           
  Partials      207      207           
Impacted Files Coverage Δ
src/components/timeline/TrackThread.js 98.61% <100.00%> (+0.01%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Copy Markdown
Member

@canova canova left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

@julienw julienw merged commit 6738ef8 into firefox-devtools:main Jan 11, 2023
@julienw julienw mentioned this pull request Jan 11, 2023
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.

Clicking an empty area of the timeline should not switch the selected panel to the call tree

2 participants