Added some React IDs for playwright e2e tests (#13265)

### What problem does this PR solve?

Necessary ids for implementing the new testing suite with playwright for
UI

### Type of change

- [x] Other (please describe): Testing IDs

Co-authored-by: Liu An <asiro@qq.com>
This commit is contained in:
Idriss Sbaaoui
2026-02-28 15:13:47 +08:00
committed by GitHub
parent 1027916bfe
commit e62552d482
37 changed files with 365 additions and 218 deletions

View File

@@ -79,8 +79,9 @@ export const EmptyAppCard = (props: {
isSearch?: boolean;
size?: 'small' | 'large';
children?: React.ReactNode;
testId?: string;
}) => {
const { type, showIcon, className, isSearch, children } = props;
const { type, showIcon, className, isSearch, children, testId } = props;
let defaultClass = '';
let style = {};
switch (props.size) {
@@ -97,7 +98,7 @@ export const EmptyAppCard = (props: {
break;
}
return (
<div onClick={isSearch ? undefined : props.onClick}>
<div onClick={isSearch ? undefined : props.onClick} data-testid={testId}>
<EmptyCard
icon={showIcon ? EmptyCardData[type].icon : undefined}
title={