feat: Stats popup style tweaks (#8361)

This commit is contained in:
David Luzar 2024-08-11 19:33:44 +02:00 committed by GitHub
parent f7b3befd0a
commit 97981804d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 351 additions and 326 deletions

View file

@ -579,7 +579,23 @@ export class UI {
static queryStats = () => {
return GlobalTestState.renderResult.container.querySelector(
".Stats",
".exc-stats",
) as HTMLElement | null;
};
static queryStatsProperty = (label: string) => {
const elementStats = UI.queryStats()?.querySelector("#elementStats");
expect(elementStats).not.toBeNull();
if (elementStats) {
return (
elementStats?.querySelector(
`.exc-stats__row .drag-input-container[data-testid="${label}"]`,
) || null
);
}
return null;
};
}