Skip to content

Commit

Permalink
Merge pull request #202 from CSSSR/feat/COM-3591
Browse files Browse the repository at this point in the history
feat(footer): COM-3591 Add testid in DoubleBottom
  • Loading branch information
ArtyomResh authored May 26, 2021
2 parents 75a175f + b07e54d commit a4aeabd
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,15 @@ const Addresses: React.FC<Props> = ({
type="regular"
size="s"
dangerouslySetInnerHTML={{ __html: title }}
data-testid={`Footer:text:address.title.${id}`}
/>

<Text
className="address"
dangerouslySetInnerHTML={{ __html: address }}
size={textSize}
type="regular"
data-testid={`Footer:text:address.${id}`}
/>

{phone && (
Expand All @@ -89,6 +91,7 @@ const Addresses: React.FC<Props> = ({
href={`tel:${phone}`}
size={textSize}
type="list"
data-testid={`Footer:link:address.phone.${id}`}
/>
)}

Expand All @@ -98,11 +101,17 @@ const Addresses: React.FC<Props> = ({
dangerouslySetInnerHTML={{ __html: status }}
type="regular"
size={textSize}
data-testid={`Footer:text:address.status.${id}`}
/>
)}

{!isIe11 && (
<Text className="time" type="regular" size={textSize}>
<Text
className="time"
type="regular"
size={textSize}
data-testid={`Footer:text:address.time.${id}`}
>
{time.toLocaleTimeString([], {
timeZone,
hour: '2-digit',
Expand Down

0 comments on commit a4aeabd

Please sign in to comment.