@watermarkinsights/ripple 5.3.1-2 → 5.4.0-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (356) hide show
  1. package/dist/{esm/global-e7e100cd.js → cjs/app-globals-338dc72a.js} +10 -1
  2. package/dist/cjs/{chartFunctions-0238043b.js → chartFunctions-9c8c61ef.js} +4 -4
  3. package/dist/cjs/{functions-3be85c6d.js → functions-05e7ad5a.js} +104 -7
  4. package/dist/cjs/index-788526f5.js +1851 -0
  5. package/dist/cjs/{intl-567eb9d8.js → intl-2b550151.js} +1 -1
  6. package/dist/cjs/loader.cjs.js +4 -3
  7. package/dist/cjs/priv-calendar.cjs.entry.js +6 -5
  8. package/dist/cjs/priv-chart-popover.cjs.entry.js +6 -5
  9. package/dist/cjs/priv-navigator-button.cjs.entry.js +4 -3
  10. package/dist/cjs/priv-navigator-item.cjs.entry.js +4 -3
  11. package/dist/cjs/ripple.cjs.js +12 -11
  12. package/dist/cjs/wm-action-menu_2.cjs.entry.js +8 -6
  13. package/dist/cjs/wm-button.cjs.entry.js +5 -4
  14. package/dist/cjs/wm-chart-slice.cjs.entry.js +1 -1
  15. package/dist/cjs/wm-chart.cjs.entry.js +7 -6
  16. package/dist/cjs/wm-date-range.cjs.entry.js +8 -7
  17. package/dist/cjs/wm-datepicker.cjs.entry.js +8 -7
  18. package/dist/cjs/wm-file-list.cjs.entry.js +4 -3
  19. package/dist/cjs/wm-file.cjs.entry.js +5 -4
  20. package/dist/cjs/wm-input.cjs.entry.js +6 -5
  21. package/dist/cjs/wm-line-chart.cjs.entry.js +15 -14
  22. package/dist/cjs/wm-modal-footer.cjs.entry.js +4 -3
  23. package/dist/cjs/wm-modal-header.cjs.entry.js +6 -5
  24. package/dist/cjs/wm-modal.cjs.entry.js +6 -5
  25. package/dist/cjs/wm-navigation_3.cjs.entry.js +13 -10
  26. package/dist/cjs/wm-navigator.cjs.entry.js +4 -3
  27. package/dist/cjs/wm-option_2.cjs.entry.js +10 -8
  28. package/dist/cjs/wm-pagination.cjs.entry.js +5 -4
  29. package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +9 -7
  30. package/dist/cjs/wm-search.cjs.entry.js +7 -6
  31. package/dist/cjs/wm-snackbar.cjs.entry.js +7 -6
  32. package/dist/cjs/wm-tab-item_3.cjs.entry.js +11 -8
  33. package/dist/cjs/wm-tag-input.cjs.entry.js +8 -7
  34. package/dist/cjs/wm-tag-option.cjs.entry.js +2 -2
  35. package/dist/cjs/wm-textarea.cjs.entry.js +6 -5
  36. package/dist/cjs/wm-timepicker.cjs.entry.js +6 -5
  37. package/dist/cjs/wm-toggletip.cjs.entry.js +6 -5
  38. package/dist/cjs/wm-uploader.cjs.entry.js +7 -6
  39. package/dist/cjs/wm-wrapper.cjs.entry.js +1 -1
  40. package/dist/collection/collection-manifest.json +2 -2
  41. package/dist/collection/components/charts/chartFunctions.js +2 -2
  42. package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.js +2 -2
  43. package/dist/collection/components/charts/wm-chart/wm-chart.js +1 -1
  44. package/dist/collection/components/charts/wm-line-chart/wm-line-chart.js +9 -9
  45. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.js +1 -1
  46. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.js +1 -1
  47. package/dist/collection/components/datepickers/priv-calendar/priv-calendar.js +2 -2
  48. package/dist/collection/components/datepickers/wm-date-range.js +16 -12
  49. package/dist/collection/components/datepickers/wm-datepicker.js +16 -12
  50. package/dist/collection/components/wm-action-menu/wm-action-menu.js +1 -1
  51. package/dist/collection/components/wm-button/wm-button.js +1 -1
  52. package/dist/collection/components/wm-file/wm-file.js +1 -1
  53. package/dist/collection/components/wm-file-list/wm-file-list.js +1 -1
  54. package/dist/collection/components/wm-input/wm-input.js +1 -1
  55. package/dist/collection/components/wm-menuitem/wm-menuitem.js +1 -1
  56. package/dist/collection/components/wm-modal/wm-modal-footer.js +1 -1
  57. package/dist/collection/components/wm-modal/wm-modal-header.js +1 -1
  58. package/dist/collection/components/wm-modal/wm-modal.js +2 -2
  59. package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +1 -1
  60. package/dist/collection/components/wm-navigation/wm-navigation-item.js +1 -1
  61. package/dist/collection/components/wm-navigation/wm-navigation.js +2 -2
  62. package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +1 -1
  63. package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +1 -1
  64. package/dist/collection/components/wm-option/wm-option.js +1 -1
  65. package/dist/collection/components/wm-pagination/wm-pagination.js +1 -1
  66. package/dist/collection/components/wm-search/wm-search.js +5 -4
  67. package/dist/collection/components/wm-select/wm-select.js +2 -2
  68. package/dist/collection/components/wm-snackbar/wm-snackbar.js +2 -2
  69. package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +1 -1
  70. package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +1 -1
  71. package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +1 -1
  72. package/dist/collection/components/wm-tag-input/wm-tag-input.js +3 -3
  73. package/dist/collection/components/wm-textarea/wm-textarea.js +1 -1
  74. package/dist/collection/components/wm-timepicker/wm-timepicker.js +11 -8
  75. package/dist/collection/components/wm-toggletip/wm-toggletip.js +2 -2
  76. package/dist/collection/components/wm-uploader/wm-uploader.js +2 -2
  77. package/dist/collection/dev/chart.js +13 -32
  78. package/dist/{cjs/global-70b45f6c.js → esm/app-globals-5fa0b568.js} +7 -2
  79. package/dist/esm/{chartFunctions-036fdb89.js → chartFunctions-a4c41273.js} +4 -4
  80. package/dist/esm/{functions-46843ea0.js → functions-25781571.js} +105 -8
  81. package/dist/esm/index-130e07bb.js +1820 -0
  82. package/dist/esm/{intl-8b8740b9.js → intl-df3d34d1.js} +1 -1
  83. package/dist/esm/loader.js +5 -4
  84. package/dist/esm/polyfills/core-js.js +0 -0
  85. package/dist/esm/polyfills/dom.js +0 -0
  86. package/dist/esm/polyfills/es5-html-element.js +0 -0
  87. package/dist/esm/polyfills/index.js +0 -0
  88. package/dist/esm/polyfills/system.js +0 -0
  89. package/dist/esm/priv-calendar.entry.js +6 -5
  90. package/dist/esm/priv-chart-popover.entry.js +6 -5
  91. package/dist/esm/priv-navigator-button.entry.js +4 -3
  92. package/dist/esm/priv-navigator-item.entry.js +4 -3
  93. package/dist/esm/ripple.js +13 -12
  94. package/dist/esm/wm-action-menu_2.entry.js +8 -6
  95. package/dist/esm/wm-button.entry.js +5 -4
  96. package/dist/esm/wm-chart-slice.entry.js +1 -1
  97. package/dist/esm/wm-chart.entry.js +7 -6
  98. package/dist/esm/wm-date-range.entry.js +8 -7
  99. package/dist/esm/wm-datepicker.entry.js +8 -7
  100. package/dist/esm/wm-file-list.entry.js +4 -3
  101. package/dist/esm/wm-file.entry.js +5 -4
  102. package/dist/esm/wm-input.entry.js +6 -5
  103. package/dist/esm/wm-line-chart.entry.js +15 -14
  104. package/dist/esm/wm-modal-footer.entry.js +4 -3
  105. package/dist/esm/wm-modal-header.entry.js +6 -5
  106. package/dist/esm/wm-modal.entry.js +6 -5
  107. package/dist/esm/wm-navigation_3.entry.js +13 -10
  108. package/dist/esm/wm-navigator.entry.js +4 -3
  109. package/dist/esm/wm-option_2.entry.js +10 -8
  110. package/dist/esm/wm-pagination.entry.js +5 -4
  111. package/dist/esm/wm-progress-indicator_3.entry.js +9 -7
  112. package/dist/esm/wm-search.entry.js +7 -6
  113. package/dist/esm/wm-snackbar.entry.js +7 -6
  114. package/dist/esm/wm-tab-item_3.entry.js +11 -8
  115. package/dist/esm/wm-tag-input.entry.js +8 -7
  116. package/dist/esm/wm-tag-option.entry.js +2 -2
  117. package/dist/esm/wm-textarea.entry.js +6 -5
  118. package/dist/esm/wm-timepicker.entry.js +6 -5
  119. package/dist/esm/wm-toggletip.entry.js +6 -5
  120. package/dist/esm/wm-uploader.entry.js +7 -6
  121. package/dist/esm/wm-wrapper.entry.js +1 -1
  122. package/dist/esm-es5/app-globals-5fa0b568.js +1 -0
  123. package/dist/esm-es5/{chartFunctions-036fdb89.js → chartFunctions-a4c41273.js} +1 -1
  124. package/dist/esm-es5/functions-25781571.js +1 -0
  125. package/dist/esm-es5/index-130e07bb.js +1 -0
  126. package/dist/esm-es5/{intl-8b8740b9.js → intl-df3d34d1.js} +1 -1
  127. package/dist/esm-es5/loader.js +1 -1
  128. package/dist/esm-es5/priv-calendar.entry.js +1 -1
  129. package/dist/esm-es5/priv-chart-popover.entry.js +1 -1
  130. package/dist/esm-es5/priv-navigator-button.entry.js +1 -1
  131. package/dist/esm-es5/priv-navigator-item.entry.js +1 -1
  132. package/dist/esm-es5/ripple.js +1 -1
  133. package/dist/esm-es5/wm-action-menu_2.entry.js +1 -1
  134. package/dist/esm-es5/wm-button.entry.js +1 -1
  135. package/dist/esm-es5/wm-chart-slice.entry.js +1 -1
  136. package/dist/esm-es5/wm-chart.entry.js +1 -1
  137. package/dist/esm-es5/wm-date-range.entry.js +1 -1
  138. package/dist/esm-es5/wm-datepicker.entry.js +1 -1
  139. package/dist/esm-es5/wm-file-list.entry.js +1 -1
  140. package/dist/esm-es5/wm-file.entry.js +1 -1
  141. package/dist/esm-es5/wm-input.entry.js +1 -1
  142. package/dist/esm-es5/wm-line-chart.entry.js +1 -1
  143. package/dist/esm-es5/wm-modal-footer.entry.js +1 -1
  144. package/dist/esm-es5/wm-modal-header.entry.js +1 -1
  145. package/dist/esm-es5/wm-modal.entry.js +1 -1
  146. package/dist/esm-es5/wm-navigation_3.entry.js +1 -1
  147. package/dist/esm-es5/wm-navigator.entry.js +1 -1
  148. package/dist/esm-es5/wm-option_2.entry.js +1 -1
  149. package/dist/esm-es5/wm-pagination.entry.js +1 -1
  150. package/dist/esm-es5/wm-progress-indicator_3.entry.js +1 -1
  151. package/dist/esm-es5/wm-search.entry.js +1 -1
  152. package/dist/esm-es5/wm-snackbar.entry.js +1 -1
  153. package/dist/esm-es5/wm-tab-item_3.entry.js +1 -1
  154. package/dist/esm-es5/wm-tag-input.entry.js +1 -1
  155. package/dist/esm-es5/wm-tag-option.entry.js +1 -1
  156. package/dist/esm-es5/wm-textarea.entry.js +1 -1
  157. package/dist/esm-es5/wm-timepicker.entry.js +1 -1
  158. package/dist/esm-es5/wm-toggletip.entry.js +1 -1
  159. package/dist/esm-es5/wm-uploader.entry.js +1 -1
  160. package/dist/esm-es5/wm-wrapper.entry.js +1 -1
  161. package/dist/loader/cdn.js +1 -2
  162. package/dist/loader/index.cjs.js +1 -2
  163. package/dist/loader/index.d.ts +3 -0
  164. package/dist/loader/index.es2017.js +1 -2
  165. package/dist/loader/index.js +1 -2
  166. package/dist/ripple/{p-5029fcd8.system.entry.js → p-00515e48.system.entry.js} +1 -1
  167. package/dist/ripple/{p-45abd8fe.entry.js → p-041e579b.entry.js} +1 -1
  168. package/dist/ripple/{p-65d26233.system.entry.js → p-043901ab.system.entry.js} +1 -1
  169. package/dist/ripple/p-0af94825.entry.js +1 -0
  170. package/dist/ripple/p-0ff41567.system.entry.js +1 -0
  171. package/dist/ripple/{p-48e09589.entry.js → p-13b1d775.entry.js} +1 -1
  172. package/dist/ripple/p-13fc2164.entry.js +1 -0
  173. package/dist/ripple/p-155224a2.system.entry.js +1 -0
  174. package/dist/ripple/{p-d837c1f5.js → p-1a9e55ae.js} +1 -1
  175. package/dist/ripple/p-1f09134c.entry.js +1 -0
  176. package/dist/ripple/p-298c2675.entry.js +1 -0
  177. package/dist/ripple/p-2d619f83.entry.js +1 -0
  178. package/dist/ripple/{p-cc4a429b.entry.js → p-2e3728f1.entry.js} +1 -1
  179. package/dist/ripple/p-31781d88.system.entry.js +1 -0
  180. package/dist/ripple/p-31d7ecf9.system.entry.js +1 -0
  181. package/dist/ripple/p-341ebafa.entry.js +1 -0
  182. package/dist/ripple/p-3423a9b6.system.entry.js +1 -0
  183. package/dist/ripple/p-376efca9.entry.js +1 -0
  184. package/dist/ripple/p-3b5f4364.system.entry.js +1 -0
  185. package/dist/ripple/p-418ed08c.system.entry.js +1 -0
  186. package/dist/ripple/p-4520ba7b.entry.js +1 -0
  187. package/dist/ripple/p-45f53a78.system.js +1 -0
  188. package/dist/ripple/p-4670ccb4.system.js +1 -0
  189. package/dist/ripple/p-488e1690.entry.js +1 -0
  190. package/dist/ripple/p-4baaf026.entry.js +1 -0
  191. package/dist/ripple/p-5051034b.entry.js +1 -0
  192. package/dist/ripple/p-56766bb2.entry.js +1 -0
  193. package/dist/ripple/p-576f8e7c.js +1 -0
  194. package/dist/ripple/p-5caaf651.system.entry.js +1 -0
  195. package/dist/ripple/p-5ece78e5.system.entry.js +1 -0
  196. package/dist/ripple/{p-42d1c301.entry.js → p-672ae2cb.entry.js} +1 -1
  197. package/dist/ripple/{p-3a44e1c8.entry.js → p-67a7f0b0.entry.js} +1 -1
  198. package/dist/ripple/p-6d0e5159.system.entry.js +1 -0
  199. package/dist/ripple/p-6d56676e.system.entry.js +1 -0
  200. package/dist/ripple/{p-b7ead395.system.entry.js → p-6fe35d1e.system.entry.js} +1 -1
  201. package/dist/ripple/{p-2ba7e68e.system.entry.js → p-7c51092b.system.entry.js} +1 -1
  202. package/dist/ripple/p-7d32497f.system.js +1 -0
  203. package/dist/ripple/p-7eab6bea.system.entry.js +1 -0
  204. package/dist/ripple/p-7fb95b89.entry.js +1 -0
  205. package/dist/ripple/{p-32bf3f5b.system.entry.js → p-823d7b4e.system.entry.js} +1 -1
  206. package/dist/ripple/p-85cbeb7d.system.entry.js +1 -0
  207. package/dist/ripple/p-88cfd58d.js +1 -0
  208. package/dist/ripple/p-8d075bcf.system.entry.js +1 -0
  209. package/dist/ripple/{p-8159cdf5.entry.js → p-8e72de50.entry.js} +1 -1
  210. package/dist/ripple/p-9c723924.system.entry.js +1 -0
  211. package/dist/ripple/{p-510679f8.system.entry.js → p-a1a2f8c9.system.entry.js} +1 -1
  212. package/dist/ripple/p-a62e7532.entry.js +1 -0
  213. package/dist/ripple/{p-1ac66a15.system.js → p-a9d89ac8.system.js} +1 -1
  214. package/dist/ripple/{p-a152cf3a.system.entry.js → p-aab56a37.system.entry.js} +1 -1
  215. package/dist/ripple/{p-79106e23.system.entry.js → p-ac40417b.system.entry.js} +1 -1
  216. package/dist/ripple/p-ad4529d2.entry.js +1 -0
  217. package/dist/ripple/{p-ffb31979.system.entry.js → p-b0c566b5.system.entry.js} +1 -1
  218. package/dist/ripple/p-b7307be6.system.entry.js +1 -0
  219. package/dist/ripple/{p-624a2812.entry.js → p-bee8ab6e.entry.js} +1 -1
  220. package/dist/ripple/p-c2181de0.entry.js +1 -0
  221. package/dist/ripple/{p-d4b209ec.system.js → p-c9141443.system.js} +1 -1
  222. package/dist/ripple/{p-e7a64841.system.entry.js → p-ca35a8b7.system.entry.js} +1 -1
  223. package/dist/ripple/{p-88ebddd7.entry.js → p-cd0cc88d.entry.js} +1 -1
  224. package/dist/ripple/p-cef8a45b.system.js +2 -0
  225. package/dist/ripple/p-d5ba9de1.system.entry.js +1 -0
  226. package/dist/ripple/{p-df1a11f1.system.entry.js → p-d93c51dd.system.entry.js} +1 -1
  227. package/dist/ripple/p-d9da0502.js +2 -0
  228. package/dist/ripple/p-db10990a.entry.js +1 -0
  229. package/dist/ripple/p-de0e138f.system.entry.js +1 -0
  230. package/dist/ripple/p-e2fe86a7.system.entry.js +1 -0
  231. package/dist/ripple/p-e85b1f40.entry.js +1 -0
  232. package/dist/ripple/p-ea0dfadf.system.entry.js +1 -0
  233. package/dist/ripple/p-eb14b354.entry.js +1 -0
  234. package/dist/ripple/p-f17fd62b.entry.js +1 -0
  235. package/dist/ripple/p-f20e8a69.entry.js +1 -0
  236. package/dist/ripple/{p-d79fdf0b.js → p-f54e9ed0.js} +1 -1
  237. package/dist/ripple/p-f836a5e8.entry.js +1 -0
  238. package/dist/ripple/p-fabe4ca4.entry.js +1 -0
  239. package/dist/ripple/p-fbaae34d.system.entry.js +1 -0
  240. package/dist/ripple/{p-a37cf34a.entry.js → p-ff69270a.entry.js} +1 -1
  241. package/dist/ripple/ripple.esm.js +1 -1
  242. package/dist/ripple/ripple.js +1 -1
  243. package/dist/types/stencil-public-runtime.d.ts +3 -10
  244. package/package.json +1 -1
  245. package/dist/cjs/index-e86c28b6.js +0 -2641
  246. package/dist/collection/components/charts/chartFunctions.spec.js +0 -16
  247. package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.e2e.js +0 -81
  248. package/dist/collection/components/charts/screenshots.e2e.js +0 -96
  249. package/dist/collection/components/charts/wm-chart/wm-chart.e2e.js +0 -213
  250. package/dist/collection/components/charts/wm-chart/wm-chart.spec.js +0 -37
  251. package/dist/collection/components/charts/wm-line-chart/wm-line-chart.e2e.js +0 -176
  252. package/dist/collection/components/charts/wm-line-chart/wm-line-chart.spec.js +0 -163
  253. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.e2e.js +0 -69
  254. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.spec.js +0 -79
  255. package/dist/collection/components/datepickers/priv-calendar/priv-calendar.spec.js +0 -89
  256. package/dist/collection/components/datepickers/wm-date-range.e2e.js +0 -443
  257. package/dist/collection/components/datepickers/wm-date-range.spec.js +0 -22
  258. package/dist/collection/components/datepickers/wm-datepicker.e2e.js +0 -382
  259. package/dist/collection/components/datepickers/wm-datepicker.spec.js +0 -21
  260. package/dist/collection/components/wm-action-menu/wm-action-menu.e2e.js +0 -200
  261. package/dist/collection/components/wm-action-menu/wm-action-menu.spec.js +0 -48
  262. package/dist/collection/components/wm-button/wm-button.e2e.js +0 -55
  263. package/dist/collection/components/wm-button/wm-button.spec.js +0 -74
  264. package/dist/collection/components/wm-file/wm-file.spec.js +0 -194
  265. package/dist/collection/components/wm-file-list/wm-file-list.spec.js +0 -69
  266. package/dist/collection/components/wm-input/wm-input.e2e.js +0 -32
  267. package/dist/collection/components/wm-input/wm-input.spec.js +0 -173
  268. package/dist/collection/components/wm-menuitem/wm-menuitem.e2e.js +0 -23
  269. package/dist/collection/components/wm-menuitem/wm-menuitem.spec.js +0 -54
  270. package/dist/collection/components/wm-modal/wm-modal-footer.spec.js +0 -11
  271. package/dist/collection/components/wm-modal/wm-modal-header.spec.js +0 -8
  272. package/dist/collection/components/wm-modal/wm-modal.e2e.js +0 -104
  273. package/dist/collection/components/wm-modal/wm-modal.spec.js +0 -30
  274. package/dist/collection/components/wm-navigation/wm-navigation.e2e.js +0 -102
  275. package/dist/collection/components/wm-navigation/wm-navigation.spec.js +0 -91
  276. package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.e2e.js +0 -50
  277. package/dist/collection/components/wm-navigator/wm-navigator.e2e.js +0 -209
  278. package/dist/collection/components/wm-navigator/wm-navigator.spec.js +0 -177
  279. package/dist/collection/components/wm-option/wm-option.e2e.js +0 -22
  280. package/dist/collection/components/wm-option/wm-option.spec.js +0 -63
  281. package/dist/collection/components/wm-pagination/wm-pagination.e2e.js +0 -312
  282. package/dist/collection/components/wm-search/wm-search.e2e.js +0 -76
  283. package/dist/collection/components/wm-search/wm-search.spec.js +0 -71
  284. package/dist/collection/components/wm-select/wm-select.e2e.js +0 -521
  285. package/dist/collection/components/wm-select/wm-select.spec.js +0 -271
  286. package/dist/collection/components/wm-snackbar/wm-snackbar.e2e.js +0 -112
  287. package/dist/collection/components/wm-snackbar/wm-snackbar.spec.js +0 -9
  288. package/dist/collection/components/wm-tabs/wm-tabs.e2e.js +0 -91
  289. package/dist/collection/components/wm-tabs/wm-tabs.spec.js +0 -12
  290. package/dist/collection/components/wm-tag-input/wm-tag-input.e2e.js +0 -204
  291. package/dist/collection/components/wm-tag-input/wm-tag-input.spec.js +0 -195
  292. package/dist/collection/components/wm-textarea/wm-textarea.e2e.js +0 -41
  293. package/dist/collection/components/wm-textarea/wm-textarea.spec.js +0 -79
  294. package/dist/collection/components/wm-timepicker/wm-timepicker.e2e.js +0 -163
  295. package/dist/collection/components/wm-timepicker/wm-timepicker.spec.js +0 -147
  296. package/dist/collection/components/wm-toggletip/wm-toggletip.e2e.js +0 -69
  297. package/dist/collection/components/wm-toggletip/wm-toggletip.spec.js +0 -21
  298. package/dist/collection/components/wm-uploader/wm-uploader.e2e.js +0 -70
  299. package/dist/collection/components/wm-uploader/wm-uploader.spec.js +0 -234
  300. package/dist/collection/global/functions.spec.js +0 -126
  301. package/dist/collection/lang/lang.spec.js +0 -20
  302. package/dist/esm/index-558b5a82.js +0 -2610
  303. package/dist/esm-es5/functions-46843ea0.js +0 -1
  304. package/dist/esm-es5/global-e7e100cd.js +0 -1
  305. package/dist/esm-es5/index-558b5a82.js +0 -1
  306. package/dist/ripple/p-09a31f0c.entry.js +0 -1
  307. package/dist/ripple/p-0aa17cac.entry.js +0 -1
  308. package/dist/ripple/p-0dc51fad.entry.js +0 -1
  309. package/dist/ripple/p-0ea8609b.system.entry.js +0 -1
  310. package/dist/ripple/p-220b3070.system.js +0 -1
  311. package/dist/ripple/p-240124b0.system.entry.js +0 -1
  312. package/dist/ripple/p-26fbc7f5.system.entry.js +0 -1
  313. package/dist/ripple/p-294b38ca.system.entry.js +0 -1
  314. package/dist/ripple/p-2b05bf05.entry.js +0 -1
  315. package/dist/ripple/p-311923b2.system.entry.js +0 -1
  316. package/dist/ripple/p-3183bba8.entry.js +0 -1
  317. package/dist/ripple/p-31976813.entry.js +0 -1
  318. package/dist/ripple/p-33679b9d.entry.js +0 -1
  319. package/dist/ripple/p-34b5830f.system.js +0 -1
  320. package/dist/ripple/p-3568472c.entry.js +0 -1
  321. package/dist/ripple/p-359d45dc.entry.js +0 -1
  322. package/dist/ripple/p-4ce70b1b.js +0 -1
  323. package/dist/ripple/p-4e56f3f5.system.entry.js +0 -1
  324. package/dist/ripple/p-568c595f.js +0 -2
  325. package/dist/ripple/p-591918a4.entry.js +0 -1
  326. package/dist/ripple/p-62a8f09c.entry.js +0 -1
  327. package/dist/ripple/p-75ba63ba.entry.js +0 -1
  328. package/dist/ripple/p-7e6f5a1e.system.entry.js +0 -1
  329. package/dist/ripple/p-8029af07.system.entry.js +0 -1
  330. package/dist/ripple/p-822618d7.entry.js +0 -1
  331. package/dist/ripple/p-86d655fb.system.entry.js +0 -1
  332. package/dist/ripple/p-884294c6.entry.js +0 -1
  333. package/dist/ripple/p-8fbddb6c.system.entry.js +0 -1
  334. package/dist/ripple/p-902a54c5.entry.js +0 -1
  335. package/dist/ripple/p-905dd4da.system.entry.js +0 -1
  336. package/dist/ripple/p-99b0c3dd.system.js +0 -1
  337. package/dist/ripple/p-a8524a48.entry.js +0 -1
  338. package/dist/ripple/p-ab8d78cc.system.js +0 -2
  339. package/dist/ripple/p-bc5e9d24.entry.js +0 -1
  340. package/dist/ripple/p-bf636261.entry.js +0 -1
  341. package/dist/ripple/p-c4b9d46d.entry.js +0 -1
  342. package/dist/ripple/p-c885c7f9.entry.js +0 -1
  343. package/dist/ripple/p-c91b10f3.system.entry.js +0 -1
  344. package/dist/ripple/p-c9543950.system.entry.js +0 -1
  345. package/dist/ripple/p-cacfbaf1.system.entry.js +0 -1
  346. package/dist/ripple/p-ce9a8bd1.entry.js +0 -1
  347. package/dist/ripple/p-d24882a7.system.entry.js +0 -1
  348. package/dist/ripple/p-d33d6e96.system.entry.js +0 -1
  349. package/dist/ripple/p-df2560f3.system.entry.js +0 -1
  350. package/dist/ripple/p-e3bcdde8.system.entry.js +0 -1
  351. package/dist/ripple/p-e3de5bbd.system.entry.js +0 -1
  352. package/dist/ripple/p-e83a98d3.entry.js +0 -1
  353. package/dist/ripple/p-e995f7f0.js +0 -1
  354. package/dist/ripple/p-eaac6bcd.entry.js +0 -1
  355. package/dist/ripple/p-f67fd802.system.entry.js +0 -1
  356. package/dist/ripple/p-fe8d02c3.system.entry.js +0 -1
