• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

SAP / ui5-webcomponents-react / 13699228520

06 Mar 2025 12:58PM CUT coverage: 35.453% (-52.0%) from 87.468%
13699228520

Pull #7047

github

web-flow
Merge 9c10efb9f into 6ababe123
Pull Request #7047: fix(ObjectStatus): screen readers announce "button" only once

802 of 3893 branches covered (20.6%)

1 of 1 new or added line in 1 file covered. (100.0%)

3043 existing lines in 86 files now uncovered.

2074 of 5850 relevant lines covered (35.45%)

529.26 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

40.0
/packages/main/src/components/ObjectPage/ObjectPageUtils.ts
1
import type { ReactElement } from 'react';
2
import { isValidElement } from 'react';
3
import { safeGetChildrenArray } from '../../internal/safeGetChildrenArray.js';
4
import type { ObjectPageSectionPropTypes } from '../ObjectPageSection/index.js';
5

6
export const getSectionById = (sections, id) => {
181✔
UNCOV
7
  return safeGetChildrenArray(sections).find((objectPageSection) => {
×
UNCOV
8
    return (
×
9
      isValidElement(objectPageSection) &&
×
10
      (objectPageSection as ReactElement<ObjectPageSectionPropTypes>).props?.id === id
11
    );
12
  });
13
};
14

15
export const getSectionElementById = (objectPage: HTMLDivElement, isSubSection: boolean, id: string | undefined) => {
181✔
UNCOV
16
  return objectPage?.querySelector<HTMLElement>(
×
17
    `#${isSubSection ? 'ObjectPageSubSection' : 'ObjectPageSection'}-${CSS.escape(id)}`
×
18
  );
19
};
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc