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.

LoginSonarCloud-test.tsx.snap 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`logs in with identity provider 1`] = `
  3. <Fragment>
  4. <div
  5. className="sonarcloud-login-page boxed-group boxed-group-inner"
  6. id="login_form"
  7. >
  8. <div
  9. className="text-center"
  10. >
  11. <img
  12. alt="SonarCloud logo"
  13. height={36}
  14. src="/images/sonarcloud-square-logo.svg"
  15. width={36}
  16. />
  17. <h1
  18. className="sonarcloud-login-title"
  19. >
  20. login.login_or_signup_to_sonarcloud
  21. </h1>
  22. </div>
  23. <OAuthProviders
  24. className="sonarcloud-oauth-providers"
  25. formatLabel={[Function]}
  26. identityProviders={
  27. Array [
  28. Object {
  29. "backgroundColor": "#000",
  30. "iconPath": "/some/path",
  31. "key": "foo",
  32. "name": "foo",
  33. },
  34. ]
  35. }
  36. returnTo=""
  37. />
  38. </div>
  39. </Fragment>
  40. `;
  41. exports[`logs in with simple form 1`] = `
  42. <Fragment>
  43. <div
  44. className="sonarcloud-login-page boxed-group boxed-group-inner sonarcloud-login-page-large"
  45. id="login_form"
  46. >
  47. <div
  48. className="text-center"
  49. >
  50. <img
  51. alt="SonarCloud logo"
  52. height={36}
  53. src="/images/sonarcloud-square-logo.svg"
  54. width={36}
  55. />
  56. <h1
  57. className="sonarcloud-login-title"
  58. >
  59. login.login_or_signup_to_sonarcloud
  60. </h1>
  61. </div>
  62. <LoginForm
  63. onSubmit={[MockFunction]}
  64. returnTo=""
  65. />
  66. </div>
  67. </Fragment>
  68. `;
  69. exports[`logs in with simple form 2`] = `
  70. <Fragment>
  71. <div
  72. className="sonarcloud-login-page boxed-group boxed-group-inner sonarcloud-login-page-large"
  73. id="login_form"
  74. >
  75. <div
  76. className="text-center"
  77. >
  78. <img
  79. alt="SonarCloud logo"
  80. height={36}
  81. src="/images/sonarcloud-square-logo.svg"
  82. width={36}
  83. />
  84. <h1
  85. className="sonarcloud-login-title"
  86. >
  87. login.login_or_signup_to_sonarcloud
  88. </h1>
  89. </div>
  90. <LoginForm
  91. onSubmit={[MockFunction]}
  92. returnTo=""
  93. />
  94. </div>
  95. </Fragment>
  96. `;
  97. exports[`shows an warning message if there's an authorization error 1`] = `
  98. <Fragment>
  99. <Alert
  100. className="sonarcloud-login-alert"
  101. display="block"
  102. variant="warning"
  103. >
  104. login.unauthorized_access_alert
  105. </Alert>
  106. <div
  107. className="sonarcloud-login-page boxed-group boxed-group-inner"
  108. id="login_form"
  109. >
  110. <div
  111. className="text-center"
  112. >
  113. <img
  114. alt="SonarCloud logo"
  115. height={36}
  116. src="/images/sonarcloud-square-logo.svg"
  117. width={36}
  118. />
  119. <h1
  120. className="sonarcloud-login-title"
  121. >
  122. login.login_or_signup_to_sonarcloud
  123. </h1>
  124. </div>
  125. <OAuthProviders
  126. className="sonarcloud-oauth-providers"
  127. formatLabel={[Function]}
  128. identityProviders={
  129. Array [
  130. Object {
  131. "backgroundColor": "#000",
  132. "iconPath": "/some/path",
  133. "key": "foo",
  134. "name": "foo",
  135. },
  136. ]
  137. }
  138. returnTo=""
  139. />
  140. <div
  141. className="sonarcloud-login-cancel"
  142. >
  143. <div
  144. className="horizontal-pipe-separator"
  145. >
  146. <div
  147. className="horizontal-separator"
  148. />
  149. <span
  150. className="note"
  151. >
  152. or
  153. </span>
  154. <div
  155. className="horizontal-separator"
  156. />
  157. </div>
  158. <a
  159. href="/"
  160. >
  161. go_back_to_homepage
  162. </a>
  163. </div>
  164. </div>
  165. </Fragment>
  166. `;