Skip to content

Commit d849d33

Browse files
committed
test: drop clearing the screenreader text
This was fixed in PatternFly 6.2.0. Related: patternfly/patternfly-react#11704
1 parent eaff0f3 commit d849d33

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

test/common/test-functions.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,9 @@ window.ph_text = function(sel) {
111111
if (el.textContent === undefined)
112112
throw new Error(sel + " can not have text");
113113

114-
// HACK: https://github.com/patternfly/patternfly-react/issues/11678
115-
const el_copy = el.cloneNode(true);
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 = '' });
118-
119114
// 0xa0 is a non-breakable space, which is a rendering detail of Chromium
120115
// and awkward to handle in tests; turn it into normal spaces
121-
return el_copy.textContent.replaceAll("\xa0", " ");
116+
return el.textContent.replaceAll("\xa0", " ");
122117
};
123118

124119
window.ph_attr = function(sel, attr) {

0 commit comments

Comments
 (0)