cy.get(".mx_FilePanel").within(() => {
...
cy.get(".mx_RoomView_MessageList").percySnapshotElement("File tiles on FilePanel");
});
What happened instead?
Based on this result, it seems that Percy takes the snapshot of mx_RoomView_MessageList on the main timeline, not on mx_FilePanel. I am not sure if this would be expected, but I assume it is confusing.
Steps to reproduce
get(…).percyElementSnapshot(…)
insidewithin()
to have Percy take snapshotsOutcome
What did you expect?
I expected that
percyElementSmapshot()
would respect the element specified withget()
chained withwithin()
.For example, the command below of https://github.com/matrix-org/matrix-react-sdk/pull/10400 would have Percy take a snapshot of
.mx_FilePanel .mx_RoomView_MessageList
:What happened instead?
Based on this result, it seems that Percy takes the snapshot of
mx_RoomView_MessageList
on the main timeline, not onmx_FilePanel
. I am not sure if this would be expected, but I assume it is confusing.Operating system
No response
Browser information
No response
URL for webapp
No response
Application version
No response
Homeserver
No response
Will you send logs?
No