Add data-cy for sidepanel header (#5511)

This commit is contained in:
Midhun Kumar E 2023-02-09 10:18:24 +05:30 committed by GitHub
parent f6e23fbd65
commit b50bba97c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,7 +10,9 @@ const PanelHeader = ({ children, settings, title }) => {
<div className="panel-header-container row">
{settings && <div className="col-auto d-flex px-1">{settings}</div>}
<div className={`col ${settings && 'px-0'}`}>
<p className="text-muted m-0 fw-500">{title}</p>
<p className="text-muted m-0 fw-500" data-cy={`label-${String(title).toLowerCase()}`}>
{title}
</p>
</div>
<div className="col px-1">{children}</div>
</div>