You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

HotspotReviewHistory-test.tsx.snap 14KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`should render correctly: default 1`] = `
  3. <Fragment>
  4. <ul>
  5. <li
  6. className="padded-top padded-bottom"
  7. key="0"
  8. >
  9. <div
  10. className="display-flex-center"
  11. >
  12. <withAppStateContext(Avatar)
  13. className="little-spacer-right"
  14. name="Luke Skywalker"
  15. size={20}
  16. />
  17. <strong>
  18. Luke Skywalker
  19. </strong>
  20. <span
  21. className="little-spacer-left little-spacer-right"
  22. >
  23. -
  24. </span>
  25. <DateTimeFormatter
  26. date="2018-10-12"
  27. />
  28. </div>
  29. <div
  30. className="spacer-top"
  31. >
  32. <IssueChangelogDiff
  33. diff={
  34. Object {
  35. "key": "assign",
  36. "newValue": "darth.vader",
  37. "oldValue": "luke.skywalker",
  38. }
  39. }
  40. key="0"
  41. />
  42. </div>
  43. </li>
  44. <li
  45. className="padded-top padded-bottom bordered-top"
  46. key="1"
  47. >
  48. <div
  49. className="display-flex-center"
  50. >
  51. <withAppStateContext(Avatar)
  52. className="little-spacer-right"
  53. name="Luke Skywalker"
  54. size={20}
  55. />
  56. <strong>
  57. Luke Skywalker
  58. </strong>
  59. <span
  60. className="little-spacer-left little-spacer-right"
  61. >
  62. -
  63. </span>
  64. <DateTimeFormatter
  65. date="2018-10-01"
  66. />
  67. </div>
  68. <div
  69. className="spacer-top"
  70. >
  71. <IssueChangelogDiff
  72. diff={
  73. Object {
  74. "key": "assign",
  75. "newValue": "darth.vader",
  76. "oldValue": "luke.skywalker",
  77. }
  78. }
  79. key="0"
  80. />
  81. </div>
  82. </li>
  83. <li
  84. className="padded-top padded-bottom bordered-top"
  85. key="2"
  86. >
  87. <div
  88. className="display-flex-center"
  89. >
  90. <withAppStateContext(Avatar)
  91. className="little-spacer-right"
  92. name="John Doe"
  93. size={20}
  94. />
  95. <strong>
  96. John Doe
  97. </strong>
  98. <span
  99. className="little-spacer-left"
  100. >
  101. hotspots.review_history.comment_added
  102. </span>
  103. <span
  104. className="little-spacer-left little-spacer-right"
  105. >
  106. -
  107. </span>
  108. <DateTimeFormatter
  109. date="2018-09-10"
  110. />
  111. </div>
  112. <div
  113. className="spacer-top display-flex-space-between"
  114. >
  115. <div
  116. className="markdown"
  117. dangerouslySetInnerHTML={
  118. Object {
  119. "__html": "<strong>TEST</strong>",
  120. }
  121. }
  122. />
  123. </div>
  124. </li>
  125. <li
  126. className="padded-top padded-bottom bordered-top"
  127. key="3"
  128. >
  129. <div
  130. className="display-flex-center"
  131. >
  132. <withAppStateContext(Avatar)
  133. className="little-spacer-right"
  134. name="John Doe"
  135. size={20}
  136. />
  137. <strong>
  138. John Doe
  139. </strong>
  140. <span
  141. className="little-spacer-left"
  142. >
  143. hotspots.review_history.comment_added
  144. </span>
  145. <span
  146. className="little-spacer-left little-spacer-right"
  147. >
  148. -
  149. </span>
  150. <DateTimeFormatter
  151. date="2018-09-10"
  152. />
  153. </div>
  154. <div
  155. className="spacer-top display-flex-space-between"
  156. >
  157. <div
  158. className="markdown"
  159. dangerouslySetInnerHTML={
  160. Object {
  161. "__html": "<strong>TEST</strong>",
  162. }
  163. }
  164. />
  165. </div>
  166. </li>
  167. <li
  168. className="padded-top padded-bottom bordered-top"
  169. key="4"
  170. >
  171. <div
  172. className="display-flex-center"
  173. >
  174. <withAppStateContext(Avatar)
  175. className="little-spacer-right"
  176. name="John Doe"
  177. size={20}
  178. />
  179. <strong>
  180. user.x_deleted.John Doe
  181. </strong>
  182. <span
  183. className="little-spacer-left"
  184. >
  185. hotspots.review_history.comment_added
  186. </span>
  187. <span
  188. className="little-spacer-left little-spacer-right"
  189. >
  190. -
  191. </span>
  192. <DateTimeFormatter
  193. date="2018-09-10"
  194. />
  195. </div>
  196. <div
  197. className="spacer-top display-flex-space-between"
  198. >
  199. <div
  200. className="markdown"
  201. dangerouslySetInnerHTML={
  202. Object {
  203. "__html": "<strong>TEST</strong>",
  204. }
  205. }
  206. />
  207. </div>
  208. </li>
  209. </ul>
  210. <ButtonLink
  211. className="spacer-top"
  212. onClick={[MockFunction]}
  213. >
  214. show_all
  215. </ButtonLink>
  216. </Fragment>
  217. `;
  218. exports[`should render correctly: delete comment overlay 1`] = `
  219. <div
  220. className="padded abs-width-150"
  221. >
  222. <p>
  223. issue.comment.delete_confirm_message
  224. </p>
  225. <Button
  226. className="button-red big-spacer-top pull-right"
  227. onClick={[Function]}
  228. >
  229. delete
  230. </Button>
  231. </div>
  232. `;
  233. exports[`should render correctly: edit comment overlay 1`] = `
  234. <DropdownOverlay
  235. placement="bottom-right"
  236. >
  237. <HotspotCommentPopup
  238. markdownComment="*TEST*"
  239. onCancelEdit={[Function]}
  240. onCommentEditSubmit={[Function]}
  241. />
  242. </DropdownOverlay>
  243. `;
  244. exports[`should render correctly: show full list 1`] = `
  245. <Fragment>
  246. <ul>
  247. <li
  248. className="padded-top padded-bottom"
  249. key="0"
  250. >
  251. <div
  252. className="display-flex-center"
  253. >
  254. <withAppStateContext(Avatar)
  255. className="little-spacer-right"
  256. name="Luke Skywalker"
  257. size={20}
  258. />
  259. <strong>
  260. Luke Skywalker
  261. </strong>
  262. <span
  263. className="little-spacer-left little-spacer-right"
  264. >
  265. -
  266. </span>
  267. <DateTimeFormatter
  268. date="2018-10-12"
  269. />
  270. </div>
  271. <div
  272. className="spacer-top"
  273. >
  274. <IssueChangelogDiff
  275. diff={
  276. Object {
  277. "key": "assign",
  278. "newValue": "darth.vader",
  279. "oldValue": "luke.skywalker",
  280. }
  281. }
  282. key="0"
  283. />
  284. </div>
  285. </li>
  286. <li
  287. className="padded-top padded-bottom bordered-top"
  288. key="1"
  289. >
  290. <div
  291. className="display-flex-center"
  292. >
  293. <withAppStateContext(Avatar)
  294. className="little-spacer-right"
  295. name="Luke Skywalker"
  296. size={20}
  297. />
  298. <strong>
  299. Luke Skywalker
  300. </strong>
  301. <span
  302. className="little-spacer-left little-spacer-right"
  303. >
  304. -
  305. </span>
  306. <DateTimeFormatter
  307. date="2018-10-01"
  308. />
  309. </div>
  310. <div
  311. className="spacer-top"
  312. >
  313. <IssueChangelogDiff
  314. diff={
  315. Object {
  316. "key": "assign",
  317. "newValue": "darth.vader",
  318. "oldValue": "luke.skywalker",
  319. }
  320. }
  321. key="0"
  322. />
  323. </div>
  324. </li>
  325. <li
  326. className="padded-top padded-bottom bordered-top"
  327. key="2"
  328. >
  329. <div
  330. className="display-flex-center"
  331. >
  332. <withAppStateContext(Avatar)
  333. className="little-spacer-right"
  334. name="John Doe"
  335. size={20}
  336. />
  337. <strong>
  338. John Doe
  339. </strong>
  340. <span
  341. className="little-spacer-left"
  342. >
  343. hotspots.review_history.comment_added
  344. </span>
  345. <span
  346. className="little-spacer-left little-spacer-right"
  347. >
  348. -
  349. </span>
  350. <DateTimeFormatter
  351. date="2018-09-10"
  352. />
  353. </div>
  354. <div
  355. className="spacer-top display-flex-space-between"
  356. >
  357. <div
  358. className="markdown"
  359. dangerouslySetInnerHTML={
  360. Object {
  361. "__html": "<strong>TEST</strong>",
  362. }
  363. }
  364. />
  365. </div>
  366. </li>
  367. <li
  368. className="padded-top padded-bottom bordered-top"
  369. key="3"
  370. >
  371. <div
  372. className="display-flex-center"
  373. >
  374. <withAppStateContext(Avatar)
  375. className="little-spacer-right"
  376. name="John Doe"
  377. size={20}
  378. />
  379. <strong>
  380. John Doe
  381. </strong>
  382. <span
  383. className="little-spacer-left"
  384. >
  385. hotspots.review_history.comment_added
  386. </span>
  387. <span
  388. className="little-spacer-left little-spacer-right"
  389. >
  390. -
  391. </span>
  392. <DateTimeFormatter
  393. date="2018-09-10"
  394. />
  395. </div>
  396. <div
  397. className="spacer-top display-flex-space-between"
  398. >
  399. <div
  400. className="markdown"
  401. dangerouslySetInnerHTML={
  402. Object {
  403. "__html": "<strong>TEST</strong>",
  404. }
  405. }
  406. />
  407. </div>
  408. </li>
  409. <li
  410. className="padded-top padded-bottom bordered-top"
  411. key="4"
  412. >
  413. <div
  414. className="display-flex-center"
  415. >
  416. <withAppStateContext(Avatar)
  417. className="little-spacer-right"
  418. name="John Doe"
  419. size={20}
  420. />
  421. <strong>
  422. user.x_deleted.John Doe
  423. </strong>
  424. <span
  425. className="little-spacer-left"
  426. >
  427. hotspots.review_history.comment_added
  428. </span>
  429. <span
  430. className="little-spacer-left little-spacer-right"
  431. >
  432. -
  433. </span>
  434. <DateTimeFormatter
  435. date="2018-09-10"
  436. />
  437. </div>
  438. <div
  439. className="spacer-top display-flex-space-between"
  440. >
  441. <div
  442. className="markdown"
  443. dangerouslySetInnerHTML={
  444. Object {
  445. "__html": "<strong>TEST</strong>",
  446. }
  447. }
  448. />
  449. </div>
  450. </li>
  451. <li
  452. className="padded-top padded-bottom bordered-top"
  453. key="5"
  454. >
  455. <div
  456. className="display-flex-center"
  457. >
  458. <withAppStateContext(Avatar)
  459. className="little-spacer-right"
  460. name="john.doe"
  461. size={20}
  462. />
  463. <strong>
  464. john.doe
  465. </strong>
  466. <span
  467. className="little-spacer-left"
  468. >
  469. hotspots.review_history.comment_added
  470. </span>
  471. <span
  472. className="little-spacer-left little-spacer-right"
  473. >
  474. -
  475. </span>
  476. <DateTimeFormatter
  477. date="2018-09-10"
  478. />
  479. </div>
  480. <div
  481. className="spacer-top display-flex-space-between"
  482. >
  483. <div
  484. className="markdown"
  485. dangerouslySetInnerHTML={
  486. Object {
  487. "__html": "<strong>TEST</strong>",
  488. }
  489. }
  490. />
  491. </div>
  492. </li>
  493. <li
  494. className="padded-top padded-bottom bordered-top"
  495. key="6"
  496. >
  497. <div
  498. className="display-flex-center"
  499. >
  500. <withAppStateContext(Avatar)
  501. className="little-spacer-right"
  502. name="John Doe"
  503. size={20}
  504. />
  505. <strong>
  506. John Doe
  507. </strong>
  508. <span
  509. className="little-spacer-left"
  510. >
  511. hotspots.review_history.comment_added
  512. </span>
  513. <span
  514. className="little-spacer-left little-spacer-right"
  515. >
  516. -
  517. </span>
  518. <DateTimeFormatter
  519. date="2018-09-10"
  520. />
  521. </div>
  522. <div
  523. className="spacer-top display-flex-space-between"
  524. >
  525. <div
  526. className="markdown"
  527. dangerouslySetInnerHTML={
  528. Object {
  529. "__html": "<strong>TEST</strong>",
  530. }
  531. }
  532. />
  533. <div>
  534. <div
  535. className="dropdown"
  536. >
  537. <Toggler
  538. onRequestClose={[Function]}
  539. open={false}
  540. overlay={
  541. <DropdownOverlay
  542. placement="bottom-right"
  543. >
  544. <HotspotCommentPopup
  545. markdownComment="*TEST*"
  546. onCancelEdit={[Function]}
  547. onCommentEditSubmit={[Function]}
  548. />
  549. </DropdownOverlay>
  550. }
  551. >
  552. <EditButton
  553. className="button-small"
  554. onClick={[Function]}
  555. />
  556. </Toggler>
  557. </div>
  558. <Dropdown
  559. onOpen={[Function]}
  560. overlay={
  561. <div
  562. className="padded abs-width-150"
  563. >
  564. <p>
  565. issue.comment.delete_confirm_message
  566. </p>
  567. <Button
  568. className="button-red big-spacer-top pull-right"
  569. onClick={[Function]}
  570. >
  571. delete
  572. </Button>
  573. </div>
  574. }
  575. overlayPlacement="bottom-right"
  576. >
  577. <DeleteButton
  578. className="button-small"
  579. />
  580. </Dropdown>
  581. </div>
  582. </div>
  583. </li>
  584. <li
  585. className="padded-top padded-bottom bordered-top"
  586. key="7"
  587. >
  588. <div
  589. className="display-flex-center"
  590. >
  591. <withAppStateContext(Avatar)
  592. className="little-spacer-right"
  593. name="John Doe"
  594. size={20}
  595. />
  596. <strong>
  597. John Doe
  598. </strong>
  599. <span
  600. className="little-spacer-left"
  601. >
  602. hotspots.review_history.created
  603. </span>
  604. <span
  605. className="little-spacer-left little-spacer-right"
  606. >
  607. -
  608. </span>
  609. <DateTimeFormatter
  610. date="2018-09-01"
  611. />
  612. </div>
  613. </li>
  614. </ul>
  615. </Fragment>
  616. `;