Skip to content

Commit d2206b1

Browse files
committed
FIXUP:test: HACK: Ignore .pf-v6-screen-reader sub-elements for ph_text()
Makes it so it only applies to HelperTextItems
1 parent 40ec7bc commit d2206b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/common/test-functions.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ window.ph_text = function(sel) {
113113

114114
// HACK: https://github.com/patternfly/patternfly-react/issues/11678
115115
const el_copy = el.cloneNode(true);
116-
// find and clear .pf-v6-screen-reader subelements
117-
el_copy.querySelectorAll('.pf-v6-screen-reader').forEach(el => { el.textContent = '' });
116+
// find and clear .pf-v6-screen-reader subelements for HelperText
117+
el_copy.querySelectorAll('.pf-v6-c-helper-text__item-text > .pf-v6-screen-reader').forEach(el => { el.textContent = '' });
118118

119119
// 0xa0 is a non-breakable space, which is a rendering detail of Chromium
120120
// and awkward to handle in tests; turn it into normal spaces

0 commit comments

Comments
 (0)