Fix accept visible images#779
Merged
Merged
Conversation
commit: |
✅ Component tests succeed
|
✅ E2E tests succeed
|
KuznetsovRoman
requested changes
Jul 13, 2026
|
|
||
| return visibleResultIds.flatMap(resultId => { | ||
| return visibleResultIds.flatMap((resultId) => { | ||
| const suitePath = resultsById[resultId].suitePath.join('/'); |
Member
There was a problem hiding this comment.
This .join("/") looks "magic"
expandedTreeNodesById, looking at its name, wants Id as key
We need suiteId
SuiteId can be derived from result like this:
const result = state.tree.results.byId[resultId];
const browser = state.tree.browsers.byId[result.parentId];
const suiteId = browser.parentId;
// const suite = state.tree.suites.byId[suiteId];
Contributor
Author
Member
There was a problem hiding this comment.
A little helper to get "treeNodeId" from result would be nice, so we would call "getTreeNodeId" everywhere we need, without having to remember "its constructed as suitePath.join('/')"
|
|
||
| export const getVisibleImages = createSelector( | ||
| getVisibleBrowserIds, getBrowsers, getResults, getImages, getIsStaticImageAccepterEnabled, getIsGui, | ||
| (state) => state.ui.suitesPage.expandedTreeNodesById, |
Member
There was a problem hiding this comment.
Sinse other arguments are named functions, i think we should pull this (state) => state.ui.suitesPage.expandedTreeNodesById into named function (like getExpandedTreeNodesById)
sonic16x
force-pushed
the
fix-accept-visible
branch
from
July 14, 2026 06:04
cb3d589 to
699dc69
Compare
KuznetsovRoman
approved these changes
Jul 14, 2026
sonic16x
force-pushed
the
fix-accept-visible
branch
from
July 14, 2026 15:03
dc5e1de to
3ff0b98
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Now, if image not expanded (
check 4on screenshot) it will not be accepted