@cssints/apg-specs 0.0.0-stage → 0.5.2

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 (260) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +65 -2
  3. package/dist/apg/accordion.bridge.d.mts +35 -0
  4. package/dist/apg/accordion.bridge.mjs +326 -0
  5. package/dist/apg/accordion.model.json +8397 -0
  6. package/dist/apg/alert.bridge.d.mts +22 -0
  7. package/dist/apg/alert.bridge.mjs +86 -0
  8. package/dist/apg/alert.model.json +871 -0
  9. package/dist/apg/alertdialog.bridge.d.mts +21 -0
  10. package/dist/apg/alertdialog.bridge.mjs +221 -0
  11. package/dist/apg/alertdialog.model.json +5232 -0
  12. package/dist/apg/breadcrumb.bridge.d.mts +26 -0
  13. package/dist/apg/breadcrumb.bridge.mjs +120 -0
  14. package/dist/apg/breadcrumb.model.json +574 -0
  15. package/dist/apg/button.bridge.d.mts +35 -0
  16. package/dist/apg/button.bridge.mjs +208 -0
  17. package/dist/apg/button.model.json +5814 -0
  18. package/dist/apg/carousel.bridge.d.mts +44 -0
  19. package/dist/apg/carousel.bridge.mjs +262 -0
  20. package/dist/apg/carousel.model.json +8963 -0
  21. package/dist/apg/checkbox-group.bridge.d.mts +25 -0
  22. package/dist/apg/checkbox-group.bridge.mjs +276 -0
  23. package/dist/apg/checkbox-group.model.json +3863 -0
  24. package/dist/apg/checkbox.bridge.d.mts +34 -0
  25. package/dist/apg/checkbox.bridge.mjs +253 -0
  26. package/dist/apg/checkbox.model.json +3158 -0
  27. package/dist/apg/combobox-autocomplete.bridge.d.mts +14 -0
  28. package/dist/apg/combobox-autocomplete.bridge.mjs +326 -0
  29. package/dist/apg/combobox-autocomplete.model.json +11586 -0
  30. package/dist/apg/combobox-dialog.bridge.d.mts +17 -0
  31. package/dist/apg/combobox-dialog.bridge.mjs +250 -0
  32. package/dist/apg/combobox-dialog.model.json +8981 -0
  33. package/dist/apg/combobox-grid.bridge.d.mts +17 -0
  34. package/dist/apg/combobox-grid.bridge.mjs +227 -0
  35. package/dist/apg/combobox-grid.model.json +8554 -0
  36. package/dist/apg/combobox-select-only.bridge.d.mts +24 -0
  37. package/dist/apg/combobox-select-only.bridge.mjs +304 -0
  38. package/dist/apg/combobox-select-only.model.json +7846 -0
  39. package/dist/apg/combobox-tree.bridge.d.mts +17 -0
  40. package/dist/apg/combobox-tree.bridge.mjs +211 -0
  41. package/dist/apg/combobox-tree.model.json +9345 -0
  42. package/dist/apg/dialog-modal.bridge.d.mts +35 -0
  43. package/dist/apg/dialog-modal.bridge.mjs +186 -0
  44. package/dist/apg/dialog-modal.model.json +7580 -0
  45. package/dist/apg/disclosure.bridge.d.mts +25 -0
  46. package/dist/apg/disclosure.bridge.mjs +202 -0
  47. package/dist/apg/disclosure.model.json +4703 -0
  48. package/dist/apg/feed.bridge.d.mts +31 -0
  49. package/dist/apg/feed.bridge.mjs +246 -0
  50. package/dist/apg/feed.model.json +4523 -0
  51. package/dist/apg/grid-selection.bridge.d.mts +13 -0
  52. package/dist/apg/grid-selection.bridge.mjs +160 -0
  53. package/dist/apg/grid-selection.model.json +6974 -0
  54. package/dist/apg/grid-sort.bridge.d.mts +12 -0
  55. package/dist/apg/grid-sort.bridge.mjs +138 -0
  56. package/dist/apg/grid-sort.model.json +3799 -0
  57. package/dist/apg/grid.bridge.d.mts +54 -0
  58. package/dist/apg/grid.bridge.mjs +441 -0
  59. package/dist/apg/grid.model.json +3802 -0
  60. package/dist/apg/link.bridge.d.mts +24 -0
  61. package/dist/apg/link.bridge.mjs +126 -0
  62. package/dist/apg/link.model.json +694 -0
  63. package/dist/apg/listbox-multi.bridge.d.mts +10 -0
  64. package/dist/apg/listbox-multi.bridge.mjs +261 -0
  65. package/dist/apg/listbox-multi.model.json +10893 -0
  66. package/dist/apg/listbox-rearrangeable.bridge.d.mts +20 -0
  67. package/dist/apg/listbox-rearrangeable.bridge.mjs +237 -0
  68. package/dist/apg/listbox-rearrangeable.model.json +17592 -0
  69. package/dist/apg/listbox-shared.d.mts +58 -0
  70. package/dist/apg/listbox-shared.mjs +171 -0
  71. package/dist/apg/listbox-single.bridge.d.mts +10 -0
  72. package/dist/apg/listbox-single.bridge.mjs +196 -0
  73. package/dist/apg/listbox-single.model.json +8024 -0
  74. package/dist/apg/listbox-typeahead.bridge.d.mts +10 -0
  75. package/dist/apg/listbox-typeahead.bridge.mjs +153 -0
  76. package/dist/apg/listbox-typeahead.model.json +5615 -0
  77. package/dist/apg/menu-button.bridge.d.mts +29 -0
  78. package/dist/apg/menu-button.bridge.mjs +259 -0
  79. package/dist/apg/menu-button.model.json +5706 -0
  80. package/dist/apg/menu-checkable.bridge.d.mts +25 -0
  81. package/dist/apg/menu-checkable.bridge.mjs +226 -0
  82. package/dist/apg/menu-checkable.model.json +4277 -0
  83. package/dist/apg/menu-menubar.bridge.d.mts +27 -0
  84. package/dist/apg/menu-menubar.bridge.mjs +273 -0
  85. package/dist/apg/menu-menubar.model.json +9540 -0
  86. package/dist/apg/meter.bridge.d.mts +28 -0
  87. package/dist/apg/meter.bridge.mjs +159 -0
  88. package/dist/apg/meter.model.json +1185 -0
  89. package/dist/apg/player.bridge.d.mts +24 -0
  90. package/dist/apg/player.bridge.mjs +342 -0
  91. package/dist/apg/player.model.json +11013 -0
  92. package/dist/apg/radio.bridge.d.mts +35 -0
  93. package/dist/apg/radio.bridge.mjs +371 -0
  94. package/dist/apg/radio.model.json +5011 -0
  95. package/dist/apg/slider-multithumb.bridge.d.mts +34 -0
  96. package/dist/apg/slider-multithumb.bridge.mjs +365 -0
  97. package/dist/apg/slider-multithumb.model.json +5774 -0
  98. package/dist/apg/slider.bridge.d.mts +54 -0
  99. package/dist/apg/slider.bridge.mjs +359 -0
  100. package/dist/apg/slider.model.json +4881 -0
  101. package/dist/apg/spinbutton.bridge.d.mts +41 -0
  102. package/dist/apg/spinbutton.bridge.mjs +327 -0
  103. package/dist/apg/spinbutton.model.json +7571 -0
  104. package/dist/apg/switch.bridge.d.mts +30 -0
  105. package/dist/apg/switch.bridge.mjs +243 -0
  106. package/dist/apg/switch.model.json +3159 -0
  107. package/dist/apg/tabs.bridge.d.mts +41 -0
  108. package/dist/apg/tabs.bridge.mjs +294 -0
  109. package/dist/apg/tabs.model.json +7659 -0
  110. package/dist/apg/timeline.bridge.d.mts +36 -0
  111. package/dist/apg/timeline.bridge.mjs +265 -0
  112. package/dist/apg/timeline.model.json +6189 -0
  113. package/dist/apg/toolbar.bridge.d.mts +25 -0
  114. package/dist/apg/toolbar.bridge.mjs +307 -0
  115. package/dist/apg/toolbar.model.json +6616 -0
  116. package/dist/apg/tooltip.bridge.d.mts +36 -0
  117. package/dist/apg/tooltip.bridge.mjs +208 -0
  118. package/dist/apg/tooltip.model.json +8295 -0
  119. package/dist/apg/treegrid.bridge.d.mts +28 -0
  120. package/dist/apg/treegrid.bridge.mjs +311 -0
  121. package/dist/apg/treegrid.model.json +17358 -0
  122. package/dist/apg/treeview.bridge.d.mts +26 -0
  123. package/dist/apg/treeview.bridge.mjs +396 -0
  124. package/dist/apg/treeview.model.json +13745 -0
  125. package/dist/apg/windowsplitter.bridge.d.mts +36 -0
  126. package/dist/apg/windowsplitter.bridge.mjs +242 -0
  127. package/dist/apg/windowsplitter.model.json +6253 -0
  128. package/dist/canvas/camera.model.json +6568 -0
  129. package/dist/canvas/canvas.bridge.d.mts +190 -0
  130. package/dist/canvas/canvas.bridge.mjs +729 -0
  131. package/dist/canvas/pointer.model.json +17095 -0
  132. package/dist/scenario.d.mts +233 -0
  133. package/dist/scenario.mjs +313 -0
  134. package/package.json +57 -4
  135. package/scenarios/apg/README.md +221 -0
  136. package/scenarios/apg/accordion.base-ui.json +1005 -0
  137. package/scenarios/apg/accordion.react-aria.json +929 -0
  138. package/scenarios/apg/alert.base-ui.json +81 -0
  139. package/scenarios/apg/alert.react-aria.json +98 -0
  140. package/scenarios/apg/alertdialog.base-ui.json +331 -0
  141. package/scenarios/apg/alertdialog.react-aria.json +225 -0
  142. package/scenarios/apg/breadcrumb.react-aria.json +312 -0
  143. package/scenarios/apg/button.ariakit.json +136 -0
  144. package/scenarios/apg/button.base-ui.json +747 -0
  145. package/scenarios/apg/button.react-aria.json +443 -0
  146. package/scenarios/apg/carousel.apg.json +909 -0
  147. package/scenarios/apg/checkbox.ariakit.json +299 -0
  148. package/scenarios/apg/checkbox.base-ui.json +1126 -0
  149. package/scenarios/apg/checkbox.react-aria.json +518 -0
  150. package/scenarios/apg/combobox.ariakit.json +945 -0
  151. package/scenarios/apg/combobox.base-ui.json +2444 -0
  152. package/scenarios/apg/combobox.react-aria.json +845 -0
  153. package/scenarios/apg/dialog-modal.ariakit.json +1102 -0
  154. package/scenarios/apg/dialog-modal.base-ui.json +775 -0
  155. package/scenarios/apg/dialog-modal.react-aria.json +638 -0
  156. package/scenarios/apg/disclosure.apg.json +349 -0
  157. package/scenarios/apg/disclosure.ariakit.json +163 -0
  158. package/scenarios/apg/disclosure.base-ui.json +451 -0
  159. package/scenarios/apg/disclosure.react-aria.json +643 -0
  160. package/scenarios/apg/feed.apg.json +442 -0
  161. package/scenarios/apg/grid.ariakit.json +197 -0
  162. package/scenarios/apg/grid.base-ui.json +720 -0
  163. package/scenarios/apg/grid.react-aria.json +969 -0
  164. package/scenarios/apg/landmarks.ariakit.json +93 -0
  165. package/scenarios/apg/landmarks.react-aria.json +330 -0
  166. package/scenarios/apg/link.ariakit.json +83 -0
  167. package/scenarios/apg/link.base-ui.json +88 -0
  168. package/scenarios/apg/link.react-aria.json +186 -0
  169. package/scenarios/apg/listbox.ariakit.json +78 -0
  170. package/scenarios/apg/listbox.base-ui.json +163 -0
  171. package/scenarios/apg/listbox.react-aria.json +1118 -0
  172. package/scenarios/apg/menu-button.ariakit.json +924 -0
  173. package/scenarios/apg/menu-button.base-ui.json +1155 -0
  174. package/scenarios/apg/menu-button.react-aria.json +1080 -0
  175. package/scenarios/apg/menubar.ariakit.json +758 -0
  176. package/scenarios/apg/menubar.base-ui.json +673 -0
  177. package/scenarios/apg/meter.base-ui.json +243 -0
  178. package/scenarios/apg/meter.react-aria.json +201 -0
  179. package/scenarios/apg/radio.ariakit.json +459 -0
  180. package/scenarios/apg/radio.base-ui.json +581 -0
  181. package/scenarios/apg/radio.react-aria.json +576 -0
  182. package/scenarios/apg/slider-multithumb.base-ui.json +316 -0
  183. package/scenarios/apg/slider-multithumb.react-aria.json +363 -0
  184. package/scenarios/apg/slider.base-ui.json +544 -0
  185. package/scenarios/apg/slider.react-aria.json +456 -0
  186. package/scenarios/apg/spinbutton.base-ui.json +1688 -0
  187. package/scenarios/apg/spinbutton.react-aria.json +426 -0
  188. package/scenarios/apg/switch.base-ui.json +456 -0
  189. package/scenarios/apg/switch.react-aria.json +303 -0
  190. package/scenarios/apg/table.ariakit.json +65 -0
  191. package/scenarios/apg/table.react-aria.json +221 -0
  192. package/scenarios/apg/tabs.ariakit.json +329 -0
  193. package/scenarios/apg/tabs.base-ui.json +875 -0
  194. package/scenarios/apg/tabs.react-aria.json +644 -0
  195. package/scenarios/apg/toolbar.ariakit.json +595 -0
  196. package/scenarios/apg/toolbar.base-ui.json +1189 -0
  197. package/scenarios/apg/toolbar.react-aria.json +383 -0
  198. package/scenarios/apg/tooltip.ariakit.json +441 -0
  199. package/scenarios/apg/tooltip.base-ui.json +411 -0
  200. package/scenarios/apg/tooltip.react-aria.json +454 -0
  201. package/scenarios/apg/treegrid.apg.json +2558 -0
  202. package/scenarios/apg/treegrid.react-aria.json +5094 -0
  203. package/scenarios/apg/treeview.apg.json +928 -0
  204. package/scenarios/apg/windowsplitter.apg.json +557 -0
  205. package/scenarios/canvas/README.md +69 -0
  206. package/scenarios/canvas/camera.contract.json +237 -0
  207. package/scenarios/canvas/camera.excalidraw.json +57 -0
  208. package/scenarios/canvas/marquee.excalidraw.json +122 -0
  209. package/scenarios/canvas/pan.excalidraw.json +46 -0
  210. package/scenarios/canvas/pointer.contract.json +528 -0
  211. package/scenarios/parts.json +291 -0
  212. package/shared/aria.qnt +186 -0
  213. package/shared/details-group.qnt +50 -0
  214. package/shared/focusgroup.qnt +152 -0
  215. package/shared/invokers.qnt +81 -0
  216. package/shared/popover.qnt +71 -0
  217. package/specs/apg/STATIC.md +103 -0
  218. package/specs/apg/accordion.qnt +578 -0
  219. package/specs/apg/alert.qnt +131 -0
  220. package/specs/apg/alertdialog.qnt +455 -0
  221. package/specs/apg/breadcrumb.qnt +88 -0
  222. package/specs/apg/button.qnt +445 -0
  223. package/specs/apg/carousel.qnt +732 -0
  224. package/specs/apg/checkbox-group.qnt +388 -0
  225. package/specs/apg/checkbox.qnt +394 -0
  226. package/specs/apg/combobox-autocomplete.qnt +764 -0
  227. package/specs/apg/combobox-dialog.qnt +627 -0
  228. package/specs/apg/combobox-grid.qnt +632 -0
  229. package/specs/apg/combobox-select-only.qnt +626 -0
  230. package/specs/apg/combobox-tree.qnt +633 -0
  231. package/specs/apg/dialog-modal.qnt +499 -0
  232. package/specs/apg/disclosure.qnt +309 -0
  233. package/specs/apg/feed.qnt +485 -0
  234. package/specs/apg/grid-selection.qnt +512 -0
  235. package/specs/apg/grid-sort.qnt +330 -0
  236. package/specs/apg/grid.qnt +360 -0
  237. package/specs/apg/link.qnt +119 -0
  238. package/specs/apg/listbox-multi.qnt +799 -0
  239. package/specs/apg/listbox-rearrangeable.qnt +801 -0
  240. package/specs/apg/listbox-single.qnt +511 -0
  241. package/specs/apg/listbox-typeahead.qnt +396 -0
  242. package/specs/apg/menu-button.qnt +363 -0
  243. package/specs/apg/menu-checkable.qnt +304 -0
  244. package/specs/apg/menu-menubar.qnt +531 -0
  245. package/specs/apg/meter.qnt +129 -0
  246. package/specs/apg/player.qnt +1081 -0
  247. package/specs/apg/radio.qnt +394 -0
  248. package/specs/apg/slider-multithumb.qnt +441 -0
  249. package/specs/apg/slider.qnt +396 -0
  250. package/specs/apg/spinbutton.qnt +494 -0
  251. package/specs/apg/switch.qnt +389 -0
  252. package/specs/apg/tabs.qnt +412 -0
  253. package/specs/apg/timeline.qnt +612 -0
  254. package/specs/apg/toolbar.qnt +364 -0
  255. package/specs/apg/tooltip.qnt +553 -0
  256. package/specs/apg/treegrid.qnt +983 -0
  257. package/specs/apg/treeview.qnt +1004 -0
  258. package/specs/apg/windowsplitter.qnt +487 -0
  259. package/specs/canvas/camera.qnt +407 -0
  260. package/specs/canvas/pointer.qnt +841 -0