@@ -1,54 +0,0 @@
1
- import { newSpecPage } from "@stencil/core/testing";
2
- import { Menuitem } from "./wm-menuitem";
3
- describe("wm-menuitem", () => {
4
- it("builds", async () => {
5
- const comp = await newSpecPage({
6
- components: [Menuitem],
7
- html: "<wm-menuitem><wm-menuitem>",
8
- });
9
- expect(comp.root).toMatchSnapshot();
10
- });
11
- it("handles disabled onClick function", async () => {
12
- const page = await newSpecPage({
13
- components: [Menuitem],
14
- html: "<wm-menuitem><wm-menuitem>",
15
- });
16
- const menuItem = page.root;
17
- const onClickFunc = () => console.log("Message");
18
- menuItem.onclick = onClickFunc;
19
- expect(menuItem.onclick).toEqual(onClickFunc);
20
- menuItem.disabled = true;
21
- expect(menuItem.onclick).toBe(null);
22
- menuItem.disabled = false;
23
- expect(menuItem.onclick).toEqual(onClickFunc);
24
- });
25
- it("renders description if prop is present", async () => {
26
- const page = await newSpecPage({
27
- components: [Menuitem],
28
- html: "<wm-menuitem description='Description here'><wm-menuitem>",
29
- });
30
- const descriptionEl = page.root.shadowRoot.querySelector(".description");
31
- expect(descriptionEl === null || descriptionEl === void 0 ? void 0 : descriptionEl.textContent).toBe("Description here");
32
- });
33
- describe("error throwing", () => {
34
- it("throws error when description is over character limit", async () => {
35
- const mockFunc = jest.fn();
36
- console.error = mockFunc;
37
- const description = "q".repeat(200);
38
- await newSpecPage({
39
- components: [Menuitem],
40
- html: `<wm-menuitem description='${description}'></wm-menuitem>`,
41
- });
42
- expect(mockFunc).toHaveBeenCalledWith("wm-menuitem description is above the character limit of 100");
43
- });
44
- it("throws error when description and icon props are used simultaneously", async () => {
45
- const mockFunc = jest.fn();
46
- console.error = mockFunc;
47
- await newSpecPage({
48
- components: [Menuitem],
49
- html: `<wm-menuitem description='Example description' icon="f3eb"></wm-menuitem>`,
50
- });
51
- expect(mockFunc).toHaveBeenCalledWith("wm-menuitems with descriptions do not support the use of icons");
52
- });
53
- });
54
- });
@@ -1,11 +0,0 @@
1
- import { ModalFooter } from "./wm-modal-footer";
2
- describe("wm-modal-footer", () => {
3
- it("has the right props", () => {
4
- const modal = new ModalFooter();
5
- expect(modal).toHaveProperty("secondaryText");
6
- expect(modal).toHaveProperty("primaryText");
7
- expect(modal).toHaveProperty("infoText");
8
- expect(modal).toHaveProperty("primaryActionDisabled");
9
- expect(modal).toHaveProperty("deleteStyle");
10
- });
11
- });
@@ -1,8 +0,0 @@
1
- import { ModalHeader } from "./wm-modal-header";
2
- describe("wm-modal-header", () => {
3
- it("has the right props", () => {
4
- const modal = new ModalHeader();
5
- expect(modal).toHaveProperty("heading");
6
- expect(modal).toHaveProperty("subheading");
7
- });
8
- });
@@ -1,104 +0,0 @@
1
- import { newE2EPage } from "@stencil/core/testing";
2
- import { AxePuppeteer } from "@axe-core/puppeteer";
3
- describe("wm-modal", () => {
4
- let page, modal,
5
- // overlay: any,
6
- closeButton;
7
- beforeEach(async () => {
8
- page = await newE2EPage();
9
- await page.setContent(`<html lang='en'><head><title>Page</title></head><body><main><h1>Title</h1>
10
- <button onClick="showModal()" id="modal-trigger">Open Modal</button><wm-modal id="modal-test"><wm-modal-header heading="Modal Heading"></wm-modal-header><div>Modal Body</div><wm-modal-footer primary-text="Save" secondary-text="Discard"></wm-modal-footer></wm-modal><button>Filler</button></main></body><script>const dialog = document.getElementById("modal-test");
11
-
12
- dialog.addEventListener("wmModalCloseTriggered", function() {
13
- dialog.open = false;
14
- });
15
-
16
- dialog.addEventListener("wmModalSecondaryTriggered", function() {
17
- dialog.open = false;
18
- });
19
-
20
- dialog.addEventListener("wmModalPrimaryTriggered", function() {
21
- dialog.open = false;
22
- });
23
- function showModal() {
24
- dialog.open = true;
25
- }
26
- </script></html>`);
27
- modal = await page.find("wm-modal");
28
- closeButton = await page.find("wm-button#wm-modal-close-modal-test >>> button");
29
- });
30
- it("passes Axe checks", async () => {
31
- const results = await new AxePuppeteer(page).analyze();
32
- expect(results.violations.length).toBe(0);
33
- });
34
- // RENDER
35
- it("renders", async () => {
36
- expect(modal).toHaveClass("hydrated");
37
- });
38
- // DISPLAY AND HIDE
39
- it("emits the proper event when the close (X) button is clicked", async () => {
40
- const eventSpy = await modal.spyOnEvent("wmModalCloseTriggered");
41
- await page.keyboard.press("Tab");
42
- await page.keyboard.press("Enter");
43
- await page.waitForChanges();
44
- expect(modal).toHaveAttribute("open");
45
- closeButton.click();
46
- await page.waitForChanges();
47
- expect(eventSpy).toHaveReceivedEventTimes(1);
48
- });
49
- //ACCESSIBILITY
50
- it("focuses the close button when the modal opens if no elementToFocus property is set", async () => {
51
- await page.keyboard.press("Tab");
52
- await page.keyboard.press("Enter"); // open popup
53
- await page.waitForChanges();
54
- const activeElId = await page.evaluate(() => document.activeElement.id);
55
- expect(activeElId).toEqual("wm-modal-close-modal-test");
56
- });
57
- it("focuses the correct element when the elementToFocus property is set", async () => {
58
- page = await newE2EPage();
59
- //The elementToFocus prop isn't mutable, so "setProperty" doesn't work. Page content has to be reset.
60
- await page.setContent(`<html lang='en'><head><title>Page</title></head><body><main><h1>Title</h1>
61
- <button onClick="showModal()">Open Modal</button><wm-modal element-to-focus="modal-input" id="second-modal"><wm-modal-header heading="Modal Heading"></wm-modal-header><div>Modal Body<div><input id="modal-input"></input></div></div><wm-modal-footer></wm-modal-footer></wm-modal></main></body><script>const dialog = document.getElementById("second-modal");
62
-
63
- dialog.addEventListener("wmModalCloseTriggered", function() {
64
- dialog.open = false;
65
- });
66
-
67
- dialog.addEventListener("wmModalSecondaryTriggered", function() {
68
- dialog.open = false;
69
- });
70
-
71
- dialog.addEventListener("wmModalPrimaryTriggered", function() {
72
- dialog.open = false;
73
- });
74
-
75
- function showModal() {
76
- dialog.open = true;
77
- }
78
- </script></html>`);
79
- await page.waitForChanges();
80
- await page.keyboard.press("Tab");
81
- await page.keyboard.press("Enter");
82
- await page.waitForChanges();
83
- const activeElId = await page.evaluate(() => document.activeElement.id);
84
- expect(activeElId).toEqual("modal-input");
85
- });
86
- it("returns focus to the triggering element when the modal closes", async () => {
87
- await page.keyboard.press("Tab");
88
- await page.keyboard.press("Enter");
89
- await page.waitForChanges();
90
- await page.keyboard.press("Enter");
91
- await page.waitForChanges();
92
- const activeElId = await page.evaluate(() => document.activeElement.id);
93
- expect(activeElId).toEqual("modal-trigger");
94
- });
95
- it("closes the modal when escape key is pressed", async () => {
96
- await page.keyboard.press("Tab");
97
- await page.keyboard.press("Enter");
98
- await page.waitForChanges();
99
- expect(modal).toHaveAttribute("open");
100
- await page.keyboard.press("Escape");
101
- await page.waitForChanges();
102
- expect(modal).not.toHaveAttribute("open");
103
- });
104
- });
@@ -1,30 +0,0 @@
1
- import { newSpecPage } from "@stencil/core/testing";
2
- jest.mock("../../global/functions");
3
- import { Modal } from "./wm-modal";
4
- import { ModalHeader } from "./wm-modal-header";
5
- import { ModalFooter } from "./wm-modal-footer";
6
- describe("wm-modal", () => {
7
- it("builds", async () => {
8
- const comp = await newSpecPage({
9
- components: [Modal, ModalHeader, ModalFooter],
10
- html: "<wm-modal open='false'><wm-modal-header heading='heading'></wm-modal-header><div>content</div><wm-modal-footer primary-text='primary-text'></wm-modal-footer></wm-modal>",
11
- });
12
- expect(comp.root).toMatchSnapshot();
13
- });
14
- it("watching open-- toggles the modal", () => {
15
- //toggleModal
16
- const component = new Modal();
17
- const mockShowModal = (component.showModal = jest.fn());
18
- const mockHideModal = (component.hideModal = jest.fn());
19
- component.open = true;
20
- component.toggleModal();
21
- expect(mockShowModal).toHaveBeenCalledTimes(1);
22
- expect(mockHideModal).toHaveBeenCalledTimes(0);
23
- jest.resetAllMocks();
24
- component.open = false;
25
- component.toggleModal();
26
- expect(mockShowModal).toHaveBeenCalledTimes(0);
27
- expect(mockHideModal).toHaveBeenCalledTimes(1);
28
- jest.resetAllMocks();
29
- });
30
- });
@@ -1,102 +0,0 @@
1
- import { newE2EPage } from "@stencil/core/testing";
2
- import { AxePuppeteer } from "@axe-core/puppeteer";
3
- describe("wm-navigation", () => {
4
- let page, nav, hamburger, items;
5
- beforeEach(async () => {
6
- page = await newE2EPage();
7
- await page.setContent(`<html lang='en'><head><title>Page</title></head><body>
8
- <wm-navigation-hamburger nav-id="mynav"></wm-navigation-hamburger>
9
- <wm-navigation id="mynav">
10
- <wm-navigation-item href="/home" text="Home" active>Home</wm-navigation-item>
11
- <wm-navigation-item href="/things" text="Things">Things</wm-navigation-item>
12
- </wm-navigation><main><h1>Title</h1><button>something tabbable here</button>
13
- </main></body></html>`);
14
- nav = await page.find("wm-navigation");
15
- hamburger = await page.find("wm-navigation-hamburger");
16
- items = await page.find("wm-navigation-item");
17
- });
18
- it("passes Axe checks", async () => {
19
- const results = await new AxePuppeteer(page).analyze();
20
- expect(results.violations.length).toBe(0);
21
- });
22
- it("renders the component", async () => {
23
- expect(nav).not.toBeNull();
24
- expect(hamburger).not.toBeNull();
25
- expect(items).not.toBeNull();
26
- });
27
- it("traps focus when collapsible", async () => {
28
- // small screen, trap focus
29
- page.setViewport({ width: 1023, height: 800 });
30
- page.waitForChanges();
31
- await page.keyboard.press("Tab"); // focus on hamburger
32
- await page.keyboard.press("Enter"); // open. focus on close btn
33
- await page.waitForTimeout(250); // wait for animation to complete and focus to be called
34
- await page.keyboard.press("Tab"); // focus on 1st nav item
35
- await page.keyboard.press("Tab"); // focus on 2nd nav item
36
- await page.keyboard.press("Tab"); // with trap focus we circle back within the nav (on close btn)
37
- let activeEl = await page.evaluate(() => document.activeElement.tagName);
38
- expect(activeEl).toEqual("WM-NAVIGATION");
39
- });
40
- it("doesn't trap focus when persistent", async () => {
41
- // wide screen, no trap focus
42
- page.setViewport({ width: 1024, height: 800 });
43
- await page.waitForChanges(); // test fails randomly without this
44
- await page.keyboard.press("Tab"); // focus on 1st nav item
45
- await page.keyboard.press("Tab"); // focus on 2nd nav item
46
- await page.keyboard.press("Tab"); // focus on the button in main
47
- let activeEl = await page.evaluate(() => document.activeElement.tagName);
48
- expect(activeEl).toEqual("BUTTON");
49
- });
50
- it("handles focus method when collapsible and closed", async () => {
51
- page.setViewport({ width: 1023, height: 800 });
52
- let activeEl = await page.evaluate(() => document.activeElement.tagName);
53
- expect(activeEl).toEqual("BODY");
54
- nav.focus();
55
- activeEl = await page.evaluate(() => document.activeElement.tagName);
56
- expect(activeEl).toEqual("WM-NAVIGATION-HAMBURGER");
57
- });
58
- it("handles focus method when collapsible and open", async () => {
59
- page.setViewport({ width: 1023, height: 800 });
60
- let activeEl = await page.evaluate(() => document.activeElement.tagName);
61
- expect(activeEl).toEqual("BODY");
62
- expect(nav.getAttribute("aria-expanded")).toBe("false");
63
- hamburger.click();
64
- await page.waitForChanges();
65
- expect(nav.getAttribute("aria-expanded")).toBe("true");
66
- nav.focus();
67
- activeEl = await page.evaluate(() => document.activeElement.shadowRoot.activeElement.tagName);
68
- expect(activeEl).toEqual("WM-BUTTON"); // the close button
69
- });
70
- it("handles focus method when persistent", async () => {
71
- page.setViewport({ width: 1024, height: 800 });
72
- let activeEl = await page.evaluate(() => document.activeElement.tagName);
73
- expect(activeEl).toEqual("BODY");
74
- expect(nav.getAttribute("aria-expanded")).toBeUndefined;
75
- nav.focus();
76
- expect(nav.getAttribute("aria-expanded")).toBeUndefined; // should still be undefined
77
- activeEl = await page.evaluate(() => document.activeElement.shadowRoot.activeElement.textContent);
78
- expect(activeEl).toEqual("Home"); // first item
79
- });
80
- it("is open on load if open prop is set to true", async () => {
81
- page = await newE2EPage();
82
- await page.setContent(`<html lang='en'><head><title>Page</title></head><body>
83
- <wm-navigation-hamburger nav-id="mynav"></wm-navigation-hamburger>
84
- <wm-navigation open id="mynav">
85
- <wm-navigation-item href="/home" text="Home" active>Home</wm-navigation-item>
86
- <wm-navigation-item href="/things" text="Things">Things</wm-navigation-item>
87
- </wm-navigation><main><h1>Title</h1><button>something tabbable here</button>
88
- </main></body></html>`);
89
- await page.waitForTimeout(500);
90
- const nav = await page.find("wm-navigation");
91
- expect(nav.getAttribute("aria-expanded")).toBe("true");
92
- });
93
- it("programatically associates hamburger and nav and properly announces to SR", async () => {
94
- const hamburgerAriaControls = hamburger.shadowRoot.querySelector("button").getAttribute("aria-controls");
95
- const hamburgerAriaLabel = hamburger.shadowRoot.querySelector("button").getAttribute("aria-label");
96
- const navAriaLabel = nav.getAttribute("aria-label");
97
- expect(hamburgerAriaControls).toBe(nav.id);
98
- expect(hamburgerAriaLabel).toBe("Show navigation");
99
- expect(navAriaLabel).toBe("Main");
100
- });
101
- // when closed, focus returns to hamburger
102
- });
@@ -1,91 +0,0 @@
1
- import { newSpecPage } from "@stencil/core/testing";
2
- //jest.mock("../../global/functions");
3
- import { Navigation } from "./wm-navigation";
4
- import { NavigationItem } from "./wm-navigation-item";
5
- describe("Navigation unit tests", () => {
6
- it("isCollapsible", async () => {
7
- const nav = new Navigation();
8
- window.innerWidth = 1023;
9
- expect(nav.isCollapsible).toBe(true);
10
- window.innerWidth = 1024;
11
- expect(nav.isCollapsible).toBe(false);
12
- });
13
- it("ariaExpanded", async () => {
14
- const nav = new Navigation();
15
- window.innerWidth = 1024;
16
- expect(nav.ariaExpanded).toBeUndefined;
17
- window.innerWidth = 1023;
18
- expect(nav.ariaExpanded).toBe("false");
19
- nav.open = true;
20
- expect(nav.ariaExpanded).toBe("true");
21
- });
22
- });
23
- describe("navigation", () => {
24
- let page;
25
- let navigation;
26
- let items;
27
- beforeEach(async () => {
28
- page = await newSpecPage({
29
- components: [Navigation, NavigationItem],
30
- html: `<wm-navigation id="mynav">
31
- <wm-navigation-item href="/home" text="Home" active>Home</wm-navigation-item>
32
- <wm-navigation-item href="/things" text="Things">Things</wm-navigation-item>
33
- </wm-navigation>`,
34
- });
35
- navigation = page.root;
36
- items = Array.from(page.root.querySelectorAll("wm-navigation-item"));
37
- });
38
- // integration tests
39
- // this test includes UX functionality, the related a11y (aria-expanded)
40
- // as well as the switch between persistent and collapsible modes
41
- it("expands and collapses", async () => {
42
- // aria-expanded
43
- const expanded = navigation.getAttribute("aria-expanded");
44
- // Persistent: no aria-expanded
45
- window.innerWidth = 1024;
46
- expect(expanded).toBeNull;
47
- // Collapsible
48
- window.innerWidth = 1023;
49
- // aria-expanded true when open
50
- navigation.open = true;
51
- expect(expanded).not.toBeNull;
52
- // aria-expanded false when closed
53
- navigation.open = false;
54
- expect(expanded).toBeNull;
55
- });
56
- it("closes when toggle button is activated", async () => {
57
- window.innerWidth = 1023;
58
- navigation.open = true;
59
- let toggleBtn = page.root.shadowRoot.querySelector(".toggle");
60
- toggleBtn.click();
61
- expect(navigation.open).toBeFalsy();
62
- });
63
- /*
64
- * Close button is present in collapsible mode, not otherwise
65
- * can't test with current implementation because button is
66
- * simply hidden via CSS
67
- it("hides the button in persistent mode", async () => {
68
- // in persistent mode, there's no button at all
69
- window.innerWidth = 1024;
70
- navigation.open = true;
71
-
72
- let toggleBtn = page.root!.shadowRoot!.querySelector(".toggle-wrapper");
73
- expect(toggleBtn.width).toBeNull();
74
- });
75
- */
76
- // a11y
77
- it("Has a role of navigation and has a label", async () => {
78
- // navigation role requires a label only when there are several on the page. Since we don't know if there will be others, we can set a label in all cases.
79
- let role = navigation.getAttribute("role");
80
- let label = navigation.getAttribute("aria-label");
81
- expect(role).toBe("navigation");
82
- expect(label).toBe("Main");
83
- });
84
- it("items have proper role and attrs", async () => {
85
- const firstItem = items[0];
86
- const role = firstItem.getAttribute("role");
87
- expect(role).toBe("listitem");
88
- const href = firstItem.shadowRoot.querySelector("a").getAttribute("href");
89
- expect(href).toBe("/home");
90
- });
91
- });
@@ -1,50 +0,0 @@
1
- import { newE2EPage } from "@stencil/core/testing";
2
- describe("priv-navigator-button", () => {
3
- let page,
4
- //navigator: any,
5
- //navigatorList: any,
6
- navigatorButton, button;
7
- beforeEach(async () => {
8
- page = await newE2EPage();
9
- await page.setContent(`
10
- <html lang='en'>
11
- <head>
12
- <title>Page</title>
13
- </head>
14
- <body>
15
- <main>
16
- <h1>Title</h1>
17
- <wm-navigator id="nav" selected-product="planning" user-name="Adrienne Johnson" email="ajohnson@watermarkinsights.com"></wm-navigator>
18
- <script>window.onload = function getModules() {
19
- const navigator = document.getElementById("nav");
20
- const userModules = [{ "id": "aqua", "link_url": "", "saml_link_url": "" }, { "id": "dm", "link_url": "", "saml_link_url": "" }, { "id": "planning", "link_url": "", "saml_link_url": "" }, { "id": "livetext", "link_url": "", "saml_link_url": "" }];
21
- const stringifyModules = JSON.stringify(userModules);
22
- navigator.products = stringifyModules;
23
- };</script>
24
- </main>
25
- </body>
26
- </html>`);
27
- // navigator = await page.find("wm-navigator");
28
- // navigatorList = await page.find("wm-navigator >>> ul");
29
- navigatorButton = await page.find("wm-navigator >>> priv-navigator-button");
30
- button = await navigatorButton.shadowRoot.querySelector("button");
31
- });
32
- // RENDER
33
- it("renders a button", async () => {
34
- expect(button).not.toBeNull();
35
- });
36
- it("it has an aria-expanded attribute whose value updates when the menu opens and closes", async () => {
37
- await page.keyboard.press("Tab");
38
- await page.waitForChanges();
39
- await page.keyboard.press("Enter");
40
- await page.waitForChanges();
41
- navigatorButton = await page.find("wm-navigator >>> priv-navigator-button");
42
- button = await navigatorButton.shadowRoot.querySelector("button");
43
- expect(button.getAttribute("aria-expanded")).toEqual("true");
44
- await page.keyboard.press("Escape");
45
- await page.waitForChanges();
46
- navigatorButton = await page.find("wm-navigator >>> priv-navigator-button");
47
- button = await navigatorButton.shadowRoot.querySelector("button");
48
- expect(button.getAttribute("aria-expanded")).toEqual("false");
49
- });
50
- });