organizationProjects.spec.jsx.snap 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`OrganizationProjects should render the projects in the store 1`] = `
  3. <WithOrganizationMockWrapper
  4. location={
  5. Object {
  6. "query": Object {},
  7. }
  8. }
  9. params={
  10. Object {
  11. "orgId": "org-slug",
  12. }
  13. }
  14. >
  15. <OrganizationProjects
  16. location={
  17. Object {
  18. "query": Object {},
  19. }
  20. }
  21. organization={
  22. Object {
  23. "access": Array [
  24. "org:read",
  25. "org:write",
  26. "org:admin",
  27. "org:integrations",
  28. "project:read",
  29. "project:write",
  30. "project:admin",
  31. "team:read",
  32. "team:write",
  33. "team:admin",
  34. ],
  35. "features": Array [],
  36. "id": "3",
  37. "name": "Organization Name",
  38. "onboardingTasks": Array [],
  39. "projects": Array [],
  40. "scrapeJavaScript": true,
  41. "slug": "org-slug",
  42. "status": Object {
  43. "id": "active",
  44. "name": "active",
  45. },
  46. "teams": Array [],
  47. }
  48. }
  49. params={
  50. Object {
  51. "orgId": "org-slug",
  52. }
  53. }
  54. >
  55. <SideEffect(DocumentTitle)
  56. title="Projects - org-slug - Sentry"
  57. >
  58. <DocumentTitle
  59. title="Projects - org-slug - Sentry"
  60. >
  61. <div>
  62. <StyledSettingsPageHeading
  63. action={
  64. <Button
  65. align="center"
  66. disabled={false}
  67. icon="icon-circle-add"
  68. priority="primary"
  69. size="small"
  70. to="/organizations/org-slug/projects/new/"
  71. >
  72. Create Project
  73. </Button>
  74. }
  75. noTitleStyles={false}
  76. title="Projects"
  77. >
  78. <SettingsPageHeading
  79. action={
  80. <Button
  81. align="center"
  82. disabled={false}
  83. icon="icon-circle-add"
  84. priority="primary"
  85. size="small"
  86. to="/organizations/org-slug/projects/new/"
  87. >
  88. Create Project
  89. </Button>
  90. }
  91. className="css-1fvvoq2-StyledSettingsPageHeading e1uay4fd4"
  92. noTitleStyles={false}
  93. title="Projects"
  94. >
  95. <div
  96. className="css-1fvvoq2-StyledSettingsPageHeading e1uay4fd4"
  97. >
  98. <TitleAndActions>
  99. <div
  100. className="css-b5tiyd-TitleAndActions e1uay4fd0"
  101. >
  102. <Title
  103. styled={false}
  104. >
  105. <div
  106. className="css-2kvddg-Title e1uay4fd1"
  107. >
  108. <HeaderTitle>
  109. <h4
  110. className="css-1w8ttcn-HeaderTitle eqkydle2"
  111. >
  112. Projects
  113. </h4>
  114. </HeaderTitle>
  115. </div>
  116. </Title>
  117. <Action>
  118. <div
  119. className="css-18luhfc-Action e1uay4fd3"
  120. >
  121. <Button
  122. align="center"
  123. disabled={false}
  124. icon="icon-circle-add"
  125. priority="primary"
  126. size="small"
  127. to="/organizations/org-slug/projects/new/"
  128. >
  129. <StyledButton
  130. aria-disabled={false}
  131. aria-label="Create Project"
  132. disabled={false}
  133. onClick={[Function]}
  134. priority="primary"
  135. role="button"
  136. size="small"
  137. to="/organizations/org-slug/projects/new/"
  138. >
  139. <ForwardRef
  140. aria-disabled={false}
  141. aria-label="Create Project"
  142. className="css-1lua553-StyledButton-getColors edwq9my0"
  143. disabled={false}
  144. onClick={[Function]}
  145. priority="primary"
  146. role="button"
  147. size="small"
  148. to="/organizations/org-slug/projects/new/"
  149. >
  150. <Link
  151. aria-disabled={false}
  152. aria-label="Create Project"
  153. className="css-1lua553-StyledButton-getColors edwq9my0"
  154. onClick={[Function]}
  155. onlyActiveOnIndex={false}
  156. role="button"
  157. size="small"
  158. style={Object {}}
  159. to="/organizations/org-slug/projects/new/"
  160. >
  161. <a
  162. aria-disabled={false}
  163. aria-label="Create Project"
  164. className="css-1lua553-StyledButton-getColors edwq9my0"
  165. onClick={[Function]}
  166. role="button"
  167. size="small"
  168. style={Object {}}
  169. >
  170. <ButtonLabel
  171. align="center"
  172. priority="primary"
  173. size="small"
  174. >
  175. <Component
  176. align="center"
  177. className="css-1h693nz-ButtonLabel edwq9my1"
  178. priority="primary"
  179. size="small"
  180. >
  181. <span
  182. className="css-1h693nz-ButtonLabel edwq9my1"
  183. >
  184. <Icon
  185. hasChildren={true}
  186. size="small"
  187. >
  188. <Component
  189. className="css-1vdnsie-Icon edwq9my2"
  190. hasChildren={true}
  191. size="small"
  192. >
  193. <span
  194. className="css-1vdnsie-Icon edwq9my2"
  195. size="small"
  196. >
  197. <StyledInlineSvg
  198. size="12px"
  199. src="icon-circle-add"
  200. >
  201. <ForwardRef
  202. className="css-52zz4j-InlineSvg-StyledInlineSvg edwq9my3"
  203. size="12px"
  204. src="icon-circle-add"
  205. >
  206. <svg
  207. className="css-52zz4j-InlineSvg-StyledInlineSvg edwq9my3"
  208. height="12px"
  209. viewBox={Object {}}
  210. width="12px"
  211. >
  212. <use
  213. href="#test"
  214. xlinkHref="#test"
  215. />
  216. </svg>
  217. </ForwardRef>
  218. </StyledInlineSvg>
  219. </span>
  220. </Component>
  221. </Icon>
  222. Create Project
  223. </span>
  224. </Component>
  225. </ButtonLabel>
  226. </a>
  227. </Link>
  228. </ForwardRef>
  229. </StyledButton>
  230. </Button>
  231. </div>
  232. </Action>
  233. </div>
  234. </TitleAndActions>
  235. </div>
  236. </SettingsPageHeading>
  237. </StyledSettingsPageHeading>
  238. <Panel>
  239. <Component
  240. className="css-10qfvek-Panel e119nu470"
  241. >
  242. <div
  243. className="css-10qfvek-Panel e119nu470"
  244. >
  245. <PanelHeader
  246. hasButtons={true}
  247. >
  248. <div
  249. className="css-113w9ek-PanelHeader-getPadding en8g1d30"
  250. >
  251. Projects
  252. <withRouter(AsyncComponentSearchInput)
  253. api={
  254. Client {
  255. "_chain": [Function],
  256. "_wrapRequest": [Function],
  257. "bulkUpdate": [Function],
  258. "handleRequestError": [Function],
  259. "hasProjectBeenRenamed": [Function],
  260. }
  261. }
  262. className="search"
  263. onError={[Function]}
  264. onSuccess={[Function]}
  265. placeholder="Search Projects"
  266. updateRoute={true}
  267. url="/organizations/org-slug/projects/"
  268. >
  269. <AsyncComponentSearchInput
  270. api={
  271. Client {
  272. "_chain": [Function],
  273. "_wrapRequest": [Function],
  274. "bulkUpdate": [Function],
  275. "handleRequestError": [Function],
  276. "hasProjectBeenRenamed": [Function],
  277. }
  278. }
  279. className="search"
  280. debounceWait={200}
  281. location={
  282. Object {
  283. "query": Object {},
  284. }
  285. }
  286. onError={[Function]}
  287. onSuccess={[Function]}
  288. placeholder="Search Projects"
  289. router={
  290. Object {
  291. "createHref": [MockFunction] {
  292. "calls": Array [
  293. Array [
  294. "/organizations/org-slug/projects/new/",
  295. ],
  296. Array [
  297. "/settings/org-slug/projects/project-slug/",
  298. ],
  299. ],
  300. "results": Array [
  301. Object {
  302. "type": "return",
  303. "value": undefined,
  304. },
  305. Object {
  306. "type": "return",
  307. "value": undefined,
  308. },
  309. ],
  310. },
  311. "go": [MockFunction],
  312. "goBack": [MockFunction],
  313. "goForward": [MockFunction],
  314. "isActive": [MockFunction],
  315. "listen": [MockFunction],
  316. "location": Object {
  317. "query": Object {},
  318. },
  319. "push": [MockFunction],
  320. "replace": [MockFunction],
  321. "setRouteLeaveHook": [MockFunction],
  322. }
  323. }
  324. updateRoute={true}
  325. url="/organizations/org-slug/projects/"
  326. >
  327. <Form
  328. onSubmit={[Function]}
  329. >
  330. <form
  331. className="css-vfrmj7-Form e6xwo1"
  332. onSubmit={[Function]}
  333. >
  334. <Input
  335. className="search"
  336. onChange={[Function]}
  337. placeholder="Search Projects"
  338. value=""
  339. >
  340. <input
  341. className="search css-1b7nva7-Input-inputStyles e1xej46s0"
  342. onChange={[Function]}
  343. placeholder="Search Projects"
  344. value=""
  345. />
  346. </Input>
  347. </form>
  348. </Form>
  349. </AsyncComponentSearchInput>
  350. </withRouter(AsyncComponentSearchInput)>
  351. </div>
  352. </PanelHeader>
  353. <PanelBody
  354. className="css-8atqhb"
  355. direction="column"
  356. disablePadding={true}
  357. flex={false}
  358. >
  359. <div
  360. className="css-z3t9gf-textStyles"
  361. >
  362. <GridPanelItem
  363. key="2"
  364. p={2}
  365. >
  366. <Base
  367. className="css-1325ndv-PanelItem-GridPanelItem ew99cs00"
  368. p={2}
  369. >
  370. <div
  371. className="css-1325ndv-PanelItem-GridPanelItem ew99cs00"
  372. is={null}
  373. >
  374. <ProjectListItemWrapper>
  375. <div
  376. className="css-uamzlo-ProjectListItemWrapper ew99cs01"
  377. >
  378. <ProjectItem
  379. organization={
  380. Object {
  381. "access": Array [
  382. "org:read",
  383. "org:write",
  384. "org:admin",
  385. "org:integrations",
  386. "project:read",
  387. "project:write",
  388. "project:admin",
  389. "team:read",
  390. "team:write",
  391. "team:admin",
  392. ],
  393. "features": Array [],
  394. "id": "3",
  395. "name": "Organization Name",
  396. "onboardingTasks": Array [],
  397. "projects": Array [],
  398. "scrapeJavaScript": true,
  399. "slug": "org-slug",
  400. "status": Object {
  401. "id": "active",
  402. "name": "active",
  403. },
  404. "teams": Array [],
  405. }
  406. }
  407. project={
  408. Object {
  409. "environments": Array [],
  410. "hasAccess": true,
  411. "id": "2",
  412. "isBookmarked": false,
  413. "isMember": true,
  414. "name": "Project Name",
  415. "slug": "project-slug",
  416. "teams": Array [],
  417. }
  418. }
  419. >
  420. <Container
  421. key="2"
  422. >
  423. <div
  424. className="css-9ku3o0-Container enngb6z0"
  425. >
  426. <BookmarkLink
  427. isBookmarked={false}
  428. onToggle={[Function]}
  429. organization={
  430. Object {
  431. "access": Array [
  432. "org:read",
  433. "org:write",
  434. "org:admin",
  435. "org:integrations",
  436. "project:read",
  437. "project:write",
  438. "project:admin",
  439. "team:read",
  440. "team:write",
  441. "team:admin",
  442. ],
  443. "features": Array [],
  444. "id": "3",
  445. "name": "Organization Name",
  446. "onboardingTasks": Array [],
  447. "projects": Array [],
  448. "scrapeJavaScript": true,
  449. "slug": "org-slug",
  450. "status": Object {
  451. "id": "active",
  452. "name": "active",
  453. },
  454. "teams": Array [],
  455. }
  456. }
  457. project={
  458. Object {
  459. "environments": Array [],
  460. "hasAccess": true,
  461. "id": "2",
  462. "isBookmarked": false,
  463. "isMember": true,
  464. "name": "Project Name",
  465. "slug": "project-slug",
  466. "teams": Array [],
  467. }
  468. }
  469. >
  470. <withApi(BookmarkStar)
  471. className="css-10z01iz-BookmarkLink enngb6z1"
  472. isBookmarked={false}
  473. onToggle={[Function]}
  474. organization={
  475. Object {
  476. "access": Array [
  477. "org:read",
  478. "org:write",
  479. "org:admin",
  480. "org:integrations",
  481. "project:read",
  482. "project:write",
  483. "project:admin",
  484. "team:read",
  485. "team:write",
  486. "team:admin",
  487. ],
  488. "features": Array [],
  489. "id": "3",
  490. "name": "Organization Name",
  491. "onboardingTasks": Array [],
  492. "projects": Array [],
  493. "scrapeJavaScript": true,
  494. "slug": "org-slug",
  495. "status": Object {
  496. "id": "active",
  497. "name": "active",
  498. },
  499. "teams": Array [],
  500. }
  501. }
  502. project={
  503. Object {
  504. "environments": Array [],
  505. "hasAccess": true,
  506. "id": "2",
  507. "isBookmarked": false,
  508. "isMember": true,
  509. "name": "Project Name",
  510. "slug": "project-slug",
  511. "teams": Array [],
  512. }
  513. }
  514. >
  515. <BookmarkStar
  516. api={
  517. Client {
  518. "_chain": [Function],
  519. "_wrapRequest": [Function],
  520. "bulkUpdate": [Function],
  521. "handleRequestError": [Function],
  522. "hasProjectBeenRenamed": [Function],
  523. }
  524. }
  525. className="css-10z01iz-BookmarkLink enngb6z1"
  526. isBookmarked={false}
  527. onToggle={[Function]}
  528. organization={
  529. Object {
  530. "access": Array [
  531. "org:read",
  532. "org:write",
  533. "org:admin",
  534. "org:integrations",
  535. "project:read",
  536. "project:write",
  537. "project:admin",
  538. "team:read",
  539. "team:write",
  540. "team:admin",
  541. ],
  542. "features": Array [],
  543. "id": "3",
  544. "name": "Organization Name",
  545. "onboardingTasks": Array [],
  546. "projects": Array [],
  547. "scrapeJavaScript": true,
  548. "slug": "org-slug",
  549. "status": Object {
  550. "id": "active",
  551. "name": "active",
  552. },
  553. "teams": Array [],
  554. }
  555. }
  556. project={
  557. Object {
  558. "environments": Array [],
  559. "hasAccess": true,
  560. "id": "2",
  561. "isBookmarked": false,
  562. "isMember": true,
  563. "name": "Project Name",
  564. "slug": "project-slug",
  565. "teams": Array [],
  566. }
  567. }
  568. >
  569. <Star
  570. className="css-10z01iz-BookmarkLink enngb6z1"
  571. isBookmarked={false}
  572. onClick={[Function]}
  573. src="icon-star-small-filled"
  574. >
  575. <ForwardRef
  576. className="enngb6z1 css-judnc9-InlineSvg-Star-BookmarkLink e5ekdrk0"
  577. isBookmarked={false}
  578. onClick={[Function]}
  579. src="icon-star-small-filled"
  580. >
  581. <svg
  582. className="enngb6z1 css-judnc9-InlineSvg-Star-BookmarkLink e5ekdrk0"
  583. height="1em"
  584. onClick={[Function]}
  585. viewBox={Object {}}
  586. width="1em"
  587. >
  588. <use
  589. href="#test"
  590. xlinkHref="#test"
  591. />
  592. </svg>
  593. </ForwardRef>
  594. </Star>
  595. </BookmarkStar>
  596. </withApi(BookmarkStar)>
  597. </BookmarkLink>
  598. <Link
  599. to="/settings/org-slug/projects/project-slug/"
  600. >
  601. <Link
  602. onlyActiveOnIndex={false}
  603. style={Object {}}
  604. to="/settings/org-slug/projects/project-slug/"
  605. >
  606. <a
  607. onClick={[Function]}
  608. style={Object {}}
  609. >
  610. <ProjectLabel
  611. project={
  612. Object {
  613. "environments": Array [],
  614. "hasAccess": true,
  615. "id": "2",
  616. "isBookmarked": false,
  617. "isMember": true,
  618. "name": "Project Name",
  619. "slug": "project-slug",
  620. "teams": Array [],
  621. }
  622. }
  623. >
  624. <span
  625. className="project-label"
  626. >
  627. <span
  628. className="project-name"
  629. >
  630. project-slug
  631. </span>
  632. </span>
  633. </ProjectLabel>
  634. </a>
  635. </Link>
  636. </Link>
  637. </div>
  638. </Container>
  639. </ProjectItem>
  640. </div>
  641. </ProjectListItemWrapper>
  642. <ProjectStatsGraphWrapper>
  643. <div
  644. className="css-gtwx22-ProjectStatsGraphWrapper ew99cs02"
  645. >
  646. <ProjectStatsGraph
  647. key="2"
  648. project={
  649. Object {
  650. "environments": Array [],
  651. "hasAccess": true,
  652. "id": "2",
  653. "isBookmarked": false,
  654. "isMember": true,
  655. "name": "Project Name",
  656. "slug": "project-slug",
  657. "teams": Array [],
  658. }
  659. }
  660. >
  661. <div />
  662. </ProjectStatsGraph>
  663. </div>
  664. </ProjectStatsGraphWrapper>
  665. </div>
  666. </Base>
  667. </GridPanelItem>
  668. </div>
  669. </PanelBody>
  670. </div>
  671. </Component>
  672. </Panel>
  673. </div>
  674. </DocumentTitle>
  675. </SideEffect(DocumentTitle)>
  676. </OrganizationProjects>
  677. </WithOrganizationMockWrapper>
  678. `;