@@ -0,0 +1,638 @@
1
+ {
2
+ "pattern": "dialog-modal",
3
+ "source": "react-aria",
4
+ "commit": "99e610236887da619ad9d54a1cd87983166c043d",
5
+ "license": "Apache-2.0",
6
+ "skipped": [
7
+ {
8
+ "reason": "enter/exit animation and isEntering/isExiting/data-entering/data-exiting timing (react-aria-components Dialog.test.js onEnter/onExit suite)"
9
+ },
10
+ {
11
+ "reason": "portal container plumbing (UNSAFE_PortalProvider / UNSTABLE_portalContainer tests)"
12
+ },
13
+ {
14
+ "reason": "render-props and custom data-attribute styling surfaces (Dialog.test.js render props, custom data attributes)"
15
+ },
16
+ {
17
+ "reason": "popover positioning / OverlayArrow / spectrum styling assertions"
18
+ },
19
+ {
20
+ "reason": "tray, mobile detection and date-picker integration branches (should trigger a tray, mobile type modals, DateRangePicker dismissal) which assert non-dialog internals"
21
+ },
22
+ {
23
+ "reason": "dev-only warnings (useDialog missing-title warning, unmounting trigger warning)"
24
+ },
25
+ {
26
+ "reason": "React-API-only details: isOpen/defaultOpen context override, controlled onOpenChange bookkeeping without a behaviour change, FocusScope generic focus-manager unit tests against synthetic components"
27
+ },
28
+ { "reason": "SSR tests (Dialog.ssr, useModal.ssr)" }
29
+ ],
30
+ "scenarios": [
31
+ {
32
+ "id": "dialog-modal.react-aria.base-role-dialog",
33
+ "upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria-components/test/Dialog.test.js#L42",
34
+ "upstreamTest": "Dialog > should have a base default set of attributes",
35
+ "apg": "wai-aria",
36
+ "config": {},
37
+ "steps": [
38
+ {
39
+ "expect": {
40
+ "visible": ["dialog"],
41
+ "attrs": { "dialog": { "role": "dialog" } }
42
+ }
43
+ }
44
+ ]
45
+ },
46
+ {
47
+ "id": "dialog-modal.react-aria.role-dialog-by-default",
48
+ "upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria/test/dialog/useDialog.test.js#L29",
49
+ "upstreamTest": "useDialog > should have role=\"dialog\" by default",
50
+ "apg": "wai-aria",
51
+ "config": {},
52
+ "steps": [{ "expect": { "attrs": { "dialog": { "role": "dialog" } } } }]
53
+ },
54
+ {
55
+ "id": "dialog-modal.react-aria.role-alertdialog-accepted",
56
+ "upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria/test/dialog/useDialog.test.js#L35",
57
+ "upstreamTest": "useDialog > should accept role=\"alertdialog\"",
58
+ "apg": "wai-aria",
59
+ "config": { "role": "alertdialog" },
60
+ "steps": [
61
+ { "expect": { "attrs": { "dialog": { "role": "alertdialog" } } } }
62
+ ]
63
+ },
64
+ {
65
+ "id": "dialog-modal.react-aria.modal-role-and-labelledby",
66
+ "upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria-components/test/Dialog.test.js#L54",
67
+ "upstreamTest": "Dialog > works with modal",
68
+ "apg": "wai-aria",
69
+ "config": { "modal": true },
70
+ "steps": [
71
+ { "event": "click", "target": "trigger" },
72
+ {
73
+ "expect": {
74
+ "visible": ["dialog"],
75
+ "attrs": {
76
+ "dialog": { "role": "alertdialog", "aria-labelledby": "title" }
77
+ }
78
+ }
79
+ },
80
+ { "event": "click", "target": "dismiss" },
81
+ { "expect": { "hidden": ["dialog"] } }
82
+ ]
83
+ },
84
+ {
85
+ "id": "dialog-modal.react-aria.alertdialog-describedby-from-description-slot",
86
+ "upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria-components/test/Dialog.test.js#L89",
87
+ "upstreamTest": "Dialog > should set aria-describedby when Text slot=\"description\" is used in alertdialog",
88
+ "apg": "wai-aria",
89
+ "config": { "modal": true, "role": "alertdialog" },
90
+ "steps": [
91
+ { "event": "click", "target": "trigger" },
92
+ {
93
+ "expect": {
94
+ "attrs": {
95
+ "dialog": {
96
+ "role": "alertdialog",
97
+ "aria-describedby": "description"
98
+ }
99
+ }
100
+ }
101
+ }
102
+ ]
103
+ },
104
+ {
105
+ "id": "dialog-modal.react-aria.modal-with-custom-underlay-labelledby",
106
+ "upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria-components/test/Dialog.test.js#L119",
107
+ "upstreamTest": "Dialog > works with modal and custom underlay",
108
+ "apg": "wai-aria",
109
+ "config": { "modal": true, "customUnderlay": true },
110
+ "steps": [
111
+ { "event": "click", "target": "trigger" },
112
+ { "expect": { "attrs": { "dialog": { "aria-labelledby": "title" } } } },
113
+ { "event": "click", "target": "dismiss" },
114
+ { "expect": { "hidden": ["dialog"] } }
115
+ ]
116
+ },
117
+ {
118
+ "id": "dialog-modal.react-aria.dismiss-button-closes",
119
+ "upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria-components/test/Dialog.test.js#L156",
120
+ "upstreamTest": "Dialog > has dismiss button when isDismissable",
121
+ "apg": "wai-aria",
122
+ "config": { "modal": true, "isDismissable": true },
123
+ "steps": [
124
+ { "event": "click", "target": "trigger" },
125
+ { "event": "click", "target": "dismiss" },
126
+ { "expect": { "hidden": ["dialog"] } }
127
+ ],
128
+ "notes": "The dismiss control is labelled 'Dismiss'."
129
+ },
130
+ {
131
+ "id": "dialog-modal.react-aria.default-aria-label-from-trigger",
132
+ "upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria-components/test/Dialog.test.js#L229",
133
+ "upstreamTest": "Dialog > should get default aria label from trigger",
134
+ "apg": "wai-aria",
135
+ "config": { "overlay": "popover" },
136
+ "steps": [
137
+ { "event": "click", "target": "trigger" },
138
+ {
139
+ "expect": { "attrs": { "dialog": { "aria-labelledby": "trigger" } } }
140
+ },
141
+ { "event": "click", "target": "outside" },
142
+ { "expect": { "hidden": ["dialog"] } }
143
+ ]
144
+ },
145
+ {
146
+ "id": "dialog-modal.react-aria.render-prop-close-button-closes",
147
+ "upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria-components/test/Dialog.test.js#L249",
148
+ "upstreamTest": "Dialog > should support render props",
149
+ "apg": "extension",
150
+ "config": { "overlay": "popover" },
151
+ "steps": [
152
+ { "event": "click", "target": "trigger" },
153
+ { "expect": { "visible": ["dialog"] } },
154
+ { "event": "click", "target": "dismiss" },
155
+ { "expect": { "hidden": ["dialog"] } }
156
+ ]
157
+ },
158
+ {
159
+ "id": "dialog-modal.react-aria.standalone-modal-dismiss-on-outside-click",
160
+ "upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria-components/test/Dialog.test.js#L281",
161
+ "upstreamTest": "Dialog > should support Modal being used standalone",
162
+ "apg": "keyboard",
163
+ "config": { "modal": true, "open": true, "isDismissable": true },
164
+ "steps": [
165
+ { "event": "click", "target": "outside" },
166
+ { "expect": { "events": { "onOpenChange": [false] } } }
167
+ ]
168
+ },
169
+ {
170
+ "id": "dialog-modal.react-aria.autofocus-input-from-keyboard-menu-item",
171
+ "upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria-components/test/Dialog.test.js#L672",
172
+ "upstreamTest": "Dialog > ensure Input autoFocus works when opening Modal from MenuItem via keyboard",
173
+ "apg": "focus",
174
+ "config": { "modal": true },
175
+ "steps": [
176
+ { "event": "key", "key": "Tab", "target": "trigger" },
177
+ { "event": "key", "key": "Enter", "target": "trigger" },
178
+ { "expect": { "visible": ["menu"], "focus": "menuitem:0" } },
179
+ { "event": "key", "key": "Enter", "target": "menuitem:0" },
180
+ { "expect": { "visible": ["dialog"], "focus": "autofocus-input" } }
181
+ ]
182
+ },
183
+ {
184
+ "id": "dialog-modal.react-aria.outside-click-dismisses-popover-not-modal",
185
+ "upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria-components/test/Dialog.test.js#L727",
186
+ "upstreamTest": "Dialog > should not close Modal when DateRangePicker is dismissed by outside click",
187
+ "apg": "extension",
188
+ "config": { "modal": true, "nestedPopover": true },
189
+ "steps": [
190
+ { "event": "click", "target": "trigger" },
191
+ { "event": "click", "target": "calendar-button" },
192
+ { "expect": { "visible": ["popover"] } },
193
+ { "event": "click", "target": "outside" },
194
+ { "expect": { "hidden": ["popover"], "visible": ["dialog"] } }
195
+ ]
196
+ },
197
+ {
198
+ "id": "dialog-modal.react-aria.dialog-does-not-autofocus-inner-content",
199
+ "upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/@adobe/react-spectrum/test/dialog/Dialog.test.js#L22",
200
+ "upstreamTest": "Dialog > does not auto focus anything inside",
201
+ "apg": "focus",
202
+ "config": {},
203
+ "steps": [
204
+ {
205
+ "expect": {
206
+ "focus": "dialog",
207
+ "attrs": { "dialog": { "aria-labelledby": null } }
208
+ }
209
+ }
210
+ ]
211
+ },
212
+ {
213
+ "id": "dialog-modal.react-aria.dialog-autofocuses-itself-without-focusable-child",
214
+ "upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/@adobe/react-spectrum/test/dialog/Dialog.test.js#L36",
215
+ "upstreamTest": "Dialog > auto focuses the dialog itself if there is no focusable child",
216
+ "apg": "focus",
217
+ "config": {},
218
+ "steps": [{ "expect": { "focus": "dialog" } }]
219
+ },
220
+ {
221
+ "id": "dialog-modal.react-aria.dialog-autofocuses-element-with-autofocus",
222
+ "upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/@adobe/react-spectrum/test/dialog/Dialog.test.js#L43",
223
+ "upstreamTest": "Dialog > autofocuses any element that has autofocus inside",
224
+ "apg": "focus",
225
+ "config": { "initialFocus": "input:1" },
226
+ "steps": [{ "expect": { "focus": "input:1" } }]
227
+ },
228
+ {
229
+ "id": "dialog-modal.react-aria.dialog-labelled-by-header",
230
+ "upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/@adobe/react-spectrum/test/dialog/Dialog.test.js#L55",
231
+ "upstreamTest": "Dialog > should be labelled by its header",
232
+ "apg": "wai-aria",
233
+ "config": { "modal": true },
234
+ "steps": [
235
+ { "expect": { "attrs": { "dialog": { "aria-labelledby": "header" } } } }
236
+ ]
237
+ },
238
+ {
239
+ "id": "dialog-modal.react-aria.aria-labelledby-precedence-over-title",
240
+ "upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/@adobe/react-spectrum/test/dialog/Dialog.test.js#L75",
241
+ "upstreamTest": "Dialog > if aria-labelledby is specified, then that takes precedence over the title",
242
+ "apg": "wai-aria",
243
+ "config": { "modal": true, "ariaLabelledby": "batman" },
244
+ "steps": [
245
+ { "expect": { "attrs": { "dialog": { "aria-labelledby": "batman" } } } }
246
+ ]
247
+ },
248
+ {
249
+ "id": "dialog-modal.react-aria.aria-label-precedence-over-title",
250
+ "upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/@adobe/react-spectrum/test/dialog/Dialog.test.js#L99",
251
+ "upstreamTest": "Dialog > if aria-label is specified, then that takes precedence over the title",
252
+ "apg": "wai-aria",
253
+ "config": { "modal": true, "ariaLabel": "robin" },
254
+ "steps": [
255
+ {
256
+ "expect": {
257
+ "attrs": {
258
+ "dialog": { "aria-label": "robin", "aria-labelledby": null }
259
+ }
260
+ }
261
+ }
262
+ ]
263
+ },
264
+ {
265
+ "id": "dialog-modal.react-aria.dialog-trigger-modal-default",
266
+ "upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/@adobe/react-spectrum/test/dialog/DialogTrigger.test.js#L77",
267
+ "upstreamTest": "DialogTrigger > should trigger a modal by default",
268
+ "apg": "wai-aria",
269
+ "config": { "modal": true },
270
+ "steps": [
271
+ { "event": "click", "target": "trigger" },
272
+ { "expect": { "visible": ["dialog"] } }
273
+ ]
274
+ },
275
+ {
276
+ "id": "dialog-modal.react-aria.restore-focus-to-trigger-on-close",
277
+ "upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/@adobe/react-spectrum/test/dialog/DialogTrigger.test.js#L280",
278
+ "upstreamTest": "DialogTrigger > should restore focus to the trigger when the dialog is closed",
279
+ "apg": "focus",
280
+ "config": { "modal": true },
281
+ "steps": [
282
+ { "event": "click", "target": "trigger" },
283
+ { "expect": { "focus": "dialog" } },
284
+ { "event": "key", "key": "Escape", "target": "dialog" },
285
+ { "expect": { "focus": "trigger" } }
286
+ ]
287
+ },
288
+ {
289
+ "id": "dialog-modal.react-aria.restore-focus-after-hidden-dismiss",
290
+ "upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/@adobe/react-spectrum/test/dialog/DialogTrigger.test.js#L303",
291
+ "upstreamTest": "DialogTrigger > should restore focus to the trigger when the dialog is closed from a hidden dismiss button",
292
+ "apg": "focus",
293
+ "config": { "overlay": "popover" },
294
+ "steps": [
295
+ { "event": "click", "target": "trigger" },
296
+ { "expect": { "focus": "dialog" } },
297
+ { "event": "click", "target": "dismiss" },
298
+ { "expect": { "focus": "trigger" } }
299
+ ]
300
+ },
301
+ {
302
+ "id": "dialog-modal.react-aria.popover-trigger-toggles-closed",
303
+ "upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/@adobe/react-spectrum/test/dialog/DialogTrigger.test.js#L347",
304
+ "upstreamTest": "DialogTrigger > popovers should be closeable by clicking their trigger while they are open",
305
+ "apg": "extension",
306
+ "config": { "overlay": "popover" },
307
+ "steps": [
308
+ { "event": "click", "target": "trigger" },
309
+ {
310
+ "expect": {
311
+ "visible": ["dialog"],
312
+ "events": { "onOpenChange": [true] }
313
+ }
314
+ },
315
+ { "event": "click", "target": "trigger" },
316
+ { "expect": { "hidden": ["dialog"] } }
317
+ ]
318
+ },
319
+ {
320
+ "id": "dialog-modal.react-aria.dismissable-modal-closes-on-outside-click",
321
+ "upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/@adobe/react-spectrum/test/dialog/DialogTrigger.test.js#L622",
322
+ "upstreamTest": "DialogTrigger > dismissable modals can be closed by clicking outside the dialog",
323
+ "apg": "keyboard",
324
+ "config": { "modal": true, "open": true, "isDismissable": true },
325
+ "steps": [
326
+ { "event": "click", "target": "outside" },
327
+ { "expect": { "events": { "onOpenChange": [false] } } }
328
+ ]
329
+ },
330
+ {
331
+ "id": "dialog-modal.react-aria.non-dismissable-modal-ignores-outside-click",
332
+ "upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/@adobe/react-spectrum/test/dialog/DialogTrigger.test.js#L664",
333
+ "upstreamTest": "DialogTrigger > non dismissable modals cannot be closed by clicking outside the dialog",
334
+ "apg": "keyboard",
335
+ "config": { "modal": true, "open": true, "isDismissable": false },
336
+ "steps": [
337
+ { "event": "click", "target": "outside" },
338
+ {
339
+ "expect": { "visible": ["dialog"], "events": { "onOpenChange": [] } }
340
+ }
341
+ ]
342
+ },
343
+ {
344
+ "id": "dialog-modal.react-aria.non-modal-closes-on-outside-click-regardless",
345
+ "upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/@adobe/react-spectrum/test/dialog/DialogTrigger.test.js#L739",
346
+ "upstreamTest": "DialogTrigger > non-modals can be closed by clicking outside the dialog regardless of isDismissable",
347
+ "apg": "keyboard",
348
+ "config": { "overlay": "popover", "open": true, "isDismissable": false },
349
+ "steps": [
350
+ { "event": "click", "target": "outside" },
351
+ { "expect": { "events": { "onOpenChange": [false] } } }
352
+ ]
353
+ },
354
+ {
355
+ "id": "dialog-modal.react-aria.escape-disabled-keeps-dialog-open",
356
+ "upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/@adobe/react-spectrum/test/dialog/DialogTrigger.test.js#L781",
357
+ "upstreamTest": "DialogTrigger > disable closing dialog via escape key",
358
+ "apg": "keyboard",
359
+ "config": { "modal": true, "isKeyboardDismissDisabled": true },
360
+ "steps": [
361
+ { "event": "click", "target": "trigger" },
362
+ { "expect": { "visible": ["dialog"], "focus": "dialog" } },
363
+ { "event": "key", "key": "Escape", "target": "dialog" },
364
+ { "expect": { "visible": ["dialog"], "focus": "dialog" } },
365
+ { "event": "click", "target": "dismiss" },
366
+ { "expect": { "hidden": ["dialog"] } }
367
+ ]
368
+ },
369
+ {
370
+ "id": "dialog-modal.react-aria.nested-dialog-does-not-restore-focus-to-outer",
371
+ "upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/@adobe/react-spectrum/test/dialog/DialogTrigger.test.js#L874",
372
+ "upstreamTest": "DialogTrigger > should not try to restore focus to the outer dialog when the inner dialog opens",
373
+ "apg": "focus",
374
+ "config": {
375
+ "modal": true,
376
+ "nested": true,
377
+ "outerAutoFocus": true,
378
+ "innerAutoFocus": true
379
+ },
380
+ "steps": [
381
+ { "event": "click", "target": "trigger" },
382
+ { "expect": { "focus": "outer-input" } },
383
+ { "event": "click", "target": "inner-trigger" },
384
+ { "expect": { "focus": "inner-input" } },
385
+ { "event": "click", "target": "outside" },
386
+ { "expect": { "focus": "inner-input" } },
387
+ { "event": "focus", "target": "document-input" },
388
+ { "expect": { "focus": "inner-input" } }
389
+ ]
390
+ },
391
+ {
392
+ "id": "dialog-modal.react-aria.use-dialog-focuses-overlay-on-mount",
393
+ "upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria/test/dialog/useDialog.test.js#L43",
394
+ "upstreamTest": "useDialog > should focus the overlay on mount",
395
+ "apg": "focus",
396
+ "config": {},
397
+ "steps": [
398
+ {
399
+ "expect": {
400
+ "focus": "dialog",
401
+ "attrs": { "dialog": { "tabindex": "-1" } }
402
+ }
403
+ }
404
+ ]
405
+ },
406
+ {
407
+ "id": "dialog-modal.react-aria.use-dialog-keeps-inner-autofocus",
408
+ "upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria/test/dialog/useDialog.test.js#L50",
409
+ "upstreamTest": "useDialog > should not focus the overlay if something inside is auto focused",
410
+ "apg": "focus",
411
+ "config": { "initialFocus": "input:0" },
412
+ "steps": [{ "expect": { "focus": "input:0" } }]
413
+ },
414
+ {
415
+ "id": "dialog-modal.react-aria.use-dialog-alertdialog-describedby",
416
+ "upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria/test/dialog/useDialog.test.js#L73",
417
+ "upstreamTest": "useDialog > should set aria-describedby on alertdialog when content is rendered",
418
+ "apg": "wai-aria",
419
+ "config": { "role": "alertdialog", "showContent": true },
420
+ "steps": [
421
+ {
422
+ "expect": { "attrs": { "dialog": { "aria-describedby": "content" } } }
423
+ }
424
+ ]
425
+ },
426
+ {
427
+ "id": "dialog-modal.react-aria.use-dialog-no-describedby-on-regular-dialog",
428
+ "upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria/test/dialog/useDialog.test.js#L80",
429
+ "upstreamTest": "useDialog > should not auto-wire aria-describedby on regular dialog, but contentProps.id is still provided",
430
+ "apg": "wai-aria",
431
+ "config": {},
432
+ "steps": [
433
+ { "expect": { "attrs": { "dialog": { "aria-describedby": null } } } }
434
+ ]
435
+ },
436
+ {
437
+ "id": "dialog-modal.react-aria.use-dialog-describedby-override",
438
+ "upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria/test/dialog/useDialog.test.js#L97",
439
+ "upstreamTest": "useDialog > should allow aria-describedby override on alertdialog",
440
+ "apg": "wai-aria",
441
+ "config": { "role": "alertdialog", "ariaDescribedby": "custom-id" },
442
+ "steps": [
443
+ {
444
+ "expect": {
445
+ "attrs": { "dialog": { "aria-describedby": "custom-id" } }
446
+ }
447
+ }
448
+ ]
449
+ },
450
+ {
451
+ "id": "dialog-modal.react-aria.use-dialog-no-content-id-with-override",
452
+ "upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria/test/dialog/useDialog.test.js#L105",
453
+ "upstreamTest": "useDialog > should not generate contentProps.id when aria-describedby is provided",
454
+ "apg": "wai-aria",
455
+ "config": { "role": "alertdialog", "ariaDescribedby": "custom-id" },
456
+ "steps": [{ "expect": { "attrs": { "content": { "id": null } } } }]
457
+ },
458
+ {
459
+ "id": "dialog-modal.react-aria.use-overlay-keeps-child-focus",
460
+ "upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria/test/overlays/useOverlay.test.js#L44",
461
+ "upstreamTest": "useOverlay > should not focus the overlay if a child is focused",
462
+ "apg": "focus",
463
+ "config": { "open": true, "initialFocus": "input:0" },
464
+ "steps": [{ "expect": { "focus": "input:0" } }]
465
+ },
466
+ {
467
+ "id": "dialog-modal.react-aria.use-overlay-dismissable-outside-click",
468
+ "upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria/test/overlays/useOverlay.test.js#L55",
469
+ "upstreamTest": "useOverlay > should hide the overlay when clicking outside if isDismissble is true",
470
+ "apg": "keyboard",
471
+ "config": { "open": true, "isDismissable": true },
472
+ "steps": [
473
+ { "event": "click", "target": "outside" },
474
+ { "expect": { "events": { "onClose": [1] } } }
475
+ ]
476
+ },
477
+ {
478
+ "id": "dialog-modal.react-aria.use-overlay-should-close-outside-true",
479
+ "upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria/test/overlays/useOverlay.test.js#L64",
480
+ "upstreamTest": "useOverlay > should hide the overlay when clicking outside if shouldCloseOnInteractOutside returns true",
481
+ "apg": "keyboard",
482
+ "config": {
483
+ "open": true,
484
+ "isDismissable": true,
485
+ "shouldCloseOutside": true
486
+ },
487
+ "steps": [
488
+ { "event": "click", "target": "outside" },
489
+ { "expect": { "events": { "onClose": [1] } } }
490
+ ]
491
+ },
492
+ {
493
+ "id": "dialog-modal.react-aria.use-overlay-should-close-outside-false",
494
+ "upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria/test/overlays/useOverlay.test.js#L80",
495
+ "upstreamTest": "useOverlay > should not hide the overlay when clicking outside if shouldCloseOnInteractOutside returns false",
496
+ "apg": "keyboard",
497
+ "config": {
498
+ "open": true,
499
+ "isDismissable": true,
500
+ "shouldCloseOutside": false
501
+ },
502
+ "steps": [
503
+ { "event": "click", "target": "outside" },
504
+ { "expect": { "visible": ["dialog"], "events": { "onClose": [] } } }
505
+ ]
506
+ },
507
+ {
508
+ "id": "dialog-modal.react-aria.use-overlay-not-dismissable-ignores-outside",
509
+ "upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria/test/overlays/useOverlay.test.js#L96",
510
+ "upstreamTest": "useOverlay > should not hide the overlay when clicking outside if isDismissable is false",
511
+ "apg": "keyboard",
512
+ "config": { "open": true, "isDismissable": false },
513
+ "steps": [
514
+ { "event": "click", "target": "outside" },
515
+ { "expect": { "events": { "onClose": [] } } }
516
+ ]
517
+ },
518
+ {
519
+ "id": "dialog-modal.react-aria.use-overlay-only-top-most-hides",
520
+ "upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria/test/overlays/useOverlay.test.js#L105",
521
+ "upstreamTest": "useOverlay > should only hide the top-most overlay",
522
+ "apg": "extension",
523
+ "config": { "open": true, "isDismissable": true, "twoOverlays": true },
524
+ "steps": [
525
+ { "event": "click", "target": "outside" },
526
+ { "expect": { "events": { "onCloseFirst": [], "onCloseSecond": [1] } } }
527
+ ]
528
+ },
529
+ {
530
+ "id": "dialog-modal.react-aria.use-overlay-escape-hides",
531
+ "upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria/test/overlays/useOverlay.test.js#L126",
532
+ "upstreamTest": "useOverlay > should hide the overlay when pressing the escape key",
533
+ "apg": "keyboard",
534
+ "config": { "open": true },
535
+ "steps": [
536
+ { "event": "key", "key": "Escape", "target": "dialog" },
537
+ { "expect": { "events": { "onClose": [1] } } }
538
+ ]
539
+ },
540
+ {
541
+ "id": "dialog-modal.react-aria.use-overlay-escape-hides-even-not-dismissable",
542
+ "upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria/test/overlays/useOverlay.test.js#L134",
543
+ "upstreamTest": "useOverlay > should still hide the overlay when pressing the escape key if isDismissable is false",
544
+ "apg": "keyboard",
545
+ "config": { "open": true, "isDismissable": false },
546
+ "steps": [
547
+ { "event": "key", "key": "Escape", "target": "dialog" },
548
+ { "expect": { "events": { "onClose": [1] } } }
549
+ ]
550
+ },
551
+ {
552
+ "id": "dialog-modal.react-aria.use-modal-overlay-should-close-outside-true",
553
+ "upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria/test/overlays/useModalOverlay.test.js#L34",
554
+ "upstreamTest": "useModalOverlay > should hide the overlay when clicking outside if shouldCloseOnInteractOutside returns true",
555
+ "apg": "keyboard",
556
+ "config": {
557
+ "open": true,
558
+ "isDismissable": true,
559
+ "shouldCloseOutside": true
560
+ },
561
+ "steps": [
562
+ { "event": "click", "target": "outside" },
563
+ { "expect": { "events": { "onOpenChange": [false] } } }
564
+ ]
565
+ },
566
+ {
567
+ "id": "dialog-modal.react-aria.use-modal-overlay-should-close-outside-false",
568
+ "upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria/test/overlays/useModalOverlay.test.js#L50",
569
+ "upstreamTest": "useModalOverlay > should not hide the overlay when clicking outside if shouldCloseOnInteractOutside returns false",
570
+ "apg": "keyboard",
571
+ "config": {
572
+ "open": true,
573
+ "isDismissable": true,
574
+ "shouldCloseOutside": false
575
+ },
576
+ "steps": [
577
+ { "event": "click", "target": "outside" },
578
+ {
579
+ "expect": { "visible": ["dialog"], "events": { "onOpenChange": [] } }
580
+ }
581
+ ]
582
+ },
583
+ {
584
+ "id": "dialog-modal.react-aria.use-modal-aria-hidden-parent-provider",
585
+ "upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria/test/overlays/useModal.test.js#L46",
586
+ "upstreamTest": "useModal > should set aria-hidden on parent providers on mount and remove on unmount",
587
+ "apg": "wai-aria",
588
+ "config": { "modal": true },
589
+ "steps": [
590
+ {
591
+ "expect": {
592
+ "attrs": {
593
+ "root-provider": { "aria-hidden": "true" },
594
+ "modal-provider": { "aria-hidden": null }
595
+ }
596
+ }
597
+ },
598
+ { "event": "prop", "prop": "showModal", "value": false },
599
+ { "expect": { "attrs": { "root-provider": { "aria-hidden": null } } } }
600
+ ]
601
+ },
602
+ {
603
+ "id": "dialog-modal.react-aria.use-modal-nested-aria-hidden",
604
+ "upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria/test/overlays/useModal.test.js#L63",
605
+ "upstreamTest": "useModal > should work with nested modals",
606
+ "apg": "wai-aria",
607
+ "config": { "modal": true, "nested": true },
608
+ "steps": [
609
+ {
610
+ "expect": {
611
+ "attrs": {
612
+ "root-provider": { "aria-hidden": "true" },
613
+ "modal-provider": { "aria-hidden": "true" },
614
+ "inner-modal-provider": { "aria-hidden": null }
615
+ }
616
+ }
617
+ }
618
+ ]
619
+ },
620
+ {
621
+ "id": "dialog-modal.react-aria.backdrop-press-does-not-scroll-dialog",
622
+ "upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria-components/test/Modal.browser.test.tsx#L83",
623
+ "upstreamTest": "does not scroll the modal into view when the backdrop is pressed",
624
+ "apg": "focus",
625
+ "config": {
626
+ "modal": true,
627
+ "isDismissable": true,
628
+ "scrollableOverlay": true
629
+ },
630
+ "steps": [
631
+ { "event": "click", "target": "trigger" },
632
+ { "event": "pointerdown", "target": "backdrop" },
633
+ { "expect": { "visible": ["dialog"], "focus": "dialog" } }
634
+ ],
635
+ "notes": "FocusScope restores focus to the dialog on backdrop mousedown without scrolling the overlay; asserted via overlay.scrollTop and modal bounding rect staying constant."
636
+ }
637
+ ]
638
+ }