projectEnvironments.spec.jsx.snap 75 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`ProjectEnvironments render active renders empty message 1`] = `
  3. <ProjectEnvironments
  4. location={
  5. Object {
  6. "pathname": "environments/",
  7. }
  8. }
  9. params={
  10. Object {
  11. "orgId": "org-slug",
  12. "projectId": "project-slug",
  13. }
  14. }
  15. routes={Array []}
  16. >
  17. <div>
  18. <SettingsPageHeading
  19. noTitleStyles={false}
  20. tabs={
  21. <NavTabs
  22. underlined={true}
  23. >
  24. <ListLink
  25. activeClassName="active"
  26. index={true}
  27. isActive={[Function]}
  28. to="/org-slug/project-slug/settings/environments/"
  29. >
  30. Environments
  31. </ListLink>
  32. <ListLink
  33. activeClassName="active"
  34. index={true}
  35. isActive={[Function]}
  36. to="/org-slug/project-slug/settings/environments/hidden/"
  37. >
  38. Hidden
  39. </ListLink>
  40. </NavTabs>
  41. }
  42. title="Manage Environments"
  43. >
  44. <Wrapper
  45. tabs={
  46. <NavTabs
  47. underlined={true}
  48. >
  49. <ListLink
  50. activeClassName="active"
  51. index={true}
  52. isActive={[Function]}
  53. to="/org-slug/project-slug/settings/environments/"
  54. >
  55. Environments
  56. </ListLink>
  57. <ListLink
  58. activeClassName="active"
  59. index={true}
  60. isActive={[Function]}
  61. to="/org-slug/project-slug/settings/environments/hidden/"
  62. >
  63. Hidden
  64. </ListLink>
  65. </NavTabs>
  66. }
  67. >
  68. <div
  69. className="css-1r5ylk7-Wrapper e1kblvez2"
  70. >
  71. <Flex
  72. align="center"
  73. >
  74. <Base
  75. align="center"
  76. className="css-5ipae5"
  77. >
  78. <div
  79. className="css-5ipae5"
  80. is={null}
  81. >
  82. <Title
  83. styled={false}
  84. tabs={
  85. <NavTabs
  86. underlined={true}
  87. >
  88. <ListLink
  89. activeClassName="active"
  90. index={true}
  91. isActive={[Function]}
  92. to="/org-slug/project-slug/settings/environments/"
  93. >
  94. Environments
  95. </ListLink>
  96. <ListLink
  97. activeClassName="active"
  98. index={true}
  99. isActive={[Function]}
  100. to="/org-slug/project-slug/settings/environments/hidden/"
  101. >
  102. Hidden
  103. </ListLink>
  104. </NavTabs>
  105. }
  106. >
  107. <Base
  108. className="css-zs9eah-Title e1kblvez0"
  109. tabs={
  110. <NavTabs
  111. underlined={true}
  112. >
  113. <ListLink
  114. activeClassName="active"
  115. index={true}
  116. isActive={[Function]}
  117. to="/org-slug/project-slug/settings/environments/"
  118. >
  119. Environments
  120. </ListLink>
  121. <ListLink
  122. activeClassName="active"
  123. index={true}
  124. isActive={[Function]}
  125. to="/org-slug/project-slug/settings/environments/hidden/"
  126. >
  127. Hidden
  128. </ListLink>
  129. </NavTabs>
  130. }
  131. >
  132. <div
  133. className="css-zs9eah-Title e1kblvez0"
  134. is={null}
  135. tabs={
  136. <NavTabs
  137. underlined={true}
  138. >
  139. <ListLink
  140. activeClassName="active"
  141. index={true}
  142. isActive={[Function]}
  143. to="/org-slug/project-slug/settings/environments/"
  144. >
  145. Environments
  146. </ListLink>
  147. <ListLink
  148. activeClassName="active"
  149. index={true}
  150. isActive={[Function]}
  151. to="/org-slug/project-slug/settings/environments/hidden/"
  152. >
  153. Hidden
  154. </ListLink>
  155. </NavTabs>
  156. }
  157. >
  158. <HeaderTitle>
  159. <h4
  160. className="css-1w8ttcn-HeaderTitle e6lvex72"
  161. >
  162. Manage Environments
  163. </h4>
  164. </HeaderTitle>
  165. </div>
  166. </Base>
  167. </Title>
  168. </div>
  169. </Base>
  170. </Flex>
  171. <div>
  172. <NavTabs
  173. underlined={true}
  174. >
  175. <ul
  176. className="nav nav-tabs border-bottom"
  177. >
  178. <ListLink
  179. activeClassName="active"
  180. index={true}
  181. isActive={[Function]}
  182. to="/org-slug/project-slug/settings/environments/"
  183. >
  184. <li
  185. className="active"
  186. >
  187. <Link
  188. onlyActiveOnIndex={true}
  189. style={Object {}}
  190. to="/org-slug/project-slug/settings/environments/"
  191. >
  192. <a
  193. onClick={[Function]}
  194. style={Object {}}
  195. >
  196. Environments
  197. </a>
  198. </Link>
  199. </li>
  200. </ListLink>
  201. <ListLink
  202. activeClassName="active"
  203. index={true}
  204. isActive={[Function]}
  205. to="/org-slug/project-slug/settings/environments/hidden/"
  206. >
  207. <li
  208. className=""
  209. >
  210. <Link
  211. onlyActiveOnIndex={true}
  212. style={Object {}}
  213. to="/org-slug/project-slug/settings/environments/hidden/"
  214. >
  215. <a
  216. onClick={[Function]}
  217. style={Object {}}
  218. >
  219. Hidden
  220. </a>
  221. </Link>
  222. </li>
  223. </ListLink>
  224. </ul>
  225. </NavTabs>
  226. </div>
  227. </div>
  228. </Wrapper>
  229. </SettingsPageHeading>
  230. <PermissionAlert
  231. access={
  232. Array [
  233. "project:write",
  234. ]
  235. }
  236. >
  237. <AccessContainer
  238. access={
  239. Array [
  240. "project:write",
  241. ]
  242. }
  243. >
  244. <Access
  245. access={
  246. Array [
  247. "project:write",
  248. ]
  249. }
  250. configUser={
  251. Object {
  252. "email": "foo@example.com",
  253. "flags": Object {
  254. "newsletter_consent_prompt": false,
  255. },
  256. "hasPasswordAuth": true,
  257. "id": "1",
  258. "isAuthenticated": true,
  259. "name": "Foo Bar",
  260. "options": Object {
  261. "timezone": "UTC",
  262. },
  263. "permissions": Set {},
  264. "username": "foo@example.com",
  265. }
  266. }
  267. organization={
  268. Object {
  269. "access": Array [
  270. "org:read",
  271. "org:write",
  272. "org:admin",
  273. "project:read",
  274. "project:write",
  275. "project:admin",
  276. "team:read",
  277. "team:write",
  278. "team:admin",
  279. ],
  280. "features": Array [],
  281. "id": "3",
  282. "name": "Organization Name",
  283. "onboardingTasks": Array [],
  284. "projects": Array [],
  285. "scrapeJavaScript": true,
  286. "slug": "org-slug",
  287. "status": Object {
  288. "id": "active",
  289. "name": "active",
  290. },
  291. "teams": Array [],
  292. }
  293. }
  294. renderNoAccessMessage={false}
  295. requireAll={true}
  296. />
  297. </AccessContainer>
  298. </PermissionAlert>
  299. <Panel>
  300. <Component
  301. className="css-yahxlu-Panel e1laxa7d0"
  302. >
  303. <div
  304. className="css-yahxlu-Panel e1laxa7d0"
  305. >
  306. <PanelHeader>
  307. <Component
  308. className="css-xhx6pj-PanelHeader-getPadding e1p8v8nv0"
  309. >
  310. <Flex
  311. align="center"
  312. className="css-xhx6pj-PanelHeader-getPadding e1p8v8nv0"
  313. justify="space-between"
  314. >
  315. <Base
  316. align="center"
  317. className="e1p8v8nv0 css-b7ices-PanelHeader-getPadding"
  318. justify="space-between"
  319. >
  320. <div
  321. className="e1p8v8nv0 css-b7ices-PanelHeader-getPadding"
  322. is={null}
  323. >
  324. Active Environments
  325. </div>
  326. </Base>
  327. </Flex>
  328. </Component>
  329. </PanelHeader>
  330. <PanelBody
  331. direction="column"
  332. disablePadding={true}
  333. flex={false}
  334. >
  335. <div
  336. className="css-9vq8an-textStyles"
  337. >
  338. <EmptyMessage>
  339. <Wrapper>
  340. <div
  341. className="css-ev9qm0-Wrapper eh488yo0"
  342. >
  343. <Description
  344. noMargin={true}
  345. >
  346. <Component
  347. className="css-pwn5v-TextBlock-Description-MarginStyles eh488yo1"
  348. noMargin={true}
  349. >
  350. <div
  351. className="css-pwn5v-TextBlock-Description-MarginStyles eh488yo1"
  352. >
  353. You don't have any environments yet.
  354. </div>
  355. </Component>
  356. </Description>
  357. </div>
  358. </Wrapper>
  359. </EmptyMessage>
  360. </div>
  361. </PanelBody>
  362. </div>
  363. </Component>
  364. </Panel>
  365. </div>
  366. </ProjectEnvironments>
  367. `;
  368. exports[`ProjectEnvironments render active renders environment list and sets staging as default env 1`] = `
  369. <ProjectEnvironments
  370. location={
  371. Object {
  372. "pathname": "environments/",
  373. }
  374. }
  375. params={
  376. Object {
  377. "orgId": "org-slug",
  378. "projectId": "project-slug",
  379. }
  380. }
  381. routes={Array []}
  382. >
  383. <div>
  384. <SettingsPageHeading
  385. noTitleStyles={false}
  386. tabs={
  387. <NavTabs
  388. underlined={true}
  389. >
  390. <ListLink
  391. activeClassName="active"
  392. index={true}
  393. isActive={[Function]}
  394. to="/org-slug/project-slug/settings/environments/"
  395. >
  396. Environments
  397. </ListLink>
  398. <ListLink
  399. activeClassName="active"
  400. index={true}
  401. isActive={[Function]}
  402. to="/org-slug/project-slug/settings/environments/hidden/"
  403. >
  404. Hidden
  405. </ListLink>
  406. </NavTabs>
  407. }
  408. title="Manage Environments"
  409. >
  410. <Wrapper
  411. tabs={
  412. <NavTabs
  413. underlined={true}
  414. >
  415. <ListLink
  416. activeClassName="active"
  417. index={true}
  418. isActive={[Function]}
  419. to="/org-slug/project-slug/settings/environments/"
  420. >
  421. Environments
  422. </ListLink>
  423. <ListLink
  424. activeClassName="active"
  425. index={true}
  426. isActive={[Function]}
  427. to="/org-slug/project-slug/settings/environments/hidden/"
  428. >
  429. Hidden
  430. </ListLink>
  431. </NavTabs>
  432. }
  433. >
  434. <div
  435. className="css-1r5ylk7-Wrapper e1kblvez2"
  436. >
  437. <Flex
  438. align="center"
  439. >
  440. <Base
  441. align="center"
  442. className="css-5ipae5"
  443. >
  444. <div
  445. className="css-5ipae5"
  446. is={null}
  447. >
  448. <Title
  449. styled={false}
  450. tabs={
  451. <NavTabs
  452. underlined={true}
  453. >
  454. <ListLink
  455. activeClassName="active"
  456. index={true}
  457. isActive={[Function]}
  458. to="/org-slug/project-slug/settings/environments/"
  459. >
  460. Environments
  461. </ListLink>
  462. <ListLink
  463. activeClassName="active"
  464. index={true}
  465. isActive={[Function]}
  466. to="/org-slug/project-slug/settings/environments/hidden/"
  467. >
  468. Hidden
  469. </ListLink>
  470. </NavTabs>
  471. }
  472. >
  473. <Base
  474. className="css-zs9eah-Title e1kblvez0"
  475. tabs={
  476. <NavTabs
  477. underlined={true}
  478. >
  479. <ListLink
  480. activeClassName="active"
  481. index={true}
  482. isActive={[Function]}
  483. to="/org-slug/project-slug/settings/environments/"
  484. >
  485. Environments
  486. </ListLink>
  487. <ListLink
  488. activeClassName="active"
  489. index={true}
  490. isActive={[Function]}
  491. to="/org-slug/project-slug/settings/environments/hidden/"
  492. >
  493. Hidden
  494. </ListLink>
  495. </NavTabs>
  496. }
  497. >
  498. <div
  499. className="css-zs9eah-Title e1kblvez0"
  500. is={null}
  501. tabs={
  502. <NavTabs
  503. underlined={true}
  504. >
  505. <ListLink
  506. activeClassName="active"
  507. index={true}
  508. isActive={[Function]}
  509. to="/org-slug/project-slug/settings/environments/"
  510. >
  511. Environments
  512. </ListLink>
  513. <ListLink
  514. activeClassName="active"
  515. index={true}
  516. isActive={[Function]}
  517. to="/org-slug/project-slug/settings/environments/hidden/"
  518. >
  519. Hidden
  520. </ListLink>
  521. </NavTabs>
  522. }
  523. >
  524. <HeaderTitle>
  525. <h4
  526. className="css-1w8ttcn-HeaderTitle e6lvex72"
  527. >
  528. Manage Environments
  529. </h4>
  530. </HeaderTitle>
  531. </div>
  532. </Base>
  533. </Title>
  534. </div>
  535. </Base>
  536. </Flex>
  537. <div>
  538. <NavTabs
  539. underlined={true}
  540. >
  541. <ul
  542. className="nav nav-tabs border-bottom"
  543. >
  544. <ListLink
  545. activeClassName="active"
  546. index={true}
  547. isActive={[Function]}
  548. to="/org-slug/project-slug/settings/environments/"
  549. >
  550. <li
  551. className="active"
  552. >
  553. <Link
  554. onlyActiveOnIndex={true}
  555. style={Object {}}
  556. to="/org-slug/project-slug/settings/environments/"
  557. >
  558. <a
  559. onClick={[Function]}
  560. style={Object {}}
  561. >
  562. Environments
  563. </a>
  564. </Link>
  565. </li>
  566. </ListLink>
  567. <ListLink
  568. activeClassName="active"
  569. index={true}
  570. isActive={[Function]}
  571. to="/org-slug/project-slug/settings/environments/hidden/"
  572. >
  573. <li
  574. className=""
  575. >
  576. <Link
  577. onlyActiveOnIndex={true}
  578. style={Object {}}
  579. to="/org-slug/project-slug/settings/environments/hidden/"
  580. >
  581. <a
  582. onClick={[Function]}
  583. style={Object {}}
  584. >
  585. Hidden
  586. </a>
  587. </Link>
  588. </li>
  589. </ListLink>
  590. </ul>
  591. </NavTabs>
  592. </div>
  593. </div>
  594. </Wrapper>
  595. </SettingsPageHeading>
  596. <PermissionAlert
  597. access={
  598. Array [
  599. "project:write",
  600. ]
  601. }
  602. >
  603. <AccessContainer
  604. access={
  605. Array [
  606. "project:write",
  607. ]
  608. }
  609. >
  610. <Access
  611. access={
  612. Array [
  613. "project:write",
  614. ]
  615. }
  616. configUser={
  617. Object {
  618. "email": "foo@example.com",
  619. "flags": Object {
  620. "newsletter_consent_prompt": false,
  621. },
  622. "hasPasswordAuth": true,
  623. "id": "1",
  624. "isAuthenticated": true,
  625. "name": "Foo Bar",
  626. "options": Object {
  627. "timezone": "UTC",
  628. },
  629. "permissions": Set {},
  630. "username": "foo@example.com",
  631. }
  632. }
  633. organization={
  634. Object {
  635. "access": Array [
  636. "org:read",
  637. "org:write",
  638. "org:admin",
  639. "project:read",
  640. "project:write",
  641. "project:admin",
  642. "team:read",
  643. "team:write",
  644. "team:admin",
  645. ],
  646. "features": Array [],
  647. "id": "3",
  648. "name": "Organization Name",
  649. "onboardingTasks": Array [],
  650. "projects": Array [],
  651. "scrapeJavaScript": true,
  652. "slug": "org-slug",
  653. "status": Object {
  654. "id": "active",
  655. "name": "active",
  656. },
  657. "teams": Array [],
  658. }
  659. }
  660. renderNoAccessMessage={false}
  661. requireAll={true}
  662. />
  663. </AccessContainer>
  664. </PermissionAlert>
  665. <Panel>
  666. <Component
  667. className="css-yahxlu-Panel e1laxa7d0"
  668. >
  669. <div
  670. className="css-yahxlu-Panel e1laxa7d0"
  671. >
  672. <PanelHeader>
  673. <Component
  674. className="css-xhx6pj-PanelHeader-getPadding e1p8v8nv0"
  675. >
  676. <Flex
  677. align="center"
  678. className="css-xhx6pj-PanelHeader-getPadding e1p8v8nv0"
  679. justify="space-between"
  680. >
  681. <Base
  682. align="center"
  683. className="e1p8v8nv0 css-b7ices-PanelHeader-getPadding"
  684. justify="space-between"
  685. >
  686. <div
  687. className="e1p8v8nv0 css-b7ices-PanelHeader-getPadding"
  688. is={null}
  689. >
  690. Active Environments
  691. </div>
  692. </Base>
  693. </Flex>
  694. </Component>
  695. </PanelHeader>
  696. <PanelBody
  697. direction="column"
  698. disablePadding={true}
  699. flex={false}
  700. >
  701. <div
  702. className="css-9vq8an-textStyles"
  703. >
  704. <EnvironmentRow
  705. environment={
  706. Object {
  707. "displayName": "All Environments",
  708. "id": "__all_environments__",
  709. "name": "__all_environments__",
  710. }
  711. }
  712. isDefault={false}
  713. isSystemRow={true}
  714. name="__all_environments__"
  715. onSetAsDefault={[Function]}
  716. shouldShowSetDefault={true}
  717. >
  718. <PanelItem
  719. align="center"
  720. justify="space-between"
  721. p={2}
  722. >
  723. <Base
  724. align="center"
  725. className="css-1uaastv-PanelItem eo8n7lk0"
  726. justify="space-between"
  727. p={2}
  728. >
  729. <div
  730. className="css-1uaastv-PanelItem eo8n7lk0"
  731. is={null}
  732. >
  733. <Flex
  734. align="center"
  735. >
  736. <Base
  737. align="center"
  738. className="css-5ipae5"
  739. >
  740. <div
  741. className="css-5ipae5"
  742. is={null}
  743. >
  744. All Environments
  745. </div>
  746. </Base>
  747. </Flex>
  748. <AccessContainer
  749. access={
  750. Array [
  751. "project:write",
  752. ]
  753. }
  754. >
  755. <Access
  756. access={
  757. Array [
  758. "project:write",
  759. ]
  760. }
  761. configUser={
  762. Object {
  763. "email": "foo@example.com",
  764. "flags": Object {
  765. "newsletter_consent_prompt": false,
  766. },
  767. "hasPasswordAuth": true,
  768. "id": "1",
  769. "isAuthenticated": true,
  770. "name": "Foo Bar",
  771. "options": Object {
  772. "timezone": "UTC",
  773. },
  774. "permissions": Set {},
  775. "username": "foo@example.com",
  776. }
  777. }
  778. organization={
  779. Object {
  780. "access": Array [
  781. "org:read",
  782. "org:write",
  783. "org:admin",
  784. "project:read",
  785. "project:write",
  786. "project:admin",
  787. "team:read",
  788. "team:write",
  789. "team:admin",
  790. ],
  791. "features": Array [],
  792. "id": "3",
  793. "name": "Organization Name",
  794. "onboardingTasks": Array [],
  795. "projects": Array [],
  796. "scrapeJavaScript": true,
  797. "slug": "org-slug",
  798. "status": Object {
  799. "id": "active",
  800. "name": "active",
  801. },
  802. "teams": Array [],
  803. }
  804. }
  805. renderNoAccessMessage={false}
  806. requireAll={true}
  807. >
  808. <div>
  809. <EnvironmentButton
  810. disabled={false}
  811. onClick={[Function]}
  812. size="xsmall"
  813. >
  814. <Button
  815. className="css-10adnmx-EnvironmentButton ezuela50"
  816. disabled={false}
  817. onClick={[Function]}
  818. size="xsmall"
  819. >
  820. <StyledButton
  821. aria-label="Set as default"
  822. className="css-10adnmx-EnvironmentButton ezuela50"
  823. disabled={false}
  824. onClick={[Function]}
  825. role="button"
  826. size="xsmall"
  827. >
  828. <Component
  829. aria-label="Set as default"
  830. className="ezuela50 css-fp1reu-StyledButton-getColors-EnvironmentButton eqrebog0"
  831. disabled={false}
  832. onClick={[Function]}
  833. role="button"
  834. size="xsmall"
  835. >
  836. <button
  837. aria-label="Set as default"
  838. className="ezuela50 css-fp1reu-StyledButton-getColors-EnvironmentButton eqrebog0"
  839. disabled={false}
  840. onClick={[Function]}
  841. role="button"
  842. size="xsmall"
  843. >
  844. <ButtonLabel
  845. size="xsmall"
  846. >
  847. <Component
  848. className="css-uthd1f-ButtonLabel eqrebog1"
  849. size="xsmall"
  850. >
  851. <span
  852. className="css-uthd1f-ButtonLabel eqrebog1"
  853. >
  854. Set as default
  855. </span>
  856. </Component>
  857. </ButtonLabel>
  858. </button>
  859. </Component>
  860. </StyledButton>
  861. </Button>
  862. </EnvironmentButton>
  863. </div>
  864. </Access>
  865. </AccessContainer>
  866. </div>
  867. </Base>
  868. </PanelItem>
  869. </EnvironmentRow>
  870. <EnvironmentRow
  871. actionText="Hide"
  872. environment={
  873. Object {
  874. "displayName": "Production",
  875. "id": "1",
  876. "name": "production",
  877. "urlRoutingName": "production",
  878. }
  879. }
  880. isDefault={false}
  881. isHidden={false}
  882. key="1"
  883. name="production"
  884. onHide={[Function]}
  885. onSetAsDefault={[Function]}
  886. shouldShowAction={true}
  887. shouldShowSetDefault={true}
  888. >
  889. <PanelItem
  890. align="center"
  891. justify="space-between"
  892. p={2}
  893. >
  894. <Base
  895. align="center"
  896. className="css-1uaastv-PanelItem eo8n7lk0"
  897. justify="space-between"
  898. p={2}
  899. >
  900. <div
  901. className="css-1uaastv-PanelItem eo8n7lk0"
  902. is={null}
  903. >
  904. <Flex
  905. align="center"
  906. >
  907. <Base
  908. align="center"
  909. className="css-5ipae5"
  910. >
  911. <div
  912. className="css-5ipae5"
  913. is={null}
  914. >
  915. production
  916. </div>
  917. </Base>
  918. </Flex>
  919. <AccessContainer
  920. access={
  921. Array [
  922. "project:write",
  923. ]
  924. }
  925. >
  926. <Access
  927. access={
  928. Array [
  929. "project:write",
  930. ]
  931. }
  932. configUser={
  933. Object {
  934. "email": "foo@example.com",
  935. "flags": Object {
  936. "newsletter_consent_prompt": false,
  937. },
  938. "hasPasswordAuth": true,
  939. "id": "1",
  940. "isAuthenticated": true,
  941. "name": "Foo Bar",
  942. "options": Object {
  943. "timezone": "UTC",
  944. },
  945. "permissions": Set {},
  946. "username": "foo@example.com",
  947. }
  948. }
  949. organization={
  950. Object {
  951. "access": Array [
  952. "org:read",
  953. "org:write",
  954. "org:admin",
  955. "project:read",
  956. "project:write",
  957. "project:admin",
  958. "team:read",
  959. "team:write",
  960. "team:admin",
  961. ],
  962. "features": Array [],
  963. "id": "3",
  964. "name": "Organization Name",
  965. "onboardingTasks": Array [],
  966. "projects": Array [],
  967. "scrapeJavaScript": true,
  968. "slug": "org-slug",
  969. "status": Object {
  970. "id": "active",
  971. "name": "active",
  972. },
  973. "teams": Array [],
  974. }
  975. }
  976. renderNoAccessMessage={false}
  977. requireAll={true}
  978. >
  979. <div>
  980. <EnvironmentButton
  981. disabled={false}
  982. onClick={[Function]}
  983. size="xsmall"
  984. >
  985. <Button
  986. className="css-10adnmx-EnvironmentButton ezuela50"
  987. disabled={false}
  988. onClick={[Function]}
  989. size="xsmall"
  990. >
  991. <StyledButton
  992. aria-label="Set as default"
  993. className="css-10adnmx-EnvironmentButton ezuela50"
  994. disabled={false}
  995. onClick={[Function]}
  996. role="button"
  997. size="xsmall"
  998. >
  999. <Component
  1000. aria-label="Set as default"
  1001. className="ezuela50 css-fp1reu-StyledButton-getColors-EnvironmentButton eqrebog0"
  1002. disabled={false}
  1003. onClick={[Function]}
  1004. role="button"
  1005. size="xsmall"
  1006. >
  1007. <button
  1008. aria-label="Set as default"
  1009. className="ezuela50 css-fp1reu-StyledButton-getColors-EnvironmentButton eqrebog0"
  1010. disabled={false}
  1011. onClick={[Function]}
  1012. role="button"
  1013. size="xsmall"
  1014. >
  1015. <ButtonLabel
  1016. size="xsmall"
  1017. >
  1018. <Component
  1019. className="css-uthd1f-ButtonLabel eqrebog1"
  1020. size="xsmall"
  1021. >
  1022. <span
  1023. className="css-uthd1f-ButtonLabel eqrebog1"
  1024. >
  1025. Set as default
  1026. </span>
  1027. </Component>
  1028. </ButtonLabel>
  1029. </button>
  1030. </Component>
  1031. </StyledButton>
  1032. </Button>
  1033. </EnvironmentButton>
  1034. <EnvironmentButton
  1035. disabled={false}
  1036. onClick={[Function]}
  1037. size="xsmall"
  1038. >
  1039. <Button
  1040. className="css-10adnmx-EnvironmentButton ezuela50"
  1041. disabled={false}
  1042. onClick={[Function]}
  1043. size="xsmall"
  1044. >
  1045. <StyledButton
  1046. aria-label="Hide"
  1047. className="css-10adnmx-EnvironmentButton ezuela50"
  1048. disabled={false}
  1049. onClick={[Function]}
  1050. role="button"
  1051. size="xsmall"
  1052. >
  1053. <Component
  1054. aria-label="Hide"
  1055. className="ezuela50 css-fp1reu-StyledButton-getColors-EnvironmentButton eqrebog0"
  1056. disabled={false}
  1057. onClick={[Function]}
  1058. role="button"
  1059. size="xsmall"
  1060. >
  1061. <button
  1062. aria-label="Hide"
  1063. className="ezuela50 css-fp1reu-StyledButton-getColors-EnvironmentButton eqrebog0"
  1064. disabled={false}
  1065. onClick={[Function]}
  1066. role="button"
  1067. size="xsmall"
  1068. >
  1069. <ButtonLabel
  1070. size="xsmall"
  1071. >
  1072. <Component
  1073. className="css-uthd1f-ButtonLabel eqrebog1"
  1074. size="xsmall"
  1075. >
  1076. <span
  1077. className="css-uthd1f-ButtonLabel eqrebog1"
  1078. >
  1079. Hide
  1080. </span>
  1081. </Component>
  1082. </ButtonLabel>
  1083. </button>
  1084. </Component>
  1085. </StyledButton>
  1086. </Button>
  1087. </EnvironmentButton>
  1088. </div>
  1089. </Access>
  1090. </AccessContainer>
  1091. </div>
  1092. </Base>
  1093. </PanelItem>
  1094. </EnvironmentRow>
  1095. <EnvironmentRow
  1096. actionText="Hide"
  1097. environment={
  1098. Object {
  1099. "displayName": "Staging",
  1100. "id": "2",
  1101. "name": "staging",
  1102. "urlRoutingName": "staging",
  1103. }
  1104. }
  1105. isDefault={true}
  1106. isHidden={false}
  1107. key="2"
  1108. name="staging"
  1109. onHide={[Function]}
  1110. onSetAsDefault={[Function]}
  1111. shouldShowAction={true}
  1112. shouldShowSetDefault={false}
  1113. >
  1114. <PanelItem
  1115. align="center"
  1116. justify="space-between"
  1117. p={2}
  1118. >
  1119. <Base
  1120. align="center"
  1121. className="css-1uaastv-PanelItem eo8n7lk0"
  1122. justify="space-between"
  1123. p={2}
  1124. >
  1125. <div
  1126. className="css-1uaastv-PanelItem eo8n7lk0"
  1127. is={null}
  1128. >
  1129. <Flex
  1130. align="center"
  1131. >
  1132. <Base
  1133. align="center"
  1134. className="css-5ipae5"
  1135. >
  1136. <div
  1137. className="css-5ipae5"
  1138. is={null}
  1139. >
  1140. staging
  1141. <Tag
  1142. ml={1}
  1143. priority="success"
  1144. >
  1145. <TagTextStyled
  1146. ml={1}
  1147. priority="success"
  1148. >
  1149. <Component
  1150. className="css-d9oizi-TagTextStyled e6q9yfr0"
  1151. ml={1}
  1152. priority="success"
  1153. >
  1154. <Box
  1155. className="css-d9oizi-TagTextStyled e6q9yfr0"
  1156. ml={1}
  1157. >
  1158. <Base
  1159. className="e6q9yfr0 css-3cvk4g-TagTextStyled"
  1160. ml={1}
  1161. >
  1162. <div
  1163. className="e6q9yfr0 css-3cvk4g-TagTextStyled"
  1164. is={null}
  1165. >
  1166. Default
  1167. </div>
  1168. </Base>
  1169. </Box>
  1170. </Component>
  1171. </TagTextStyled>
  1172. </Tag>
  1173. </div>
  1174. </Base>
  1175. </Flex>
  1176. <AccessContainer
  1177. access={
  1178. Array [
  1179. "project:write",
  1180. ]
  1181. }
  1182. >
  1183. <Access
  1184. access={
  1185. Array [
  1186. "project:write",
  1187. ]
  1188. }
  1189. configUser={
  1190. Object {
  1191. "email": "foo@example.com",
  1192. "flags": Object {
  1193. "newsletter_consent_prompt": false,
  1194. },
  1195. "hasPasswordAuth": true,
  1196. "id": "1",
  1197. "isAuthenticated": true,
  1198. "name": "Foo Bar",
  1199. "options": Object {
  1200. "timezone": "UTC",
  1201. },
  1202. "permissions": Set {},
  1203. "username": "foo@example.com",
  1204. }
  1205. }
  1206. organization={
  1207. Object {
  1208. "access": Array [
  1209. "org:read",
  1210. "org:write",
  1211. "org:admin",
  1212. "project:read",
  1213. "project:write",
  1214. "project:admin",
  1215. "team:read",
  1216. "team:write",
  1217. "team:admin",
  1218. ],
  1219. "features": Array [],
  1220. "id": "3",
  1221. "name": "Organization Name",
  1222. "onboardingTasks": Array [],
  1223. "projects": Array [],
  1224. "scrapeJavaScript": true,
  1225. "slug": "org-slug",
  1226. "status": Object {
  1227. "id": "active",
  1228. "name": "active",
  1229. },
  1230. "teams": Array [],
  1231. }
  1232. }
  1233. renderNoAccessMessage={false}
  1234. requireAll={true}
  1235. >
  1236. <div>
  1237. <EnvironmentButton
  1238. disabled={false}
  1239. onClick={[Function]}
  1240. size="xsmall"
  1241. >
  1242. <Button
  1243. className="css-10adnmx-EnvironmentButton ezuela50"
  1244. disabled={false}
  1245. onClick={[Function]}
  1246. size="xsmall"
  1247. >
  1248. <StyledButton
  1249. aria-label="Hide"
  1250. className="css-10adnmx-EnvironmentButton ezuela50"
  1251. disabled={false}
  1252. onClick={[Function]}
  1253. role="button"
  1254. size="xsmall"
  1255. >
  1256. <Component
  1257. aria-label="Hide"
  1258. className="ezuela50 css-fp1reu-StyledButton-getColors-EnvironmentButton eqrebog0"
  1259. disabled={false}
  1260. onClick={[Function]}
  1261. role="button"
  1262. size="xsmall"
  1263. >
  1264. <button
  1265. aria-label="Hide"
  1266. className="ezuela50 css-fp1reu-StyledButton-getColors-EnvironmentButton eqrebog0"
  1267. disabled={false}
  1268. onClick={[Function]}
  1269. role="button"
  1270. size="xsmall"
  1271. >
  1272. <ButtonLabel
  1273. size="xsmall"
  1274. >
  1275. <Component
  1276. className="css-uthd1f-ButtonLabel eqrebog1"
  1277. size="xsmall"
  1278. >
  1279. <span
  1280. className="css-uthd1f-ButtonLabel eqrebog1"
  1281. >
  1282. Hide
  1283. </span>
  1284. </Component>
  1285. </ButtonLabel>
  1286. </button>
  1287. </Component>
  1288. </StyledButton>
  1289. </Button>
  1290. </EnvironmentButton>
  1291. </div>
  1292. </Access>
  1293. </AccessContainer>
  1294. </div>
  1295. </Base>
  1296. </PanelItem>
  1297. </EnvironmentRow>
  1298. </div>
  1299. </PanelBody>
  1300. </div>
  1301. </Component>
  1302. </Panel>
  1303. </div>
  1304. </ProjectEnvironments>
  1305. `;
  1306. exports[`ProjectEnvironments render hidden renders empty message 1`] = `
  1307. <ProjectEnvironments
  1308. location={
  1309. Object {
  1310. "pathname": "environments/hidden/",
  1311. }
  1312. }
  1313. params={
  1314. Object {
  1315. "orgId": "org-slug",
  1316. "projectId": "project-slug",
  1317. }
  1318. }
  1319. routes={Array []}
  1320. >
  1321. <div>
  1322. <SettingsPageHeading
  1323. noTitleStyles={false}
  1324. tabs={
  1325. <NavTabs
  1326. underlined={true}
  1327. >
  1328. <ListLink
  1329. activeClassName="active"
  1330. index={true}
  1331. isActive={[Function]}
  1332. to="/org-slug/project-slug/settings/environments/"
  1333. >
  1334. Environments
  1335. </ListLink>
  1336. <ListLink
  1337. activeClassName="active"
  1338. index={true}
  1339. isActive={[Function]}
  1340. to="/org-slug/project-slug/settings/environments/hidden/"
  1341. >
  1342. Hidden
  1343. </ListLink>
  1344. </NavTabs>
  1345. }
  1346. title="Manage Environments"
  1347. >
  1348. <Wrapper
  1349. tabs={
  1350. <NavTabs
  1351. underlined={true}
  1352. >
  1353. <ListLink
  1354. activeClassName="active"
  1355. index={true}
  1356. isActive={[Function]}
  1357. to="/org-slug/project-slug/settings/environments/"
  1358. >
  1359. Environments
  1360. </ListLink>
  1361. <ListLink
  1362. activeClassName="active"
  1363. index={true}
  1364. isActive={[Function]}
  1365. to="/org-slug/project-slug/settings/environments/hidden/"
  1366. >
  1367. Hidden
  1368. </ListLink>
  1369. </NavTabs>
  1370. }
  1371. >
  1372. <div
  1373. className="css-1r5ylk7-Wrapper e1kblvez2"
  1374. >
  1375. <Flex
  1376. align="center"
  1377. >
  1378. <Base
  1379. align="center"
  1380. className="css-5ipae5"
  1381. >
  1382. <div
  1383. className="css-5ipae5"
  1384. is={null}
  1385. >
  1386. <Title
  1387. styled={false}
  1388. tabs={
  1389. <NavTabs
  1390. underlined={true}
  1391. >
  1392. <ListLink
  1393. activeClassName="active"
  1394. index={true}
  1395. isActive={[Function]}
  1396. to="/org-slug/project-slug/settings/environments/"
  1397. >
  1398. Environments
  1399. </ListLink>
  1400. <ListLink
  1401. activeClassName="active"
  1402. index={true}
  1403. isActive={[Function]}
  1404. to="/org-slug/project-slug/settings/environments/hidden/"
  1405. >
  1406. Hidden
  1407. </ListLink>
  1408. </NavTabs>
  1409. }
  1410. >
  1411. <Base
  1412. className="css-zs9eah-Title e1kblvez0"
  1413. tabs={
  1414. <NavTabs
  1415. underlined={true}
  1416. >
  1417. <ListLink
  1418. activeClassName="active"
  1419. index={true}
  1420. isActive={[Function]}
  1421. to="/org-slug/project-slug/settings/environments/"
  1422. >
  1423. Environments
  1424. </ListLink>
  1425. <ListLink
  1426. activeClassName="active"
  1427. index={true}
  1428. isActive={[Function]}
  1429. to="/org-slug/project-slug/settings/environments/hidden/"
  1430. >
  1431. Hidden
  1432. </ListLink>
  1433. </NavTabs>
  1434. }
  1435. >
  1436. <div
  1437. className="css-zs9eah-Title e1kblvez0"
  1438. is={null}
  1439. tabs={
  1440. <NavTabs
  1441. underlined={true}
  1442. >
  1443. <ListLink
  1444. activeClassName="active"
  1445. index={true}
  1446. isActive={[Function]}
  1447. to="/org-slug/project-slug/settings/environments/"
  1448. >
  1449. Environments
  1450. </ListLink>
  1451. <ListLink
  1452. activeClassName="active"
  1453. index={true}
  1454. isActive={[Function]}
  1455. to="/org-slug/project-slug/settings/environments/hidden/"
  1456. >
  1457. Hidden
  1458. </ListLink>
  1459. </NavTabs>
  1460. }
  1461. >
  1462. <HeaderTitle>
  1463. <h4
  1464. className="css-1w8ttcn-HeaderTitle e6lvex72"
  1465. >
  1466. Manage Environments
  1467. </h4>
  1468. </HeaderTitle>
  1469. </div>
  1470. </Base>
  1471. </Title>
  1472. </div>
  1473. </Base>
  1474. </Flex>
  1475. <div>
  1476. <NavTabs
  1477. underlined={true}
  1478. >
  1479. <ul
  1480. className="nav nav-tabs border-bottom"
  1481. >
  1482. <ListLink
  1483. activeClassName="active"
  1484. index={true}
  1485. isActive={[Function]}
  1486. to="/org-slug/project-slug/settings/environments/"
  1487. >
  1488. <li
  1489. className=""
  1490. >
  1491. <Link
  1492. onlyActiveOnIndex={true}
  1493. style={Object {}}
  1494. to="/org-slug/project-slug/settings/environments/"
  1495. >
  1496. <a
  1497. onClick={[Function]}
  1498. style={Object {}}
  1499. >
  1500. Environments
  1501. </a>
  1502. </Link>
  1503. </li>
  1504. </ListLink>
  1505. <ListLink
  1506. activeClassName="active"
  1507. index={true}
  1508. isActive={[Function]}
  1509. to="/org-slug/project-slug/settings/environments/hidden/"
  1510. >
  1511. <li
  1512. className="active"
  1513. >
  1514. <Link
  1515. onlyActiveOnIndex={true}
  1516. style={Object {}}
  1517. to="/org-slug/project-slug/settings/environments/hidden/"
  1518. >
  1519. <a
  1520. onClick={[Function]}
  1521. style={Object {}}
  1522. >
  1523. Hidden
  1524. </a>
  1525. </Link>
  1526. </li>
  1527. </ListLink>
  1528. </ul>
  1529. </NavTabs>
  1530. </div>
  1531. </div>
  1532. </Wrapper>
  1533. </SettingsPageHeading>
  1534. <PermissionAlert
  1535. access={
  1536. Array [
  1537. "project:write",
  1538. ]
  1539. }
  1540. >
  1541. <AccessContainer
  1542. access={
  1543. Array [
  1544. "project:write",
  1545. ]
  1546. }
  1547. >
  1548. <Access
  1549. access={
  1550. Array [
  1551. "project:write",
  1552. ]
  1553. }
  1554. configUser={
  1555. Object {
  1556. "email": "foo@example.com",
  1557. "flags": Object {
  1558. "newsletter_consent_prompt": false,
  1559. },
  1560. "hasPasswordAuth": true,
  1561. "id": "1",
  1562. "isAuthenticated": true,
  1563. "name": "Foo Bar",
  1564. "options": Object {
  1565. "timezone": "UTC",
  1566. },
  1567. "permissions": Set {},
  1568. "username": "foo@example.com",
  1569. }
  1570. }
  1571. organization={
  1572. Object {
  1573. "access": Array [
  1574. "org:read",
  1575. "org:write",
  1576. "org:admin",
  1577. "project:read",
  1578. "project:write",
  1579. "project:admin",
  1580. "team:read",
  1581. "team:write",
  1582. "team:admin",
  1583. ],
  1584. "features": Array [],
  1585. "id": "3",
  1586. "name": "Organization Name",
  1587. "onboardingTasks": Array [],
  1588. "projects": Array [],
  1589. "scrapeJavaScript": true,
  1590. "slug": "org-slug",
  1591. "status": Object {
  1592. "id": "active",
  1593. "name": "active",
  1594. },
  1595. "teams": Array [],
  1596. }
  1597. }
  1598. renderNoAccessMessage={false}
  1599. requireAll={true}
  1600. />
  1601. </AccessContainer>
  1602. </PermissionAlert>
  1603. <Panel>
  1604. <Component
  1605. className="css-yahxlu-Panel e1laxa7d0"
  1606. >
  1607. <div
  1608. className="css-yahxlu-Panel e1laxa7d0"
  1609. >
  1610. <PanelHeader>
  1611. <Component
  1612. className="css-xhx6pj-PanelHeader-getPadding e1p8v8nv0"
  1613. >
  1614. <Flex
  1615. align="center"
  1616. className="css-xhx6pj-PanelHeader-getPadding e1p8v8nv0"
  1617. justify="space-between"
  1618. >
  1619. <Base
  1620. align="center"
  1621. className="e1p8v8nv0 css-b7ices-PanelHeader-getPadding"
  1622. justify="space-between"
  1623. >
  1624. <div
  1625. className="e1p8v8nv0 css-b7ices-PanelHeader-getPadding"
  1626. is={null}
  1627. >
  1628. Hidden
  1629. </div>
  1630. </Base>
  1631. </Flex>
  1632. </Component>
  1633. </PanelHeader>
  1634. <PanelBody
  1635. direction="column"
  1636. disablePadding={true}
  1637. flex={false}
  1638. >
  1639. <div
  1640. className="css-9vq8an-textStyles"
  1641. >
  1642. <EmptyMessage>
  1643. <Wrapper>
  1644. <div
  1645. className="css-ev9qm0-Wrapper eh488yo0"
  1646. >
  1647. <Description
  1648. noMargin={true}
  1649. >
  1650. <Component
  1651. className="css-pwn5v-TextBlock-Description-MarginStyles eh488yo1"
  1652. noMargin={true}
  1653. >
  1654. <div
  1655. className="css-pwn5v-TextBlock-Description-MarginStyles eh488yo1"
  1656. >
  1657. You don't have any hidden environments.
  1658. </div>
  1659. </Component>
  1660. </Description>
  1661. </div>
  1662. </Wrapper>
  1663. </EmptyMessage>
  1664. </div>
  1665. </PanelBody>
  1666. </div>
  1667. </Component>
  1668. </Panel>
  1669. </div>
  1670. </ProjectEnvironments>
  1671. `;
  1672. exports[`ProjectEnvironments render hidden renders environment list 1`] = `
  1673. <ProjectEnvironments
  1674. location={
  1675. Object {
  1676. "pathname": "environments/hidden/",
  1677. }
  1678. }
  1679. params={
  1680. Object {
  1681. "orgId": "org-slug",
  1682. "projectId": "project-slug",
  1683. }
  1684. }
  1685. routes={Array []}
  1686. >
  1687. <div>
  1688. <SettingsPageHeading
  1689. noTitleStyles={false}
  1690. tabs={
  1691. <NavTabs
  1692. underlined={true}
  1693. >
  1694. <ListLink
  1695. activeClassName="active"
  1696. index={true}
  1697. isActive={[Function]}
  1698. to="/org-slug/project-slug/settings/environments/"
  1699. >
  1700. Environments
  1701. </ListLink>
  1702. <ListLink
  1703. activeClassName="active"
  1704. index={true}
  1705. isActive={[Function]}
  1706. to="/org-slug/project-slug/settings/environments/hidden/"
  1707. >
  1708. Hidden
  1709. </ListLink>
  1710. </NavTabs>
  1711. }
  1712. title="Manage Environments"
  1713. >
  1714. <Wrapper
  1715. tabs={
  1716. <NavTabs
  1717. underlined={true}
  1718. >
  1719. <ListLink
  1720. activeClassName="active"
  1721. index={true}
  1722. isActive={[Function]}
  1723. to="/org-slug/project-slug/settings/environments/"
  1724. >
  1725. Environments
  1726. </ListLink>
  1727. <ListLink
  1728. activeClassName="active"
  1729. index={true}
  1730. isActive={[Function]}
  1731. to="/org-slug/project-slug/settings/environments/hidden/"
  1732. >
  1733. Hidden
  1734. </ListLink>
  1735. </NavTabs>
  1736. }
  1737. >
  1738. <div
  1739. className="css-1r5ylk7-Wrapper e1kblvez2"
  1740. >
  1741. <Flex
  1742. align="center"
  1743. >
  1744. <Base
  1745. align="center"
  1746. className="css-5ipae5"
  1747. >
  1748. <div
  1749. className="css-5ipae5"
  1750. is={null}
  1751. >
  1752. <Title
  1753. styled={false}
  1754. tabs={
  1755. <NavTabs
  1756. underlined={true}
  1757. >
  1758. <ListLink
  1759. activeClassName="active"
  1760. index={true}
  1761. isActive={[Function]}
  1762. to="/org-slug/project-slug/settings/environments/"
  1763. >
  1764. Environments
  1765. </ListLink>
  1766. <ListLink
  1767. activeClassName="active"
  1768. index={true}
  1769. isActive={[Function]}
  1770. to="/org-slug/project-slug/settings/environments/hidden/"
  1771. >
  1772. Hidden
  1773. </ListLink>
  1774. </NavTabs>
  1775. }
  1776. >
  1777. <Base
  1778. className="css-zs9eah-Title e1kblvez0"
  1779. tabs={
  1780. <NavTabs
  1781. underlined={true}
  1782. >
  1783. <ListLink
  1784. activeClassName="active"
  1785. index={true}
  1786. isActive={[Function]}
  1787. to="/org-slug/project-slug/settings/environments/"
  1788. >
  1789. Environments
  1790. </ListLink>
  1791. <ListLink
  1792. activeClassName="active"
  1793. index={true}
  1794. isActive={[Function]}
  1795. to="/org-slug/project-slug/settings/environments/hidden/"
  1796. >
  1797. Hidden
  1798. </ListLink>
  1799. </NavTabs>
  1800. }
  1801. >
  1802. <div
  1803. className="css-zs9eah-Title e1kblvez0"
  1804. is={null}
  1805. tabs={
  1806. <NavTabs
  1807. underlined={true}
  1808. >
  1809. <ListLink
  1810. activeClassName="active"
  1811. index={true}
  1812. isActive={[Function]}
  1813. to="/org-slug/project-slug/settings/environments/"
  1814. >
  1815. Environments
  1816. </ListLink>
  1817. <ListLink
  1818. activeClassName="active"
  1819. index={true}
  1820. isActive={[Function]}
  1821. to="/org-slug/project-slug/settings/environments/hidden/"
  1822. >
  1823. Hidden
  1824. </ListLink>
  1825. </NavTabs>
  1826. }
  1827. >
  1828. <HeaderTitle>
  1829. <h4
  1830. className="css-1w8ttcn-HeaderTitle e6lvex72"
  1831. >
  1832. Manage Environments
  1833. </h4>
  1834. </HeaderTitle>
  1835. </div>
  1836. </Base>
  1837. </Title>
  1838. </div>
  1839. </Base>
  1840. </Flex>
  1841. <div>
  1842. <NavTabs
  1843. underlined={true}
  1844. >
  1845. <ul
  1846. className="nav nav-tabs border-bottom"
  1847. >
  1848. <ListLink
  1849. activeClassName="active"
  1850. index={true}
  1851. isActive={[Function]}
  1852. to="/org-slug/project-slug/settings/environments/"
  1853. >
  1854. <li
  1855. className=""
  1856. >
  1857. <Link
  1858. onlyActiveOnIndex={true}
  1859. style={Object {}}
  1860. to="/org-slug/project-slug/settings/environments/"
  1861. >
  1862. <a
  1863. onClick={[Function]}
  1864. style={Object {}}
  1865. >
  1866. Environments
  1867. </a>
  1868. </Link>
  1869. </li>
  1870. </ListLink>
  1871. <ListLink
  1872. activeClassName="active"
  1873. index={true}
  1874. isActive={[Function]}
  1875. to="/org-slug/project-slug/settings/environments/hidden/"
  1876. >
  1877. <li
  1878. className="active"
  1879. >
  1880. <Link
  1881. onlyActiveOnIndex={true}
  1882. style={Object {}}
  1883. to="/org-slug/project-slug/settings/environments/hidden/"
  1884. >
  1885. <a
  1886. onClick={[Function]}
  1887. style={Object {}}
  1888. >
  1889. Hidden
  1890. </a>
  1891. </Link>
  1892. </li>
  1893. </ListLink>
  1894. </ul>
  1895. </NavTabs>
  1896. </div>
  1897. </div>
  1898. </Wrapper>
  1899. </SettingsPageHeading>
  1900. <PermissionAlert
  1901. access={
  1902. Array [
  1903. "project:write",
  1904. ]
  1905. }
  1906. >
  1907. <AccessContainer
  1908. access={
  1909. Array [
  1910. "project:write",
  1911. ]
  1912. }
  1913. >
  1914. <Access
  1915. access={
  1916. Array [
  1917. "project:write",
  1918. ]
  1919. }
  1920. configUser={
  1921. Object {
  1922. "email": "foo@example.com",
  1923. "flags": Object {
  1924. "newsletter_consent_prompt": false,
  1925. },
  1926. "hasPasswordAuth": true,
  1927. "id": "1",
  1928. "isAuthenticated": true,
  1929. "name": "Foo Bar",
  1930. "options": Object {
  1931. "timezone": "UTC",
  1932. },
  1933. "permissions": Set {},
  1934. "username": "foo@example.com",
  1935. }
  1936. }
  1937. organization={
  1938. Object {
  1939. "access": Array [
  1940. "org:read",
  1941. "org:write",
  1942. "org:admin",
  1943. "project:read",
  1944. "project:write",
  1945. "project:admin",
  1946. "team:read",
  1947. "team:write",
  1948. "team:admin",
  1949. ],
  1950. "features": Array [],
  1951. "id": "3",
  1952. "name": "Organization Name",
  1953. "onboardingTasks": Array [],
  1954. "projects": Array [],
  1955. "scrapeJavaScript": true,
  1956. "slug": "org-slug",
  1957. "status": Object {
  1958. "id": "active",
  1959. "name": "active",
  1960. },
  1961. "teams": Array [],
  1962. }
  1963. }
  1964. renderNoAccessMessage={false}
  1965. requireAll={true}
  1966. />
  1967. </AccessContainer>
  1968. </PermissionAlert>
  1969. <Panel>
  1970. <Component
  1971. className="css-yahxlu-Panel e1laxa7d0"
  1972. >
  1973. <div
  1974. className="css-yahxlu-Panel e1laxa7d0"
  1975. >
  1976. <PanelHeader>
  1977. <Component
  1978. className="css-xhx6pj-PanelHeader-getPadding e1p8v8nv0"
  1979. >
  1980. <Flex
  1981. align="center"
  1982. className="css-xhx6pj-PanelHeader-getPadding e1p8v8nv0"
  1983. justify="space-between"
  1984. >
  1985. <Base
  1986. align="center"
  1987. className="e1p8v8nv0 css-b7ices-PanelHeader-getPadding"
  1988. justify="space-between"
  1989. >
  1990. <div
  1991. className="e1p8v8nv0 css-b7ices-PanelHeader-getPadding"
  1992. is={null}
  1993. >
  1994. Hidden
  1995. </div>
  1996. </Base>
  1997. </Flex>
  1998. </Component>
  1999. </PanelHeader>
  2000. <PanelBody
  2001. direction="column"
  2002. disablePadding={true}
  2003. flex={false}
  2004. >
  2005. <div
  2006. className="css-9vq8an-textStyles"
  2007. >
  2008. <EnvironmentRow
  2009. actionText="Show"
  2010. environment={
  2011. Object {
  2012. "displayName": "Zzz",
  2013. "id": "1",
  2014. "name": "zzz",
  2015. "urlRoutingName": "zzz",
  2016. }
  2017. }
  2018. isDefault={false}
  2019. isHidden={true}
  2020. key="1"
  2021. name="zzz"
  2022. onHide={[Function]}
  2023. onSetAsDefault={[Function]}
  2024. shouldShowAction={true}
  2025. shouldShowSetDefault={false}
  2026. >
  2027. <PanelItem
  2028. align="center"
  2029. justify="space-between"
  2030. p={2}
  2031. >
  2032. <Base
  2033. align="center"
  2034. className="css-1uaastv-PanelItem eo8n7lk0"
  2035. justify="space-between"
  2036. p={2}
  2037. >
  2038. <div
  2039. className="css-1uaastv-PanelItem eo8n7lk0"
  2040. is={null}
  2041. >
  2042. <Flex
  2043. align="center"
  2044. >
  2045. <Base
  2046. align="center"
  2047. className="css-5ipae5"
  2048. >
  2049. <div
  2050. className="css-5ipae5"
  2051. is={null}
  2052. >
  2053. zzz
  2054. </div>
  2055. </Base>
  2056. </Flex>
  2057. <AccessContainer
  2058. access={
  2059. Array [
  2060. "project:write",
  2061. ]
  2062. }
  2063. >
  2064. <Access
  2065. access={
  2066. Array [
  2067. "project:write",
  2068. ]
  2069. }
  2070. configUser={
  2071. Object {
  2072. "email": "foo@example.com",
  2073. "flags": Object {
  2074. "newsletter_consent_prompt": false,
  2075. },
  2076. "hasPasswordAuth": true,
  2077. "id": "1",
  2078. "isAuthenticated": true,
  2079. "name": "Foo Bar",
  2080. "options": Object {
  2081. "timezone": "UTC",
  2082. },
  2083. "permissions": Set {},
  2084. "username": "foo@example.com",
  2085. }
  2086. }
  2087. organization={
  2088. Object {
  2089. "access": Array [
  2090. "org:read",
  2091. "org:write",
  2092. "org:admin",
  2093. "project:read",
  2094. "project:write",
  2095. "project:admin",
  2096. "team:read",
  2097. "team:write",
  2098. "team:admin",
  2099. ],
  2100. "features": Array [],
  2101. "id": "3",
  2102. "name": "Organization Name",
  2103. "onboardingTasks": Array [],
  2104. "projects": Array [],
  2105. "scrapeJavaScript": true,
  2106. "slug": "org-slug",
  2107. "status": Object {
  2108. "id": "active",
  2109. "name": "active",
  2110. },
  2111. "teams": Array [],
  2112. }
  2113. }
  2114. renderNoAccessMessage={false}
  2115. requireAll={true}
  2116. >
  2117. <div>
  2118. <EnvironmentButton
  2119. disabled={false}
  2120. onClick={[Function]}
  2121. size="xsmall"
  2122. >
  2123. <Button
  2124. className="css-10adnmx-EnvironmentButton ezuela50"
  2125. disabled={false}
  2126. onClick={[Function]}
  2127. size="xsmall"
  2128. >
  2129. <StyledButton
  2130. aria-label="Show"
  2131. className="css-10adnmx-EnvironmentButton ezuela50"
  2132. disabled={false}
  2133. onClick={[Function]}
  2134. role="button"
  2135. size="xsmall"
  2136. >
  2137. <Component
  2138. aria-label="Show"
  2139. className="ezuela50 css-fp1reu-StyledButton-getColors-EnvironmentButton eqrebog0"
  2140. disabled={false}
  2141. onClick={[Function]}
  2142. role="button"
  2143. size="xsmall"
  2144. >
  2145. <button
  2146. aria-label="Show"
  2147. className="ezuela50 css-fp1reu-StyledButton-getColors-EnvironmentButton eqrebog0"
  2148. disabled={false}
  2149. onClick={[Function]}
  2150. role="button"
  2151. size="xsmall"
  2152. >
  2153. <ButtonLabel
  2154. size="xsmall"
  2155. >
  2156. <Component
  2157. className="css-uthd1f-ButtonLabel eqrebog1"
  2158. size="xsmall"
  2159. >
  2160. <span
  2161. className="css-uthd1f-ButtonLabel eqrebog1"
  2162. >
  2163. Show
  2164. </span>
  2165. </Component>
  2166. </ButtonLabel>
  2167. </button>
  2168. </Component>
  2169. </StyledButton>
  2170. </Button>
  2171. </EnvironmentButton>
  2172. </div>
  2173. </Access>
  2174. </AccessContainer>
  2175. </div>
  2176. </Base>
  2177. </PanelItem>
  2178. </EnvironmentRow>
  2179. </div>
  2180. </PanelBody>
  2181. </div>
  2182. </Component>
  2183. </Panel>
  2184. </div>
  2185. </ProjectEnvironments>
  2186. `;