index.js 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. 'use strict';
  2. allure.api.addTranslation('en', {
  3. tab: {
  4. behaviors: {
  5. name: 'Behaviors'
  6. }
  7. },
  8. widget: {
  9. behaviors: {
  10. name: 'Features by stories',
  11. showAll: 'show all'
  12. }
  13. }
  14. });
  15. allure.api.addTranslation('ru', {
  16. tab: {
  17. behaviors: {
  18. name: 'Функциональность'
  19. }
  20. },
  21. widget: {
  22. behaviors: {
  23. name: 'Функциональность',
  24. showAll: 'показать все'
  25. }
  26. }
  27. });
  28. allure.api.addTranslation('zh', {
  29. tab: {
  30. behaviors: {
  31. name: '功能'
  32. }
  33. },
  34. widget: {
  35. behaviors: {
  36. name: '特性场景',
  37. showAll: '显示所有'
  38. }
  39. }
  40. });
  41. allure.api.addTranslation('de', {
  42. tab: {
  43. behaviors: {
  44. name: 'Verhalten'
  45. }
  46. },
  47. widget: {
  48. behaviors: {
  49. name: 'Features nach Stories',
  50. showAll: 'Zeige alle'
  51. }
  52. }
  53. });
  54. allure.api.addTranslation('nl', {
  55. tab: {
  56. behaviors: {
  57. name: 'Functionaliteit'
  58. }
  59. },
  60. widget: {
  61. behaviors: {
  62. name: 'Features en story’s',
  63. showAll: 'Toon alle'
  64. }
  65. }
  66. });
  67. allure.api.addTranslation('he', {
  68. tab: {
  69. behaviors: {
  70. name: 'התנהגויות'
  71. }
  72. },
  73. widget: {
  74. behaviors: {
  75. name: 'תכונות לפי סיפורי משתמש',
  76. showAll: 'הצג הכול'
  77. }
  78. }
  79. });
  80. allure.api.addTranslation('br', {
  81. tab: {
  82. behaviors: {
  83. name: 'Comportamentos'
  84. }
  85. },
  86. widget: {
  87. behaviors: {
  88. name: 'Funcionalidades por história',
  89. showAll: 'Mostrar tudo'
  90. }
  91. }
  92. });
  93. allure.api.addTranslation('ja', {
  94. tab: {
  95. behaviors: {
  96. name: '振る舞い'
  97. }
  98. },
  99. widget: {
  100. behaviors: {
  101. name: 'ストーリー別の機能',
  102. showAll: '全て表示'
  103. }
  104. }
  105. });
  106. allure.api.addTranslation('es', {
  107. tab: {
  108. behaviors: {
  109. name: 'Funcionalidades'
  110. }
  111. },
  112. widget: {
  113. behaviors: {
  114. name: 'Funcionalidades por Historias de Usuario',
  115. showAll: 'mostrar todo'
  116. }
  117. }
  118. });
  119. allure.api.addTranslation('kr', {
  120. tab: {
  121. behaviors: {
  122. name: '동작'
  123. }
  124. },
  125. widget: {
  126. behaviors: {
  127. name: '스토리별 기능',
  128. showAll: '전체 보기'
  129. }
  130. }
  131. });
  132. allure.api.addTranslation('fr', {
  133. tab: {
  134. behaviors: {
  135. name: 'Comportements'
  136. }
  137. },
  138. widget: {
  139. behaviors: {
  140. name: 'Thèmes par histoires',
  141. showAll: 'Montrer tout'
  142. }
  143. }
  144. });
  145. allure.api.addTranslation('pl', {
  146. tab: {
  147. behaviors: {
  148. name: 'Zachowania'
  149. }
  150. },
  151. widget: {
  152. behaviors: {
  153. name: 'Funkcje według historii',
  154. showAll: 'pokaż wszystko'
  155. }
  156. }
  157. });
  158. allure.api.addTab('behaviors', {
  159. title: 'tab.behaviors.name', icon: 'fa fa-list',
  160. route: 'behaviors(/)(:testGroup)(/)(:testResult)(/)(:testResultTab)(/)',
  161. onEnter: (function (testGroup, testResult, testResultTab) {
  162. return new allure.components.TreeLayout({
  163. testGroup: testGroup,
  164. testResult: testResult,
  165. testResultTab: testResultTab,
  166. tabName: 'tab.behaviors.name',
  167. baseUrl: 'behaviors',
  168. url: 'data/behaviors.json',
  169. csvUrl: 'data/behaviors.csv'
  170. });
  171. })
  172. });
  173. allure.api.addWidget('widgets', 'behaviors', allure.components.WidgetStatusView.extend({
  174. rowTag: 'a',
  175. title: 'widget.behaviors.name',
  176. baseUrl: 'behaviors',
  177. showLinks: true
  178. }));