Skip to content

Commit

Permalink
use nativeID instead of testID
Browse files Browse the repository at this point in the history
  • Loading branch information
tienifr committed Feb 5, 2024
1 parent b84ad32 commit 99a9c36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function NextStepEmailRenderer({tnode}: NextStepEmailRendererProps) {

return (
<Text
testID="email-with-break-opportunities"
nativeID="email-with-break-opportunities"
style={[styles.breakWord, styles.textLabelSupporting, styles.textStrong]}
>
{tnode.data}
Expand Down
2 changes: 1 addition & 1 deletion src/libs/SelectionScraper/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const replaceNodes = (dom: Node, isChildOfEditorElement: boolean): Node => {
// Encoding HTML chars '< >' in the text, because any HTML will be removed in stripHTML method.
if (dom.type.toString() === 'text' && dom instanceof DataNode) {
data = Str.htmlEncode(dom.data);
if (dom.parent instanceof Element && dom.parent?.attribs?.[tagAttribute] === 'email-with-break-opportunities') {
if (dom.parent instanceof Element && dom.parent?.attribs?.id === 'email-with-break-opportunities') {
data = data.replaceAll('\u200b', '');
}
} else if (dom instanceof Element) {
Expand Down

0 comments on commit 99a9c36

Please sign in to comment.