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.

ProjectInformationRenderer-test.tsx.snap 30KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`should handle missing quality profiles and quality gates 1`] = `
  3. <Fragment>
  4. <div>
  5. <h2
  6. className="big-padded bordered-bottom"
  7. >
  8. project.info.title
  9. </h2>
  10. </div>
  11. <div
  12. className="overflow-y-auto"
  13. >
  14. <div
  15. className="big-padded bordered-bottom"
  16. >
  17. <div
  18. className="display-flex-center"
  19. >
  20. <h3
  21. className="spacer-right"
  22. >
  23. project.info.description
  24. </h3>
  25. </div>
  26. <MetaTags
  27. component={
  28. Object {
  29. "breadcrumbs": Array [],
  30. "key": "my-project",
  31. "name": "MyProject",
  32. "qualifier": "TRK",
  33. "qualityGate": undefined,
  34. "qualityProfiles": undefined,
  35. "tags": Array [],
  36. }
  37. }
  38. onComponentChange={[MockFunction]}
  39. />
  40. </div>
  41. <div
  42. className="big-padded bordered-bottom it__project-loc-value"
  43. >
  44. <MetaSize
  45. component={
  46. Object {
  47. "breadcrumbs": Array [],
  48. "key": "my-project",
  49. "name": "MyProject",
  50. "qualifier": "TRK",
  51. "qualityGate": undefined,
  52. "qualityProfiles": undefined,
  53. "tags": Array [],
  54. }
  55. }
  56. measures={Array []}
  57. />
  58. </div>
  59. <MetaLinks
  60. component={
  61. Object {
  62. "breadcrumbs": Array [],
  63. "key": "my-project",
  64. "name": "MyProject",
  65. "qualifier": "TRK",
  66. "qualityGate": undefined,
  67. "qualityProfiles": undefined,
  68. "tags": Array [],
  69. }
  70. }
  71. />
  72. <div
  73. className="big-padded bordered-bottom"
  74. >
  75. <MetaKey
  76. componentKey="my-project"
  77. qualifier="TRK"
  78. />
  79. </div>
  80. <Memo(DrawerLink)
  81. label="overview.badges.get_badge.TRK"
  82. onPageChange={[MockFunction]}
  83. to={1}
  84. />
  85. <Memo(DrawerLink)
  86. label="project.info.to_notifications"
  87. onPageChange={[MockFunction]}
  88. to={2}
  89. />
  90. <div
  91. className="big-padded bordered-bottom"
  92. >
  93. <ModalButton
  94. modal={[Function]}
  95. >
  96. <Component />
  97. </ModalButton>
  98. </div>
  99. </div>
  100. </Fragment>
  101. `;
  102. exports[`should render a private project correctly 1`] = `
  103. <Fragment>
  104. <div>
  105. <h2
  106. className="big-padded bordered-bottom"
  107. >
  108. project.info.title
  109. </h2>
  110. </div>
  111. <div
  112. className="overflow-y-auto"
  113. >
  114. <div
  115. className="big-padded bordered-bottom"
  116. >
  117. <div
  118. className="display-flex-center"
  119. >
  120. <h3
  121. className="spacer-right"
  122. >
  123. project.info.description
  124. </h3>
  125. <PrivacyBadgeContainer
  126. qualifier="TRK"
  127. visibility="private"
  128. />
  129. </div>
  130. <MetaTags
  131. component={
  132. Object {
  133. "breadcrumbs": Array [],
  134. "key": "my-project",
  135. "name": "MyProject",
  136. "qualifier": "TRK",
  137. "qualityGate": Object {
  138. "isDefault": true,
  139. "key": "30",
  140. "name": "Sonar way",
  141. },
  142. "qualityProfiles": Array [
  143. Object {
  144. "deleted": false,
  145. "key": "my-qp",
  146. "language": "ts",
  147. "name": "Sonar way",
  148. },
  149. ],
  150. "tags": Array [],
  151. "visibility": "private",
  152. }
  153. }
  154. onComponentChange={[MockFunction]}
  155. />
  156. </div>
  157. <div
  158. className="big-padded bordered-bottom it__project-loc-value"
  159. >
  160. <MetaSize
  161. component={
  162. Object {
  163. "breadcrumbs": Array [],
  164. "key": "my-project",
  165. "name": "MyProject",
  166. "qualifier": "TRK",
  167. "qualityGate": Object {
  168. "isDefault": true,
  169. "key": "30",
  170. "name": "Sonar way",
  171. },
  172. "qualityProfiles": Array [
  173. Object {
  174. "deleted": false,
  175. "key": "my-qp",
  176. "language": "ts",
  177. "name": "Sonar way",
  178. },
  179. ],
  180. "tags": Array [],
  181. "visibility": "private",
  182. }
  183. }
  184. measures={Array []}
  185. />
  186. </div>
  187. <div
  188. className="big-padded bordered-bottom"
  189. >
  190. <MetaQualityGate
  191. qualityGate={
  192. Object {
  193. "isDefault": true,
  194. "key": "30",
  195. "name": "Sonar way",
  196. }
  197. }
  198. />
  199. <withLanguagesContext(MetaQualityProfiles)
  200. headerClassName="big-spacer-top"
  201. profiles={
  202. Array [
  203. Object {
  204. "deleted": false,
  205. "key": "my-qp",
  206. "language": "ts",
  207. "name": "Sonar way",
  208. },
  209. ]
  210. }
  211. />
  212. </div>
  213. <MetaLinks
  214. component={
  215. Object {
  216. "breadcrumbs": Array [],
  217. "key": "my-project",
  218. "name": "MyProject",
  219. "qualifier": "TRK",
  220. "qualityGate": Object {
  221. "isDefault": true,
  222. "key": "30",
  223. "name": "Sonar way",
  224. },
  225. "qualityProfiles": Array [
  226. Object {
  227. "deleted": false,
  228. "key": "my-qp",
  229. "language": "ts",
  230. "name": "Sonar way",
  231. },
  232. ],
  233. "tags": Array [],
  234. "visibility": "private",
  235. }
  236. }
  237. />
  238. <div
  239. className="big-padded bordered-bottom"
  240. >
  241. <MetaKey
  242. componentKey="my-project"
  243. qualifier="TRK"
  244. />
  245. </div>
  246. <Memo(DrawerLink)
  247. label="overview.badges.get_badge.TRK"
  248. onPageChange={[MockFunction]}
  249. to={1}
  250. />
  251. <Memo(DrawerLink)
  252. label="project.info.to_notifications"
  253. onPageChange={[MockFunction]}
  254. to={2}
  255. />
  256. <div
  257. className="big-padded bordered-bottom"
  258. >
  259. <ModalButton
  260. modal={[Function]}
  261. >
  262. <Component />
  263. </ModalButton>
  264. </div>
  265. </div>
  266. </Fragment>
  267. `;
  268. exports[`should render an app correctly: default 1`] = `
  269. <Fragment>
  270. <div>
  271. <h2
  272. className="big-padded bordered-bottom"
  273. >
  274. application.info.title
  275. </h2>
  276. </div>
  277. <div
  278. className="overflow-y-auto"
  279. >
  280. <div
  281. className="big-padded bordered-bottom"
  282. >
  283. <div
  284. className="display-flex-center"
  285. >
  286. <h3
  287. className="spacer-right"
  288. >
  289. project.info.description
  290. </h3>
  291. </div>
  292. <MetaTags
  293. component={
  294. Object {
  295. "breadcrumbs": Array [],
  296. "key": "my-project",
  297. "name": "MyProject",
  298. "qualifier": "APP",
  299. "qualityGate": Object {
  300. "isDefault": true,
  301. "key": "30",
  302. "name": "Sonar way",
  303. },
  304. "qualityProfiles": Array [
  305. Object {
  306. "deleted": false,
  307. "key": "my-qp",
  308. "language": "ts",
  309. "name": "Sonar way",
  310. },
  311. ],
  312. "tags": Array [],
  313. }
  314. }
  315. onComponentChange={[MockFunction]}
  316. />
  317. </div>
  318. <div
  319. className="big-padded bordered-bottom it__project-loc-value"
  320. >
  321. <MetaSize
  322. component={
  323. Object {
  324. "breadcrumbs": Array [],
  325. "key": "my-project",
  326. "name": "MyProject",
  327. "qualifier": "APP",
  328. "qualityGate": Object {
  329. "isDefault": true,
  330. "key": "30",
  331. "name": "Sonar way",
  332. },
  333. "qualityProfiles": Array [
  334. Object {
  335. "deleted": false,
  336. "key": "my-qp",
  337. "language": "ts",
  338. "name": "Sonar way",
  339. },
  340. ],
  341. "tags": Array [],
  342. }
  343. }
  344. measures={Array []}
  345. />
  346. </div>
  347. <div
  348. className="big-padded bordered-bottom"
  349. >
  350. <MetaKey
  351. componentKey="my-project"
  352. qualifier="APP"
  353. />
  354. </div>
  355. <Memo(DrawerLink)
  356. label="overview.badges.get_badge.APP"
  357. onPageChange={[MockFunction]}
  358. to={1}
  359. />
  360. <Memo(DrawerLink)
  361. label="project.info.to_notifications"
  362. onPageChange={[MockFunction]}
  363. to={2}
  364. />
  365. </div>
  366. </Fragment>
  367. `;
  368. exports[`should render app correctly when regulatoryReportFeatureEnabled is false 1`] = `
  369. <Fragment>
  370. <div>
  371. <h2
  372. className="big-padded bordered-bottom"
  373. >
  374. project.info.title
  375. </h2>
  376. </div>
  377. <div
  378. className="overflow-y-auto"
  379. >
  380. <div
  381. className="big-padded bordered-bottom"
  382. >
  383. <div
  384. className="display-flex-center"
  385. >
  386. <h3
  387. className="spacer-right"
  388. >
  389. project.info.description
  390. </h3>
  391. <PrivacyBadgeContainer
  392. qualifier="TRK"
  393. visibility="public"
  394. />
  395. </div>
  396. <MetaTags
  397. component={
  398. Object {
  399. "breadcrumbs": Array [],
  400. "key": "my-project",
  401. "name": "MyProject",
  402. "qualifier": "TRK",
  403. "qualityGate": Object {
  404. "isDefault": true,
  405. "key": "30",
  406. "name": "Sonar way",
  407. },
  408. "qualityProfiles": Array [
  409. Object {
  410. "deleted": false,
  411. "key": "my-qp",
  412. "language": "ts",
  413. "name": "Sonar way",
  414. },
  415. ],
  416. "tags": Array [],
  417. "visibility": "public",
  418. }
  419. }
  420. onComponentChange={[MockFunction]}
  421. />
  422. </div>
  423. <div
  424. className="big-padded bordered-bottom it__project-loc-value"
  425. >
  426. <MetaSize
  427. component={
  428. Object {
  429. "breadcrumbs": Array [],
  430. "key": "my-project",
  431. "name": "MyProject",
  432. "qualifier": "TRK",
  433. "qualityGate": Object {
  434. "isDefault": true,
  435. "key": "30",
  436. "name": "Sonar way",
  437. },
  438. "qualityProfiles": Array [
  439. Object {
  440. "deleted": false,
  441. "key": "my-qp",
  442. "language": "ts",
  443. "name": "Sonar way",
  444. },
  445. ],
  446. "tags": Array [],
  447. "visibility": "public",
  448. }
  449. }
  450. measures={Array []}
  451. />
  452. </div>
  453. <div
  454. className="big-padded bordered-bottom"
  455. >
  456. <MetaQualityGate
  457. qualityGate={
  458. Object {
  459. "isDefault": true,
  460. "key": "30",
  461. "name": "Sonar way",
  462. }
  463. }
  464. />
  465. <withLanguagesContext(MetaQualityProfiles)
  466. headerClassName="big-spacer-top"
  467. profiles={
  468. Array [
  469. Object {
  470. "deleted": false,
  471. "key": "my-qp",
  472. "language": "ts",
  473. "name": "Sonar way",
  474. },
  475. ]
  476. }
  477. />
  478. </div>
  479. <MetaLinks
  480. component={
  481. Object {
  482. "breadcrumbs": Array [],
  483. "key": "my-project",
  484. "name": "MyProject",
  485. "qualifier": "TRK",
  486. "qualityGate": Object {
  487. "isDefault": true,
  488. "key": "30",
  489. "name": "Sonar way",
  490. },
  491. "qualityProfiles": Array [
  492. Object {
  493. "deleted": false,
  494. "key": "my-qp",
  495. "language": "ts",
  496. "name": "Sonar way",
  497. },
  498. ],
  499. "tags": Array [],
  500. "visibility": "public",
  501. }
  502. }
  503. />
  504. <div
  505. className="big-padded bordered-bottom"
  506. >
  507. <MetaKey
  508. componentKey="my-project"
  509. qualifier="TRK"
  510. />
  511. </div>
  512. <Memo(DrawerLink)
  513. label="overview.badges.get_badge.TRK"
  514. onPageChange={[MockFunction]}
  515. to={1}
  516. />
  517. <Memo(DrawerLink)
  518. label="project.info.to_notifications"
  519. onPageChange={[MockFunction]}
  520. to={2}
  521. />
  522. </div>
  523. </Fragment>
  524. `;
  525. exports[`should render correctly: default 1`] = `
  526. <Fragment>
  527. <div>
  528. <h2
  529. className="big-padded bordered-bottom"
  530. >
  531. project.info.title
  532. </h2>
  533. </div>
  534. <div
  535. className="overflow-y-auto"
  536. >
  537. <div
  538. className="big-padded bordered-bottom"
  539. >
  540. <div
  541. className="display-flex-center"
  542. >
  543. <h3
  544. className="spacer-right"
  545. >
  546. project.info.description
  547. </h3>
  548. <PrivacyBadgeContainer
  549. qualifier="TRK"
  550. visibility="public"
  551. />
  552. </div>
  553. <MetaTags
  554. component={
  555. Object {
  556. "breadcrumbs": Array [],
  557. "key": "my-project",
  558. "name": "MyProject",
  559. "qualifier": "TRK",
  560. "qualityGate": Object {
  561. "isDefault": true,
  562. "key": "30",
  563. "name": "Sonar way",
  564. },
  565. "qualityProfiles": Array [
  566. Object {
  567. "deleted": false,
  568. "key": "my-qp",
  569. "language": "ts",
  570. "name": "Sonar way",
  571. },
  572. ],
  573. "tags": Array [],
  574. "visibility": "public",
  575. }
  576. }
  577. onComponentChange={[MockFunction]}
  578. />
  579. </div>
  580. <div
  581. className="big-padded bordered-bottom it__project-loc-value"
  582. >
  583. <MetaSize
  584. component={
  585. Object {
  586. "breadcrumbs": Array [],
  587. "key": "my-project",
  588. "name": "MyProject",
  589. "qualifier": "TRK",
  590. "qualityGate": Object {
  591. "isDefault": true,
  592. "key": "30",
  593. "name": "Sonar way",
  594. },
  595. "qualityProfiles": Array [
  596. Object {
  597. "deleted": false,
  598. "key": "my-qp",
  599. "language": "ts",
  600. "name": "Sonar way",
  601. },
  602. ],
  603. "tags": Array [],
  604. "visibility": "public",
  605. }
  606. }
  607. measures={Array []}
  608. />
  609. </div>
  610. <div
  611. className="big-padded bordered-bottom"
  612. >
  613. <MetaQualityGate
  614. qualityGate={
  615. Object {
  616. "isDefault": true,
  617. "key": "30",
  618. "name": "Sonar way",
  619. }
  620. }
  621. />
  622. <withLanguagesContext(MetaQualityProfiles)
  623. headerClassName="big-spacer-top"
  624. profiles={
  625. Array [
  626. Object {
  627. "deleted": false,
  628. "key": "my-qp",
  629. "language": "ts",
  630. "name": "Sonar way",
  631. },
  632. ]
  633. }
  634. />
  635. </div>
  636. <MetaLinks
  637. component={
  638. Object {
  639. "breadcrumbs": Array [],
  640. "key": "my-project",
  641. "name": "MyProject",
  642. "qualifier": "TRK",
  643. "qualityGate": Object {
  644. "isDefault": true,
  645. "key": "30",
  646. "name": "Sonar way",
  647. },
  648. "qualityProfiles": Array [
  649. Object {
  650. "deleted": false,
  651. "key": "my-qp",
  652. "language": "ts",
  653. "name": "Sonar way",
  654. },
  655. ],
  656. "tags": Array [],
  657. "visibility": "public",
  658. }
  659. }
  660. />
  661. <div
  662. className="big-padded bordered-bottom"
  663. >
  664. <MetaKey
  665. componentKey="my-project"
  666. qualifier="TRK"
  667. />
  668. </div>
  669. <Memo(DrawerLink)
  670. label="overview.badges.get_badge.TRK"
  671. onPageChange={[MockFunction]}
  672. to={1}
  673. />
  674. <Memo(DrawerLink)
  675. label="project.info.to_notifications"
  676. onPageChange={[MockFunction]}
  677. to={2}
  678. />
  679. <div
  680. className="big-padded bordered-bottom"
  681. >
  682. <ModalButton
  683. modal={[Function]}
  684. >
  685. <Component />
  686. </ModalButton>
  687. </div>
  688. </div>
  689. </Fragment>
  690. `;
  691. exports[`should render correctly: no badges 1`] = `
  692. <Fragment>
  693. <div>
  694. <h2
  695. className="big-padded bordered-bottom"
  696. >
  697. project.info.title
  698. </h2>
  699. </div>
  700. <div
  701. className="overflow-y-auto"
  702. >
  703. <div
  704. className="big-padded bordered-bottom"
  705. >
  706. <div
  707. className="display-flex-center"
  708. >
  709. <h3
  710. className="spacer-right"
  711. >
  712. project.info.description
  713. </h3>
  714. <PrivacyBadgeContainer
  715. qualifier="TRK"
  716. visibility="public"
  717. />
  718. </div>
  719. <MetaTags
  720. component={
  721. Object {
  722. "breadcrumbs": Array [],
  723. "key": "my-project",
  724. "name": "MyProject",
  725. "qualifier": "TRK",
  726. "qualityGate": Object {
  727. "isDefault": true,
  728. "key": "30",
  729. "name": "Sonar way",
  730. },
  731. "qualityProfiles": Array [
  732. Object {
  733. "deleted": false,
  734. "key": "my-qp",
  735. "language": "ts",
  736. "name": "Sonar way",
  737. },
  738. ],
  739. "tags": Array [],
  740. "visibility": "public",
  741. }
  742. }
  743. onComponentChange={[MockFunction]}
  744. />
  745. </div>
  746. <div
  747. className="big-padded bordered-bottom it__project-loc-value"
  748. >
  749. <MetaSize
  750. component={
  751. Object {
  752. "breadcrumbs": Array [],
  753. "key": "my-project",
  754. "name": "MyProject",
  755. "qualifier": "TRK",
  756. "qualityGate": Object {
  757. "isDefault": true,
  758. "key": "30",
  759. "name": "Sonar way",
  760. },
  761. "qualityProfiles": Array [
  762. Object {
  763. "deleted": false,
  764. "key": "my-qp",
  765. "language": "ts",
  766. "name": "Sonar way",
  767. },
  768. ],
  769. "tags": Array [],
  770. "visibility": "public",
  771. }
  772. }
  773. measures={Array []}
  774. />
  775. </div>
  776. <div
  777. className="big-padded bordered-bottom"
  778. >
  779. <MetaQualityGate
  780. qualityGate={
  781. Object {
  782. "isDefault": true,
  783. "key": "30",
  784. "name": "Sonar way",
  785. }
  786. }
  787. />
  788. <withLanguagesContext(MetaQualityProfiles)
  789. headerClassName="big-spacer-top"
  790. profiles={
  791. Array [
  792. Object {
  793. "deleted": false,
  794. "key": "my-qp",
  795. "language": "ts",
  796. "name": "Sonar way",
  797. },
  798. ]
  799. }
  800. />
  801. </div>
  802. <MetaLinks
  803. component={
  804. Object {
  805. "breadcrumbs": Array [],
  806. "key": "my-project",
  807. "name": "MyProject",
  808. "qualifier": "TRK",
  809. "qualityGate": Object {
  810. "isDefault": true,
  811. "key": "30",
  812. "name": "Sonar way",
  813. },
  814. "qualityProfiles": Array [
  815. Object {
  816. "deleted": false,
  817. "key": "my-qp",
  818. "language": "ts",
  819. "name": "Sonar way",
  820. },
  821. ],
  822. "tags": Array [],
  823. "visibility": "public",
  824. }
  825. }
  826. />
  827. <div
  828. className="big-padded bordered-bottom"
  829. >
  830. <MetaKey
  831. componentKey="my-project"
  832. qualifier="TRK"
  833. />
  834. </div>
  835. <Memo(DrawerLink)
  836. label="project.info.to_notifications"
  837. onPageChange={[MockFunction]}
  838. to={2}
  839. />
  840. <div
  841. className="big-padded bordered-bottom"
  842. >
  843. <ModalButton
  844. modal={[Function]}
  845. >
  846. <Component />
  847. </ModalButton>
  848. </div>
  849. </div>
  850. </Fragment>
  851. `;
  852. exports[`should render correctly: no badges, no notifications 1`] = `
  853. <Fragment>
  854. <div>
  855. <h2
  856. className="big-padded bordered-bottom"
  857. >
  858. project.info.title
  859. </h2>
  860. </div>
  861. <div
  862. className="overflow-y-auto"
  863. >
  864. <div
  865. className="big-padded bordered-bottom"
  866. >
  867. <div
  868. className="display-flex-center"
  869. >
  870. <h3
  871. className="spacer-right"
  872. >
  873. project.info.description
  874. </h3>
  875. <PrivacyBadgeContainer
  876. qualifier="TRK"
  877. visibility="public"
  878. />
  879. </div>
  880. <MetaTags
  881. component={
  882. Object {
  883. "breadcrumbs": Array [],
  884. "key": "my-project",
  885. "name": "MyProject",
  886. "qualifier": "TRK",
  887. "qualityGate": Object {
  888. "isDefault": true,
  889. "key": "30",
  890. "name": "Sonar way",
  891. },
  892. "qualityProfiles": Array [
  893. Object {
  894. "deleted": false,
  895. "key": "my-qp",
  896. "language": "ts",
  897. "name": "Sonar way",
  898. },
  899. ],
  900. "tags": Array [],
  901. "visibility": "public",
  902. }
  903. }
  904. onComponentChange={[MockFunction]}
  905. />
  906. </div>
  907. <div
  908. className="big-padded bordered-bottom it__project-loc-value"
  909. >
  910. <MetaSize
  911. component={
  912. Object {
  913. "breadcrumbs": Array [],
  914. "key": "my-project",
  915. "name": "MyProject",
  916. "qualifier": "TRK",
  917. "qualityGate": Object {
  918. "isDefault": true,
  919. "key": "30",
  920. "name": "Sonar way",
  921. },
  922. "qualityProfiles": Array [
  923. Object {
  924. "deleted": false,
  925. "key": "my-qp",
  926. "language": "ts",
  927. "name": "Sonar way",
  928. },
  929. ],
  930. "tags": Array [],
  931. "visibility": "public",
  932. }
  933. }
  934. measures={Array []}
  935. />
  936. </div>
  937. <div
  938. className="big-padded bordered-bottom"
  939. >
  940. <MetaQualityGate
  941. qualityGate={
  942. Object {
  943. "isDefault": true,
  944. "key": "30",
  945. "name": "Sonar way",
  946. }
  947. }
  948. />
  949. <withLanguagesContext(MetaQualityProfiles)
  950. headerClassName="big-spacer-top"
  951. profiles={
  952. Array [
  953. Object {
  954. "deleted": false,
  955. "key": "my-qp",
  956. "language": "ts",
  957. "name": "Sonar way",
  958. },
  959. ]
  960. }
  961. />
  962. </div>
  963. <MetaLinks
  964. component={
  965. Object {
  966. "breadcrumbs": Array [],
  967. "key": "my-project",
  968. "name": "MyProject",
  969. "qualifier": "TRK",
  970. "qualityGate": Object {
  971. "isDefault": true,
  972. "key": "30",
  973. "name": "Sonar way",
  974. },
  975. "qualityProfiles": Array [
  976. Object {
  977. "deleted": false,
  978. "key": "my-qp",
  979. "language": "ts",
  980. "name": "Sonar way",
  981. },
  982. ],
  983. "tags": Array [],
  984. "visibility": "public",
  985. }
  986. }
  987. />
  988. <div
  989. className="big-padded bordered-bottom"
  990. >
  991. <MetaKey
  992. componentKey="my-project"
  993. qualifier="TRK"
  994. />
  995. </div>
  996. <div
  997. className="big-padded bordered-bottom"
  998. >
  999. <ModalButton
  1000. modal={[Function]}
  1001. >
  1002. <Component />
  1003. </ModalButton>
  1004. </div>
  1005. </div>
  1006. </Fragment>
  1007. `;
  1008. exports[`should render correctly: with notifications 1`] = `
  1009. <Fragment>
  1010. <div>
  1011. <h2
  1012. className="big-padded bordered-bottom"
  1013. >
  1014. project.info.title
  1015. </h2>
  1016. </div>
  1017. <div
  1018. className="overflow-y-auto"
  1019. >
  1020. <div
  1021. className="big-padded bordered-bottom"
  1022. >
  1023. <div
  1024. className="display-flex-center"
  1025. >
  1026. <h3
  1027. className="spacer-right"
  1028. >
  1029. project.info.description
  1030. </h3>
  1031. <PrivacyBadgeContainer
  1032. qualifier="TRK"
  1033. visibility="public"
  1034. />
  1035. </div>
  1036. <MetaTags
  1037. component={
  1038. Object {
  1039. "breadcrumbs": Array [],
  1040. "key": "my-project",
  1041. "name": "MyProject",
  1042. "qualifier": "TRK",
  1043. "qualityGate": Object {
  1044. "isDefault": true,
  1045. "key": "30",
  1046. "name": "Sonar way",
  1047. },
  1048. "qualityProfiles": Array [
  1049. Object {
  1050. "deleted": false,
  1051. "key": "my-qp",
  1052. "language": "ts",
  1053. "name": "Sonar way",
  1054. },
  1055. ],
  1056. "tags": Array [],
  1057. "visibility": "public",
  1058. }
  1059. }
  1060. onComponentChange={[MockFunction]}
  1061. />
  1062. </div>
  1063. <div
  1064. className="big-padded bordered-bottom it__project-loc-value"
  1065. >
  1066. <MetaSize
  1067. component={
  1068. Object {
  1069. "breadcrumbs": Array [],
  1070. "key": "my-project",
  1071. "name": "MyProject",
  1072. "qualifier": "TRK",
  1073. "qualityGate": Object {
  1074. "isDefault": true,
  1075. "key": "30",
  1076. "name": "Sonar way",
  1077. },
  1078. "qualityProfiles": Array [
  1079. Object {
  1080. "deleted": false,
  1081. "key": "my-qp",
  1082. "language": "ts",
  1083. "name": "Sonar way",
  1084. },
  1085. ],
  1086. "tags": Array [],
  1087. "visibility": "public",
  1088. }
  1089. }
  1090. measures={Array []}
  1091. />
  1092. </div>
  1093. <div
  1094. className="big-padded bordered-bottom"
  1095. >
  1096. <MetaQualityGate
  1097. qualityGate={
  1098. Object {
  1099. "isDefault": true,
  1100. "key": "30",
  1101. "name": "Sonar way",
  1102. }
  1103. }
  1104. />
  1105. <withLanguagesContext(MetaQualityProfiles)
  1106. headerClassName="big-spacer-top"
  1107. profiles={
  1108. Array [
  1109. Object {
  1110. "deleted": false,
  1111. "key": "my-qp",
  1112. "language": "ts",
  1113. "name": "Sonar way",
  1114. },
  1115. ]
  1116. }
  1117. />
  1118. </div>
  1119. <MetaLinks
  1120. component={
  1121. Object {
  1122. "breadcrumbs": Array [],
  1123. "key": "my-project",
  1124. "name": "MyProject",
  1125. "qualifier": "TRK",
  1126. "qualityGate": Object {
  1127. "isDefault": true,
  1128. "key": "30",
  1129. "name": "Sonar way",
  1130. },
  1131. "qualityProfiles": Array [
  1132. Object {
  1133. "deleted": false,
  1134. "key": "my-qp",
  1135. "language": "ts",
  1136. "name": "Sonar way",
  1137. },
  1138. ],
  1139. "tags": Array [],
  1140. "visibility": "public",
  1141. }
  1142. }
  1143. />
  1144. <div
  1145. className="big-padded bordered-bottom"
  1146. >
  1147. <MetaKey
  1148. componentKey="my-project"
  1149. qualifier="TRK"
  1150. />
  1151. </div>
  1152. <Memo(DrawerLink)
  1153. label="overview.badges.get_badge.TRK"
  1154. onPageChange={[MockFunction]}
  1155. to={1}
  1156. />
  1157. <div
  1158. className="big-padded bordered-bottom"
  1159. >
  1160. <ModalButton
  1161. modal={[Function]}
  1162. >
  1163. <Component />
  1164. </ModalButton>
  1165. </div>
  1166. </div>
  1167. </Fragment>
  1168. `;
  1169. exports[`should render with description 1`] = `
  1170. <Fragment>
  1171. <div>
  1172. <h2
  1173. className="big-padded bordered-bottom"
  1174. >
  1175. project.info.title
  1176. </h2>
  1177. </div>
  1178. <div
  1179. className="overflow-y-auto"
  1180. >
  1181. <div
  1182. className="big-padded bordered-bottom"
  1183. >
  1184. <div
  1185. className="display-flex-center"
  1186. >
  1187. <h3
  1188. className="spacer-right"
  1189. >
  1190. project.info.description
  1191. </h3>
  1192. </div>
  1193. <p
  1194. className="it__project-description"
  1195. >
  1196. Lorem ipsum
  1197. </p>
  1198. <MetaTags
  1199. component={
  1200. Object {
  1201. "breadcrumbs": Array [],
  1202. "description": "Lorem ipsum",
  1203. "key": "my-project",
  1204. "name": "MyProject",
  1205. "qualifier": "TRK",
  1206. "qualityGate": Object {
  1207. "isDefault": true,
  1208. "key": "30",
  1209. "name": "Sonar way",
  1210. },
  1211. "qualityProfiles": Array [
  1212. Object {
  1213. "deleted": false,
  1214. "key": "my-qp",
  1215. "language": "ts",
  1216. "name": "Sonar way",
  1217. },
  1218. ],
  1219. "tags": Array [],
  1220. }
  1221. }
  1222. onComponentChange={[MockFunction]}
  1223. />
  1224. </div>
  1225. <div
  1226. className="big-padded bordered-bottom it__project-loc-value"
  1227. >
  1228. <MetaSize
  1229. component={
  1230. Object {
  1231. "breadcrumbs": Array [],
  1232. "description": "Lorem ipsum",
  1233. "key": "my-project",
  1234. "name": "MyProject",
  1235. "qualifier": "TRK",
  1236. "qualityGate": Object {
  1237. "isDefault": true,
  1238. "key": "30",
  1239. "name": "Sonar way",
  1240. },
  1241. "qualityProfiles": Array [
  1242. Object {
  1243. "deleted": false,
  1244. "key": "my-qp",
  1245. "language": "ts",
  1246. "name": "Sonar way",
  1247. },
  1248. ],
  1249. "tags": Array [],
  1250. }
  1251. }
  1252. measures={Array []}
  1253. />
  1254. </div>
  1255. <div
  1256. className="big-padded bordered-bottom"
  1257. >
  1258. <MetaQualityGate
  1259. qualityGate={
  1260. Object {
  1261. "isDefault": true,
  1262. "key": "30",
  1263. "name": "Sonar way",
  1264. }
  1265. }
  1266. />
  1267. <withLanguagesContext(MetaQualityProfiles)
  1268. headerClassName="big-spacer-top"
  1269. profiles={
  1270. Array [
  1271. Object {
  1272. "deleted": false,
  1273. "key": "my-qp",
  1274. "language": "ts",
  1275. "name": "Sonar way",
  1276. },
  1277. ]
  1278. }
  1279. />
  1280. </div>
  1281. <MetaLinks
  1282. component={
  1283. Object {
  1284. "breadcrumbs": Array [],
  1285. "description": "Lorem ipsum",
  1286. "key": "my-project",
  1287. "name": "MyProject",
  1288. "qualifier": "TRK",
  1289. "qualityGate": Object {
  1290. "isDefault": true,
  1291. "key": "30",
  1292. "name": "Sonar way",
  1293. },
  1294. "qualityProfiles": Array [
  1295. Object {
  1296. "deleted": false,
  1297. "key": "my-qp",
  1298. "language": "ts",
  1299. "name": "Sonar way",
  1300. },
  1301. ],
  1302. "tags": Array [],
  1303. }
  1304. }
  1305. />
  1306. <div
  1307. className="big-padded bordered-bottom"
  1308. >
  1309. <MetaKey
  1310. componentKey="my-project"
  1311. qualifier="TRK"
  1312. />
  1313. </div>
  1314. <Memo(DrawerLink)
  1315. label="overview.badges.get_badge.TRK"
  1316. onPageChange={[MockFunction]}
  1317. to={1}
  1318. />
  1319. <Memo(DrawerLink)
  1320. label="project.info.to_notifications"
  1321. onPageChange={[MockFunction]}
  1322. to={2}
  1323. />
  1324. <div
  1325. className="big-padded bordered-bottom"
  1326. >
  1327. <ModalButton
  1328. modal={[Function]}
  1329. >
  1330. <Component />
  1331. </ModalButton>
  1332. </div>
  1333. </div>
  1334. </Fragment>
  1335. `;