()
| 43 | } |
| 44 | |
| 45 | function isPopular(): boolean { |
| 46 | return ( |
| 47 | countElements('[data-testid="comment-header"]') > 30 |
| 48 | // This element only appears after 6 participants |
| 49 | || looseParseInt($optional('[aria-label*="other participants"]')?.ariaLabel) > 30 |
| 50 | || elementExists('[data-testid="issue-timeline-load-more-count-front"]') |
| 51 | // TODO [2027-01-01]: Drop after the legacy PR view is removed |
| 52 | || countElements('.timeline-comment') > 30 |
| 53 | || countElements('.participant-avatar') > 10 |
| 54 | ); |
| 55 | } |
| 56 | |
| 57 | export function getResolvedText(closingDate: Date): JSX.Element { |
| 58 | const ago = <strong>{twas(closingDate.getTime())}</strong>; |
no test coverage detected