@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.
- package/LICENSE +21 -0
- package/README.md +65 -2
- package/dist/apg/accordion.bridge.d.mts +35 -0
- package/dist/apg/accordion.bridge.mjs +326 -0
- package/dist/apg/accordion.model.json +8397 -0
- package/dist/apg/alert.bridge.d.mts +22 -0
- package/dist/apg/alert.bridge.mjs +86 -0
- package/dist/apg/alert.model.json +871 -0
- package/dist/apg/alertdialog.bridge.d.mts +21 -0
- package/dist/apg/alertdialog.bridge.mjs +221 -0
- package/dist/apg/alertdialog.model.json +5232 -0
- package/dist/apg/breadcrumb.bridge.d.mts +26 -0
- package/dist/apg/breadcrumb.bridge.mjs +120 -0
- package/dist/apg/breadcrumb.model.json +574 -0
- package/dist/apg/button.bridge.d.mts +35 -0
- package/dist/apg/button.bridge.mjs +208 -0
- package/dist/apg/button.model.json +5814 -0
- package/dist/apg/carousel.bridge.d.mts +44 -0
- package/dist/apg/carousel.bridge.mjs +262 -0
- package/dist/apg/carousel.model.json +8963 -0
- package/dist/apg/checkbox-group.bridge.d.mts +25 -0
- package/dist/apg/checkbox-group.bridge.mjs +276 -0
- package/dist/apg/checkbox-group.model.json +3863 -0
- package/dist/apg/checkbox.bridge.d.mts +34 -0
- package/dist/apg/checkbox.bridge.mjs +253 -0
- package/dist/apg/checkbox.model.json +3158 -0
- package/dist/apg/combobox-autocomplete.bridge.d.mts +14 -0
- package/dist/apg/combobox-autocomplete.bridge.mjs +326 -0
- package/dist/apg/combobox-autocomplete.model.json +11586 -0
- package/dist/apg/combobox-dialog.bridge.d.mts +17 -0
- package/dist/apg/combobox-dialog.bridge.mjs +250 -0
- package/dist/apg/combobox-dialog.model.json +8981 -0
- package/dist/apg/combobox-grid.bridge.d.mts +17 -0
- package/dist/apg/combobox-grid.bridge.mjs +227 -0
- package/dist/apg/combobox-grid.model.json +8554 -0
- package/dist/apg/combobox-select-only.bridge.d.mts +24 -0
- package/dist/apg/combobox-select-only.bridge.mjs +304 -0
- package/dist/apg/combobox-select-only.model.json +7846 -0
- package/dist/apg/combobox-tree.bridge.d.mts +17 -0
- package/dist/apg/combobox-tree.bridge.mjs +211 -0
- package/dist/apg/combobox-tree.model.json +9345 -0
- package/dist/apg/dialog-modal.bridge.d.mts +35 -0
- package/dist/apg/dialog-modal.bridge.mjs +186 -0
- package/dist/apg/dialog-modal.model.json +7580 -0
- package/dist/apg/disclosure.bridge.d.mts +25 -0
- package/dist/apg/disclosure.bridge.mjs +202 -0
- package/dist/apg/disclosure.model.json +4703 -0
- package/dist/apg/feed.bridge.d.mts +31 -0
- package/dist/apg/feed.bridge.mjs +246 -0
- package/dist/apg/feed.model.json +4523 -0
- package/dist/apg/grid-selection.bridge.d.mts +13 -0
- package/dist/apg/grid-selection.bridge.mjs +160 -0
- package/dist/apg/grid-selection.model.json +6974 -0
- package/dist/apg/grid-sort.bridge.d.mts +12 -0
- package/dist/apg/grid-sort.bridge.mjs +138 -0
- package/dist/apg/grid-sort.model.json +3799 -0
- package/dist/apg/grid.bridge.d.mts +54 -0
- package/dist/apg/grid.bridge.mjs +441 -0
- package/dist/apg/grid.model.json +3802 -0
- package/dist/apg/link.bridge.d.mts +24 -0
- package/dist/apg/link.bridge.mjs +126 -0
- package/dist/apg/link.model.json +694 -0
- package/dist/apg/listbox-multi.bridge.d.mts +10 -0
- package/dist/apg/listbox-multi.bridge.mjs +261 -0
- package/dist/apg/listbox-multi.model.json +10893 -0
- package/dist/apg/listbox-rearrangeable.bridge.d.mts +20 -0
- package/dist/apg/listbox-rearrangeable.bridge.mjs +237 -0
- package/dist/apg/listbox-rearrangeable.model.json +17592 -0
- package/dist/apg/listbox-shared.d.mts +58 -0
- package/dist/apg/listbox-shared.mjs +171 -0
- package/dist/apg/listbox-single.bridge.d.mts +10 -0
- package/dist/apg/listbox-single.bridge.mjs +196 -0
- package/dist/apg/listbox-single.model.json +8024 -0
- package/dist/apg/listbox-typeahead.bridge.d.mts +10 -0
- package/dist/apg/listbox-typeahead.bridge.mjs +153 -0
- package/dist/apg/listbox-typeahead.model.json +5615 -0
- package/dist/apg/menu-button.bridge.d.mts +29 -0
- package/dist/apg/menu-button.bridge.mjs +259 -0
- package/dist/apg/menu-button.model.json +5706 -0
- package/dist/apg/menu-checkable.bridge.d.mts +25 -0
- package/dist/apg/menu-checkable.bridge.mjs +226 -0
- package/dist/apg/menu-checkable.model.json +4277 -0
- package/dist/apg/menu-menubar.bridge.d.mts +27 -0
- package/dist/apg/menu-menubar.bridge.mjs +273 -0
- package/dist/apg/menu-menubar.model.json +9540 -0
- package/dist/apg/meter.bridge.d.mts +28 -0
- package/dist/apg/meter.bridge.mjs +159 -0
- package/dist/apg/meter.model.json +1185 -0
- package/dist/apg/player.bridge.d.mts +24 -0
- package/dist/apg/player.bridge.mjs +342 -0
- package/dist/apg/player.model.json +11013 -0
- package/dist/apg/radio.bridge.d.mts +35 -0
- package/dist/apg/radio.bridge.mjs +371 -0
- package/dist/apg/radio.model.json +5011 -0
- package/dist/apg/slider-multithumb.bridge.d.mts +34 -0
- package/dist/apg/slider-multithumb.bridge.mjs +365 -0
- package/dist/apg/slider-multithumb.model.json +5774 -0
- package/dist/apg/slider.bridge.d.mts +54 -0
- package/dist/apg/slider.bridge.mjs +359 -0
- package/dist/apg/slider.model.json +4881 -0
- package/dist/apg/spinbutton.bridge.d.mts +41 -0
- package/dist/apg/spinbutton.bridge.mjs +327 -0
- package/dist/apg/spinbutton.model.json +7571 -0
- package/dist/apg/switch.bridge.d.mts +30 -0
- package/dist/apg/switch.bridge.mjs +243 -0
- package/dist/apg/switch.model.json +3159 -0
- package/dist/apg/tabs.bridge.d.mts +41 -0
- package/dist/apg/tabs.bridge.mjs +294 -0
- package/dist/apg/tabs.model.json +7659 -0
- package/dist/apg/timeline.bridge.d.mts +36 -0
- package/dist/apg/timeline.bridge.mjs +265 -0
- package/dist/apg/timeline.model.json +6189 -0
- package/dist/apg/toolbar.bridge.d.mts +25 -0
- package/dist/apg/toolbar.bridge.mjs +307 -0
- package/dist/apg/toolbar.model.json +6616 -0
- package/dist/apg/tooltip.bridge.d.mts +36 -0
- package/dist/apg/tooltip.bridge.mjs +208 -0
- package/dist/apg/tooltip.model.json +8295 -0
- package/dist/apg/treegrid.bridge.d.mts +28 -0
- package/dist/apg/treegrid.bridge.mjs +311 -0
- package/dist/apg/treegrid.model.json +17358 -0
- package/dist/apg/treeview.bridge.d.mts +26 -0
- package/dist/apg/treeview.bridge.mjs +396 -0
- package/dist/apg/treeview.model.json +13745 -0
- package/dist/apg/windowsplitter.bridge.d.mts +36 -0
- package/dist/apg/windowsplitter.bridge.mjs +242 -0
- package/dist/apg/windowsplitter.model.json +6253 -0
- package/dist/canvas/camera.model.json +6568 -0
- package/dist/canvas/canvas.bridge.d.mts +190 -0
- package/dist/canvas/canvas.bridge.mjs +729 -0
- package/dist/canvas/pointer.model.json +17095 -0
- package/dist/scenario.d.mts +233 -0
- package/dist/scenario.mjs +313 -0
- package/package.json +57 -4
- package/scenarios/apg/README.md +221 -0
- package/scenarios/apg/accordion.base-ui.json +1005 -0
- package/scenarios/apg/accordion.react-aria.json +929 -0
- package/scenarios/apg/alert.base-ui.json +81 -0
- package/scenarios/apg/alert.react-aria.json +98 -0
- package/scenarios/apg/alertdialog.base-ui.json +331 -0
- package/scenarios/apg/alertdialog.react-aria.json +225 -0
- package/scenarios/apg/breadcrumb.react-aria.json +312 -0
- package/scenarios/apg/button.ariakit.json +136 -0
- package/scenarios/apg/button.base-ui.json +747 -0
- package/scenarios/apg/button.react-aria.json +443 -0
- package/scenarios/apg/carousel.apg.json +909 -0
- package/scenarios/apg/checkbox.ariakit.json +299 -0
- package/scenarios/apg/checkbox.base-ui.json +1126 -0
- package/scenarios/apg/checkbox.react-aria.json +518 -0
- package/scenarios/apg/combobox.ariakit.json +945 -0
- package/scenarios/apg/combobox.base-ui.json +2444 -0
- package/scenarios/apg/combobox.react-aria.json +845 -0
- package/scenarios/apg/dialog-modal.ariakit.json +1102 -0
- package/scenarios/apg/dialog-modal.base-ui.json +775 -0
- package/scenarios/apg/dialog-modal.react-aria.json +638 -0
- package/scenarios/apg/disclosure.apg.json +349 -0
- package/scenarios/apg/disclosure.ariakit.json +163 -0
- package/scenarios/apg/disclosure.base-ui.json +451 -0
- package/scenarios/apg/disclosure.react-aria.json +643 -0
- package/scenarios/apg/feed.apg.json +442 -0
- package/scenarios/apg/grid.ariakit.json +197 -0
- package/scenarios/apg/grid.base-ui.json +720 -0
- package/scenarios/apg/grid.react-aria.json +969 -0
- package/scenarios/apg/landmarks.ariakit.json +93 -0
- package/scenarios/apg/landmarks.react-aria.json +330 -0
- package/scenarios/apg/link.ariakit.json +83 -0
- package/scenarios/apg/link.base-ui.json +88 -0
- package/scenarios/apg/link.react-aria.json +186 -0
- package/scenarios/apg/listbox.ariakit.json +78 -0
- package/scenarios/apg/listbox.base-ui.json +163 -0
- package/scenarios/apg/listbox.react-aria.json +1118 -0
- package/scenarios/apg/menu-button.ariakit.json +924 -0
- package/scenarios/apg/menu-button.base-ui.json +1155 -0
- package/scenarios/apg/menu-button.react-aria.json +1080 -0
- package/scenarios/apg/menubar.ariakit.json +758 -0
- package/scenarios/apg/menubar.base-ui.json +673 -0
- package/scenarios/apg/meter.base-ui.json +243 -0
- package/scenarios/apg/meter.react-aria.json +201 -0
- package/scenarios/apg/radio.ariakit.json +459 -0
- package/scenarios/apg/radio.base-ui.json +581 -0
- package/scenarios/apg/radio.react-aria.json +576 -0
- package/scenarios/apg/slider-multithumb.base-ui.json +316 -0
- package/scenarios/apg/slider-multithumb.react-aria.json +363 -0
- package/scenarios/apg/slider.base-ui.json +544 -0
- package/scenarios/apg/slider.react-aria.json +456 -0
- package/scenarios/apg/spinbutton.base-ui.json +1688 -0
- package/scenarios/apg/spinbutton.react-aria.json +426 -0
- package/scenarios/apg/switch.base-ui.json +456 -0
- package/scenarios/apg/switch.react-aria.json +303 -0
- package/scenarios/apg/table.ariakit.json +65 -0
- package/scenarios/apg/table.react-aria.json +221 -0
- package/scenarios/apg/tabs.ariakit.json +329 -0
- package/scenarios/apg/tabs.base-ui.json +875 -0
- package/scenarios/apg/tabs.react-aria.json +644 -0
- package/scenarios/apg/toolbar.ariakit.json +595 -0
- package/scenarios/apg/toolbar.base-ui.json +1189 -0
- package/scenarios/apg/toolbar.react-aria.json +383 -0
- package/scenarios/apg/tooltip.ariakit.json +441 -0
- package/scenarios/apg/tooltip.base-ui.json +411 -0
- package/scenarios/apg/tooltip.react-aria.json +454 -0
- package/scenarios/apg/treegrid.apg.json +2558 -0
- package/scenarios/apg/treegrid.react-aria.json +5094 -0
- package/scenarios/apg/treeview.apg.json +928 -0
- package/scenarios/apg/windowsplitter.apg.json +557 -0
- package/scenarios/canvas/README.md +69 -0
- package/scenarios/canvas/camera.contract.json +237 -0
- package/scenarios/canvas/camera.excalidraw.json +57 -0
- package/scenarios/canvas/marquee.excalidraw.json +122 -0
- package/scenarios/canvas/pan.excalidraw.json +46 -0
- package/scenarios/canvas/pointer.contract.json +528 -0
- package/scenarios/parts.json +291 -0
- package/shared/aria.qnt +186 -0
- package/shared/details-group.qnt +50 -0
- package/shared/focusgroup.qnt +152 -0
- package/shared/invokers.qnt +81 -0
- package/shared/popover.qnt +71 -0
- package/specs/apg/STATIC.md +103 -0
- package/specs/apg/accordion.qnt +578 -0
- package/specs/apg/alert.qnt +131 -0
- package/specs/apg/alertdialog.qnt +455 -0
- package/specs/apg/breadcrumb.qnt +88 -0
- package/specs/apg/button.qnt +445 -0
- package/specs/apg/carousel.qnt +732 -0
- package/specs/apg/checkbox-group.qnt +388 -0
- package/specs/apg/checkbox.qnt +394 -0
- package/specs/apg/combobox-autocomplete.qnt +764 -0
- package/specs/apg/combobox-dialog.qnt +627 -0
- package/specs/apg/combobox-grid.qnt +632 -0
- package/specs/apg/combobox-select-only.qnt +626 -0
- package/specs/apg/combobox-tree.qnt +633 -0
- package/specs/apg/dialog-modal.qnt +499 -0
- package/specs/apg/disclosure.qnt +309 -0
- package/specs/apg/feed.qnt +485 -0
- package/specs/apg/grid-selection.qnt +512 -0
- package/specs/apg/grid-sort.qnt +330 -0
- package/specs/apg/grid.qnt +360 -0
- package/specs/apg/link.qnt +119 -0
- package/specs/apg/listbox-multi.qnt +799 -0
- package/specs/apg/listbox-rearrangeable.qnt +801 -0
- package/specs/apg/listbox-single.qnt +511 -0
- package/specs/apg/listbox-typeahead.qnt +396 -0
- package/specs/apg/menu-button.qnt +363 -0
- package/specs/apg/menu-checkable.qnt +304 -0
- package/specs/apg/menu-menubar.qnt +531 -0
- package/specs/apg/meter.qnt +129 -0
- package/specs/apg/player.qnt +1081 -0
- package/specs/apg/radio.qnt +394 -0
- package/specs/apg/slider-multithumb.qnt +441 -0
- package/specs/apg/slider.qnt +396 -0
- package/specs/apg/spinbutton.qnt +494 -0
- package/specs/apg/switch.qnt +389 -0
- package/specs/apg/tabs.qnt +412 -0
- package/specs/apg/timeline.qnt +612 -0
- package/specs/apg/toolbar.qnt +364 -0
- package/specs/apg/tooltip.qnt +553 -0
- package/specs/apg/treegrid.qnt +983 -0
- package/specs/apg/treeview.qnt +1004 -0
- package/specs/apg/windowsplitter.qnt +487 -0
- package/specs/canvas/camera.qnt +407 -0
- package/specs/canvas/pointer.qnt +841 -0
|
@@ -0,0 +1,775 @@
|
|
|
1
|
+
{
|
|
2
|
+
"pattern": "dialog-modal",
|
|
3
|
+
"source": "base-ui",
|
|
4
|
+
"commit": "19511bb171f3b360b006c94cf6d07e53cb446505",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"skipped": [
|
|
7
|
+
{
|
|
8
|
+
"reason": "styling / CSS-variable / style-hook assertions (--nested-dialogs, data-nested / data-nested-dialog-open, internal-backdrop DOM ordering)"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"reason": "enter/exit transition timing and animation callbacks (DialogRoot waits for exit transition, useDialogAnimation/onOpen/onClose animation tests)"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"reason": "SSR / detached-trigger hydration and store plumbing (DialogRoot.detached-triggers.test.tsx, DialogPortal Suspense tests)"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"reason": "React-API-only prop plumbing: refs/actions handles, unmount() method, keepMounted, isEntering/isExiting, portal containers, initialFocus/finalFocus function-returning-null/void variants that only re-assert the default"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"reason": "scroll-lock and body-padding mechanics (page locked until takeover / external body lock)"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"reason": "shadow-DOM portal plumbing (outside press portaled into shadow DOM)"
|
|
24
|
+
},
|
|
25
|
+
{ "reason": "touch multi-point drag dismissal thresholds" },
|
|
26
|
+
{
|
|
27
|
+
"reason": "dialog/popup/portal/viewport conformance (describeConformance) and error-message tests"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"reason": "nested menu/select popup dismissal plumbing (DialogRoot nested popups, NumberField scrub pointer-lock)"
|
|
31
|
+
},
|
|
32
|
+
{ "reason": "DialogBackdrop role=presentation DOM-only test" }
|
|
33
|
+
],
|
|
34
|
+
"scenarios": [
|
|
35
|
+
{
|
|
36
|
+
"id": "dialog-modal.base-ui.initial-focus-first-focusable",
|
|
37
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/dialog/popup/DialogPopup.test.tsx#L64",
|
|
38
|
+
"upstreamTest": "should focus the first focusable element within the popup",
|
|
39
|
+
"apg": "focus",
|
|
40
|
+
"config": { "modal": false },
|
|
41
|
+
"steps": [
|
|
42
|
+
{ "event": "click", "target": "trigger" },
|
|
43
|
+
{ "expect": { "focus": "input:0" } }
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"id": "dialog-modal.base-ui.initial-focus-ref",
|
|
48
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/dialog/popup/DialogPopup.test.tsx#L92",
|
|
49
|
+
"upstreamTest": "should focus the element provided to initialFocus as a ref when open",
|
|
50
|
+
"apg": "focus",
|
|
51
|
+
"config": { "modal": false, "initialFocus": "input:1" },
|
|
52
|
+
"steps": [
|
|
53
|
+
{ "event": "click", "target": "trigger" },
|
|
54
|
+
{ "expect": { "focus": "input:1" } }
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"id": "dialog-modal.base-ui.initial-focus-function",
|
|
59
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/dialog/popup/DialogPopup.test.tsx#L127",
|
|
60
|
+
"upstreamTest": "should focus the element provided to initialFocus as a function when open",
|
|
61
|
+
"apg": "focus",
|
|
62
|
+
"config": { "modal": false, "initialFocus": "input:1" },
|
|
63
|
+
"steps": [
|
|
64
|
+
{ "event": "click", "target": "trigger" },
|
|
65
|
+
{ "expect": { "focus": "input:1" } }
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"id": "dialog-modal.base-ui.initial-focus-function-per-interaction-type",
|
|
70
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/dialog/popup/DialogPopup.test.tsx#L165",
|
|
71
|
+
"upstreamTest": "should support element-returning function and no-op via false/void for initialFocus",
|
|
72
|
+
"apg": "focus",
|
|
73
|
+
"config": { "modal": false },
|
|
74
|
+
"steps": [
|
|
75
|
+
{ "event": "click", "target": "trigger" },
|
|
76
|
+
{ "expect": { "focus": "trigger" } },
|
|
77
|
+
{ "event": "key", "key": "Escape", "target": "dialog" },
|
|
78
|
+
{ "event": "key", "key": "Enter", "target": "trigger" },
|
|
79
|
+
{ "expect": { "focus": "input:1" } }
|
|
80
|
+
],
|
|
81
|
+
"notes": "initialFocus(type) returns the target only for 'keyboard'; 'pointer' falls back to leaving focus on the trigger."
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"id": "dialog-modal.base-ui.initial-focus-interaction-type-after-reopen",
|
|
85
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/dialog/popup/DialogPopup.test.tsx#L207",
|
|
86
|
+
"upstreamTest": "passes the latest interaction type to initialFocus after reopening",
|
|
87
|
+
"apg": "focus",
|
|
88
|
+
"config": { "modal": false, "initialFocusReturnsFalse": true },
|
|
89
|
+
"steps": [
|
|
90
|
+
{ "event": "focus", "target": "trigger" },
|
|
91
|
+
{ "event": "key", "key": "Enter", "target": "trigger" },
|
|
92
|
+
{ "expect": { "events": { "initialFocus": ["keyboard"] } } },
|
|
93
|
+
{ "event": "key", "key": "Escape", "target": "dialog" },
|
|
94
|
+
{ "event": "pointerdown", "target": "trigger", "pointerType": "touch" },
|
|
95
|
+
{ "event": "click", "target": "trigger", "detail": 1 },
|
|
96
|
+
{ "expect": { "events": { "initialFocus": ["touch"] } } }
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"id": "dialog-modal.base-ui.touch-opens-focus-popup-not-inner",
|
|
101
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/dialog/popup/DialogPopup.test.tsx#L240",
|
|
102
|
+
"upstreamTest": "focuses the popup itself rather than inner content when opened by touch",
|
|
103
|
+
"apg": "extension",
|
|
104
|
+
"config": { "modal": false },
|
|
105
|
+
"steps": [
|
|
106
|
+
{ "event": "pointerdown", "target": "trigger", "pointerType": "touch" },
|
|
107
|
+
{ "event": "click", "target": "trigger", "detail": 1 },
|
|
108
|
+
{
|
|
109
|
+
"expect": {
|
|
110
|
+
"focus": "dialog",
|
|
111
|
+
"attrs": { "input:0": { "focused": "false" } }
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
"notes": "On touch the popup is focused to avoid opening the virtual keyboard; divergence from APG, which does not differentiate pointer type."
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"id": "dialog-modal.base-ui.initial-focus-false-no-move",
|
|
119
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/dialog/popup/DialogPopup.test.tsx#L263",
|
|
120
|
+
"upstreamTest": "should not move focus when initialFocus is false",
|
|
121
|
+
"apg": "focus",
|
|
122
|
+
"config": { "modal": false, "initialFocus": false },
|
|
123
|
+
"steps": [
|
|
124
|
+
{ "event": "click", "target": "trigger" },
|
|
125
|
+
{ "expect": { "focus": "trigger" } }
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"id": "dialog-modal.base-ui.initial-focus-true-default",
|
|
130
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/dialog/popup/DialogPopup.test.tsx#L287",
|
|
131
|
+
"upstreamTest": "should default focus when initialFocus returns true",
|
|
132
|
+
"apg": "focus",
|
|
133
|
+
"config": { "modal": false, "initialFocus": true },
|
|
134
|
+
"steps": [
|
|
135
|
+
{ "event": "click", "target": "trigger" },
|
|
136
|
+
{ "expect": { "focus": "input:0" } }
|
|
137
|
+
]
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"id": "dialog-modal.base-ui.initial-focus-null-default",
|
|
141
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/dialog/popup/DialogPopup.test.tsx#L310",
|
|
142
|
+
"upstreamTest": "uses default behavior when initialFocus returns null",
|
|
143
|
+
"apg": "focus",
|
|
144
|
+
"config": { "modal": false },
|
|
145
|
+
"steps": [
|
|
146
|
+
{ "event": "click", "target": "trigger" },
|
|
147
|
+
{ "expect": { "focus": "input:0" } }
|
|
148
|
+
]
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"id": "dialog-modal.base-ui.initial-focus-not-called-on-close",
|
|
152
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/dialog/popup/DialogPopup.test.tsx#L333",
|
|
153
|
+
"upstreamTest": "should not call initialFocus function when closing the dialog",
|
|
154
|
+
"apg": "extension",
|
|
155
|
+
"config": { "modal": false },
|
|
156
|
+
"steps": [
|
|
157
|
+
{ "event": "click", "target": "trigger" },
|
|
158
|
+
{ "expect": { "focus": "input:1" } },
|
|
159
|
+
{ "event": "click", "target": "dismiss" },
|
|
160
|
+
{ "expect": { "focus": "trigger", "events": { "initialFocus": [1] } } }
|
|
161
|
+
]
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"id": "dialog-modal.base-ui.trap-focus-tab-cycles",
|
|
165
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/dialog/popup/DialogPopup.test.tsx#L410",
|
|
166
|
+
"upstreamTest": "keeps trap-focus tab cycling inside the popup when wrapped by a display: contents ancestor",
|
|
167
|
+
"apg": "keyboard",
|
|
168
|
+
"config": { "open": true, "modal": "trap-focus" },
|
|
169
|
+
"steps": [
|
|
170
|
+
{ "expect": { "focus": "input:0" } },
|
|
171
|
+
{ "event": "key", "key": "Tab", "target": "input:0" },
|
|
172
|
+
{ "expect": { "focus": "button:0" } },
|
|
173
|
+
{ "event": "key", "key": "Tab", "target": "button:0" },
|
|
174
|
+
{ "expect": { "focus": "input:0" } },
|
|
175
|
+
{
|
|
176
|
+
"event": "key",
|
|
177
|
+
"key": "Tab",
|
|
178
|
+
"target": "input:0",
|
|
179
|
+
"modifiers": ["Shift"]
|
|
180
|
+
},
|
|
181
|
+
{ "expect": { "focus": "button:0" } }
|
|
182
|
+
],
|
|
183
|
+
"notes": "Upstream also asserts the outside buttons before/after never receive focus."
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"id": "dialog-modal.base-ui.final-focus-default-trigger",
|
|
187
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/dialog/popup/DialogPopup.test.tsx#L455",
|
|
188
|
+
"upstreamTest": "should focus the trigger by default when closed",
|
|
189
|
+
"apg": "focus",
|
|
190
|
+
"config": { "modal": true },
|
|
191
|
+
"steps": [
|
|
192
|
+
{ "event": "click", "target": "trigger" },
|
|
193
|
+
{ "event": "click", "target": "dismiss" },
|
|
194
|
+
{ "expect": { "focus": "trigger" } }
|
|
195
|
+
]
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"id": "dialog-modal.base-ui.final-focus-element",
|
|
199
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/dialog/popup/DialogPopup.test.tsx#L483",
|
|
200
|
+
"upstreamTest": "should focus the element provided to the prop when closed",
|
|
201
|
+
"apg": "focus",
|
|
202
|
+
"config": { "modal": true, "finalFocus": "input:1" },
|
|
203
|
+
"steps": [
|
|
204
|
+
{ "event": "click", "target": "trigger" },
|
|
205
|
+
{ "event": "click", "target": "dismiss" },
|
|
206
|
+
{ "expect": { "focus": "input:1" } }
|
|
207
|
+
]
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"id": "dialog-modal.base-ui.final-focus-function",
|
|
211
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/dialog/popup/DialogPopup.test.tsx#L520",
|
|
212
|
+
"upstreamTest": "should support function returning element for finalFocus when closed",
|
|
213
|
+
"apg": "focus",
|
|
214
|
+
"config": { "modal": true, "finalFocus": "input:0" },
|
|
215
|
+
"steps": [
|
|
216
|
+
{ "event": "click", "target": "trigger" },
|
|
217
|
+
{ "event": "click", "target": "dismiss" },
|
|
218
|
+
{ "expect": { "focus": "input:0" } }
|
|
219
|
+
]
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"id": "dialog-modal.base-ui.final-focus-false-no-move",
|
|
223
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/dialog/popup/DialogPopup.test.tsx#L548",
|
|
224
|
+
"upstreamTest": "should not move focus when finalFocus is false",
|
|
225
|
+
"apg": "focus",
|
|
226
|
+
"config": { "modal": true, "finalFocus": false },
|
|
227
|
+
"steps": [
|
|
228
|
+
{ "event": "click", "target": "trigger" },
|
|
229
|
+
{ "event": "click", "target": "dismiss" },
|
|
230
|
+
{ "expect": { "focus": null } }
|
|
231
|
+
]
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"id": "dialog-modal.base-ui.final-focus-true-trigger",
|
|
235
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/dialog/popup/DialogPopup.test.tsx#L574",
|
|
236
|
+
"upstreamTest": "should move focus to the trigger when finalFocus returns true",
|
|
237
|
+
"apg": "focus",
|
|
238
|
+
"config": { "modal": true, "finalFocus": true },
|
|
239
|
+
"steps": [
|
|
240
|
+
{ "event": "click", "target": "trigger" },
|
|
241
|
+
{ "event": "click", "target": "dismiss" },
|
|
242
|
+
{ "expect": { "focus": "trigger" } }
|
|
243
|
+
]
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"id": "dialog-modal.base-ui.final-focus-per-close-type",
|
|
247
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/dialog/popup/DialogPopup.test.tsx#L600",
|
|
248
|
+
"upstreamTest": "should support element-returning function and default via true + no-op via void for finalFocus based on closeType",
|
|
249
|
+
"apg": "focus",
|
|
250
|
+
"config": { "modal": true },
|
|
251
|
+
"steps": [
|
|
252
|
+
{ "event": "click", "target": "trigger" },
|
|
253
|
+
{ "event": "click", "target": "dismiss" },
|
|
254
|
+
{ "expect": { "focus": "trigger" } },
|
|
255
|
+
{ "event": "click", "target": "trigger" },
|
|
256
|
+
{ "event": "key", "key": "Escape", "target": "dialog" },
|
|
257
|
+
{ "expect": { "focus": "input:0" } }
|
|
258
|
+
],
|
|
259
|
+
"notes": "finalFocus(closeType) returns a custom element for 'keyboard' and true (default trigger) for pointer close."
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"id": "dialog-modal.base-ui.final-focus-when-initial-focus-outside",
|
|
263
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/dialog/popup/DialogPopup.test.tsx#L648",
|
|
264
|
+
"upstreamTest": "respects finalFocus when initialFocus points outside the popup",
|
|
265
|
+
"apg": "extension",
|
|
266
|
+
"config": {
|
|
267
|
+
"modal": true,
|
|
268
|
+
"initialFocusOutside": true,
|
|
269
|
+
"finalFocusOutside": true
|
|
270
|
+
},
|
|
271
|
+
"steps": [
|
|
272
|
+
{ "event": "click", "target": "trigger" },
|
|
273
|
+
{ "expect": { "focus": "outside:0" } },
|
|
274
|
+
{ "event": "click", "target": "dismiss" },
|
|
275
|
+
{ "expect": { "focus": "outside:1" } }
|
|
276
|
+
]
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"id": "dialog-modal.base-ui.final-focus-default-trigger-when-initial-outside",
|
|
280
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/dialog/popup/DialogPopup.test.tsx#L684",
|
|
281
|
+
"upstreamTest": "moves final focus to trigger if initialFocus points outside the popup and finalFocus is not specified",
|
|
282
|
+
"apg": "extension",
|
|
283
|
+
"config": { "modal": true, "initialFocusOutside": true },
|
|
284
|
+
"steps": [
|
|
285
|
+
{ "event": "click", "target": "trigger" },
|
|
286
|
+
{ "expect": { "focus": "outside:0" } },
|
|
287
|
+
{ "event": "click", "target": "dismiss" },
|
|
288
|
+
{ "expect": { "focus": "trigger" } }
|
|
289
|
+
]
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"id": "dialog-modal.base-ui.final-focus-null-default",
|
|
293
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/dialog/popup/DialogPopup.test.tsx#L720",
|
|
294
|
+
"upstreamTest": "uses default behavior when finalFocus returns null",
|
|
295
|
+
"apg": "focus",
|
|
296
|
+
"config": { "modal": true },
|
|
297
|
+
"steps": [
|
|
298
|
+
{ "event": "click", "target": "trigger" },
|
|
299
|
+
{ "event": "click", "target": "dismiss" },
|
|
300
|
+
{ "expect": { "focus": "trigger" } }
|
|
301
|
+
]
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"id": "dialog-modal.base-ui.aria-labelledby-and-describedby",
|
|
305
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/dialog/root/DialogRoot.test.tsx#L307",
|
|
306
|
+
"upstreamTest": "ARIA attributes",
|
|
307
|
+
"apg": "wai-aria",
|
|
308
|
+
"config": { "modal": false, "open": true },
|
|
309
|
+
"steps": [
|
|
310
|
+
{
|
|
311
|
+
"expect": {
|
|
312
|
+
"visible": ["dialog"],
|
|
313
|
+
"attrs": {
|
|
314
|
+
"dialog": {
|
|
315
|
+
"aria-labelledby": "title",
|
|
316
|
+
"aria-describedby": "description"
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
]
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"id": "dialog-modal.base-ui.accessible-name-syncs-when-labels-change",
|
|
325
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/dialog/root/DialogRoot.test.tsx#L334",
|
|
326
|
+
"upstreamTest": "keeps accessible names and descriptions in sync when label parts change",
|
|
327
|
+
"apg": "wai-aria",
|
|
328
|
+
"config": { "modal": false, "open": true },
|
|
329
|
+
"steps": [
|
|
330
|
+
{
|
|
331
|
+
"expect": {
|
|
332
|
+
"attrs": {
|
|
333
|
+
"dialog": {
|
|
334
|
+
"aria-labelledby": "title-1",
|
|
335
|
+
"aria-describedby": "description-1"
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
{ "event": "click", "target": "change-labels" },
|
|
341
|
+
{
|
|
342
|
+
"expect": {
|
|
343
|
+
"attrs": {
|
|
344
|
+
"dialog": {
|
|
345
|
+
"aria-labelledby": "title-2",
|
|
346
|
+
"aria-describedby": "description-2"
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
{ "event": "click", "target": "change-labels" },
|
|
352
|
+
{
|
|
353
|
+
"expect": {
|
|
354
|
+
"attrs": {
|
|
355
|
+
"dialog": { "aria-labelledby": null, "aria-describedby": null }
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
]
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"id": "dialog-modal.base-ui.onopenchange-new-state",
|
|
363
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/dialog/root/DialogRoot.test.tsx#L390",
|
|
364
|
+
"upstreamTest": "calls onOpenChange with the new open state",
|
|
365
|
+
"apg": "extension",
|
|
366
|
+
"config": {},
|
|
367
|
+
"steps": [
|
|
368
|
+
{ "event": "click", "target": "trigger" },
|
|
369
|
+
{ "expect": { "events": { "onOpenChange": [true] } } },
|
|
370
|
+
{ "event": "click", "target": "dismiss" },
|
|
371
|
+
{ "expect": { "events": { "onOpenChange": [true, false] } } }
|
|
372
|
+
]
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"id": "dialog-modal.base-ui.onopenchange-reason-trigger-and-close",
|
|
376
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/dialog/root/DialogRoot.test.tsx#L412",
|
|
377
|
+
"upstreamTest": "calls onOpenChange with the reason for change when clicked on trigger and close button",
|
|
378
|
+
"apg": "extension",
|
|
379
|
+
"config": {},
|
|
380
|
+
"steps": [
|
|
381
|
+
{ "event": "click", "target": "trigger" },
|
|
382
|
+
{
|
|
383
|
+
"expect": {
|
|
384
|
+
"events": {
|
|
385
|
+
"onOpenChange": [{ "open": true, "reason": "triggerPress" }]
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
},
|
|
389
|
+
{ "event": "click", "target": "dismiss" },
|
|
390
|
+
{
|
|
391
|
+
"expect": {
|
|
392
|
+
"events": {
|
|
393
|
+
"onOpenChange": [
|
|
394
|
+
{ "open": true, "reason": "triggerPress" },
|
|
395
|
+
{ "open": false, "reason": "closePress" }
|
|
396
|
+
]
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
]
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"id": "dialog-modal.base-ui.escape-close-reason",
|
|
404
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/dialog/root/DialogRoot.test.tsx#L460",
|
|
405
|
+
"upstreamTest": "calls onOpenChange with the reason for change when pressed Esc while the dialog is open",
|
|
406
|
+
"apg": "keyboard",
|
|
407
|
+
"config": { "open": true },
|
|
408
|
+
"steps": [
|
|
409
|
+
{ "event": "key", "key": "Escape", "target": "dialog" },
|
|
410
|
+
{
|
|
411
|
+
"expect": {
|
|
412
|
+
"hidden": ["dialog"],
|
|
413
|
+
"events": {
|
|
414
|
+
"onOpenChange": [{ "open": false, "reason": "escapeKey" }]
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
]
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
"id": "dialog-modal.base-ui.backdrop-click-reason",
|
|
422
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/dialog/root/DialogRoot.test.tsx#L473",
|
|
423
|
+
"upstreamTest": "calls onOpenChange with the reason for change when user clicks backdrop while the modal dialog is open",
|
|
424
|
+
"apg": "keyboard",
|
|
425
|
+
"config": { "open": true, "modal": true },
|
|
426
|
+
"steps": [
|
|
427
|
+
{ "event": "click", "target": "backdrop" },
|
|
428
|
+
{
|
|
429
|
+
"expect": {
|
|
430
|
+
"hidden": ["dialog"],
|
|
431
|
+
"events": {
|
|
432
|
+
"onOpenChange": [{ "open": false, "reason": "outsidePress" }]
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
]
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
"id": "dialog-modal.base-ui.outside-click-reason-non-modal",
|
|
440
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/dialog/root/DialogRoot.test.tsx#L486",
|
|
441
|
+
"upstreamTest": "calls onOpenChange with the reason for change when user clicks outside while the non-modal dialog is open",
|
|
442
|
+
"apg": "keyboard",
|
|
443
|
+
"config": { "open": true, "modal": false },
|
|
444
|
+
"steps": [
|
|
445
|
+
{ "event": "click", "target": "outside" },
|
|
446
|
+
{
|
|
447
|
+
"expect": {
|
|
448
|
+
"hidden": ["dialog"],
|
|
449
|
+
"events": {
|
|
450
|
+
"onOpenChange": [{ "open": false, "reason": "outsidePress" }]
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
]
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"id": "dialog-modal.base-ui.non-main-button-outside-click-ignored",
|
|
458
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/dialog/root/DialogRoot.test.tsx#L519",
|
|
459
|
+
"upstreamTest": "does not change open state on non-main button clicks",
|
|
460
|
+
"apg": "extension",
|
|
461
|
+
"config": { "open": true, "modal": true },
|
|
462
|
+
"steps": [
|
|
463
|
+
{ "event": "click", "target": "backdrop", "button": 2 },
|
|
464
|
+
{
|
|
465
|
+
"expect": { "visible": ["dialog"], "events": { "onOpenChange": [] } }
|
|
466
|
+
}
|
|
467
|
+
]
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
"id": "dialog-modal.base-ui.cancel-prevents-open",
|
|
471
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/dialog/root/DialogRoot.test.tsx#L536",
|
|
472
|
+
"upstreamTest": "cancel() prevents opening while uncontrolled",
|
|
473
|
+
"apg": "extension",
|
|
474
|
+
"config": { "cancelOpen": true },
|
|
475
|
+
"steps": [
|
|
476
|
+
{ "event": "click", "target": "trigger" },
|
|
477
|
+
{ "expect": { "hidden": ["dialog"] } }
|
|
478
|
+
]
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
"id": "dialog-modal.base-ui.escape-single-internal-openchange",
|
|
482
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/dialog/root/DialogRoot.test.tsx#L556",
|
|
483
|
+
"upstreamTest": "emits a single internal openchange when closing on Escape",
|
|
484
|
+
"apg": "extension",
|
|
485
|
+
"config": { "open": true },
|
|
486
|
+
"steps": [
|
|
487
|
+
{ "event": "key", "key": "Escape", "target": "dialog" },
|
|
488
|
+
{
|
|
489
|
+
"expect": {
|
|
490
|
+
"events": {
|
|
491
|
+
"internalOnOpenChange": [{ "open": false, "reason": "escapeKey" }]
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
]
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
"id": "dialog-modal.base-ui.escape-canceled-keeps-open-no-event",
|
|
499
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/dialog/root/DialogRoot.test.tsx#L583",
|
|
500
|
+
"upstreamTest": "does not emit internal openchange when an Escape close is canceled",
|
|
501
|
+
"apg": "extension",
|
|
502
|
+
"config": { "open": true, "cancelClose": true },
|
|
503
|
+
"steps": [
|
|
504
|
+
{ "event": "key", "key": "Escape", "target": "dialog" },
|
|
505
|
+
{
|
|
506
|
+
"expect": {
|
|
507
|
+
"visible": ["dialog"],
|
|
508
|
+
"events": { "internalOnOpenChange": [] }
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
]
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
"id": "dialog-modal.base-ui.disable-pointer-dismissal",
|
|
515
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/dialog/root/DialogRoot.test.tsx#L623",
|
|
516
|
+
"upstreamTest": "closes/does not close the dialog when clicking outside if disablePointerDismissal is set",
|
|
517
|
+
"apg": "extension",
|
|
518
|
+
"config": {
|
|
519
|
+
"open": true,
|
|
520
|
+
"modal": false,
|
|
521
|
+
"disablePointerDismissal": true
|
|
522
|
+
},
|
|
523
|
+
"steps": [
|
|
524
|
+
{ "event": "pointerdown", "target": "outside" },
|
|
525
|
+
{ "event": "click", "target": "outside" },
|
|
526
|
+
{
|
|
527
|
+
"expect": { "visible": ["dialog"], "events": { "onOpenChange": [] } }
|
|
528
|
+
}
|
|
529
|
+
]
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
"id": "dialog-modal.base-ui.outside-press-closes-on-click-not-mousedown",
|
|
533
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/dialog/root/DialogRoot.test.tsx#L650",
|
|
534
|
+
"upstreamTest": "uses intentional outside press with user backdrop (mouse): closes on click, not on mousedown",
|
|
535
|
+
"apg": "extension",
|
|
536
|
+
"config": { "open": true, "modal": false },
|
|
537
|
+
"steps": [
|
|
538
|
+
{ "event": "pointerdown", "target": "backdrop" },
|
|
539
|
+
{
|
|
540
|
+
"expect": { "visible": ["dialog"], "events": { "onOpenChange": [] } }
|
|
541
|
+
},
|
|
542
|
+
{ "event": "click", "target": "backdrop" },
|
|
543
|
+
{
|
|
544
|
+
"expect": {
|
|
545
|
+
"hidden": ["dialog"],
|
|
546
|
+
"events": { "onOpenChange": [{ "open": false }] }
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
]
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
"id": "dialog-modal.base-ui.internal-backdrop-outside-press-closes-on-click",
|
|
553
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/dialog/root/DialogRoot.test.tsx#L673",
|
|
554
|
+
"upstreamTest": "uses intentional outside press with internal backdrop (modal=true): closes on click, not on mousedown",
|
|
555
|
+
"apg": "extension",
|
|
556
|
+
"config": { "open": true, "modal": true },
|
|
557
|
+
"steps": [
|
|
558
|
+
{ "event": "pointerdown", "target": "backdrop" },
|
|
559
|
+
{
|
|
560
|
+
"expect": { "visible": ["dialog"], "events": { "onOpenChange": [] } }
|
|
561
|
+
},
|
|
562
|
+
{ "event": "click", "target": "backdrop" },
|
|
563
|
+
{
|
|
564
|
+
"expect": {
|
|
565
|
+
"hidden": ["dialog"],
|
|
566
|
+
"events": { "onOpenChange": [{ "open": false }] }
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
]
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
"id": "dialog-modal.base-ui.escape-rewires-dismiss-after-reopen",
|
|
573
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/dialog/root/DialogRoot.test.tsx#L281",
|
|
574
|
+
"upstreamTest": "rewires dismiss interactions after closing and reopening",
|
|
575
|
+
"apg": "extension",
|
|
576
|
+
"config": { "modal": false },
|
|
577
|
+
"steps": [
|
|
578
|
+
{ "event": "click", "target": "trigger" },
|
|
579
|
+
{ "event": "key", "key": "Escape", "target": "dialog" },
|
|
580
|
+
{ "expect": { "hidden": ["dialog"] } },
|
|
581
|
+
{ "event": "click", "target": "trigger" },
|
|
582
|
+
{ "event": "click", "target": "outside" },
|
|
583
|
+
{ "expect": { "hidden": ["dialog"] } }
|
|
584
|
+
]
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
"id": "dialog-modal.base-ui.modal-inerts-page",
|
|
588
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/dialog/root/DialogRoot.test.tsx#L866",
|
|
589
|
+
"upstreamTest": "makes other interactive elements on the page inert when a modal dialog is open",
|
|
590
|
+
"apg": "wai-aria",
|
|
591
|
+
"config": { "open": true, "modal": true },
|
|
592
|
+
"steps": [
|
|
593
|
+
{
|
|
594
|
+
"expect": {
|
|
595
|
+
"visible": ["dialog", "backdrop"],
|
|
596
|
+
"attrs": { "dialog": { "aria-modal": "true" } }
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
],
|
|
600
|
+
"notes": "Upstream asserts an internal backdrop with role=presentation exists; aria-modal is the behavioural takeaway."
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
"id": "dialog-modal.base-ui.non-modal-does-not-inert-page",
|
|
604
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/dialog/root/DialogRoot.test.tsx#L872",
|
|
605
|
+
"upstreamTest": "does not make other interactive elements on the page inert when a non-modal dialog is open",
|
|
606
|
+
"apg": "wai-aria",
|
|
607
|
+
"config": { "open": true, "modal": false },
|
|
608
|
+
"steps": [
|
|
609
|
+
{
|
|
610
|
+
"expect": {
|
|
611
|
+
"visible": ["dialog"],
|
|
612
|
+
"hidden": ["backdrop"],
|
|
613
|
+
"attrs": { "dialog": { "aria-modal": null } }
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
]
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
"id": "dialog-modal.base-ui.internal-backdrop-when-modal",
|
|
620
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/dialog/root/DialogRoot.test.tsx#L878",
|
|
621
|
+
"upstreamTest": "should render an internal backdrop when true",
|
|
622
|
+
"apg": "wai-aria",
|
|
623
|
+
"config": { "modal": true },
|
|
624
|
+
"steps": [
|
|
625
|
+
{ "event": "click", "target": "trigger" },
|
|
626
|
+
{ "expect": { "visible": ["dialog", "backdrop"] } }
|
|
627
|
+
]
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
"id": "dialog-modal.base-ui.no-internal-backdrop-when-not-modal",
|
|
631
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/dialog/root/DialogRoot.test.tsx#L903",
|
|
632
|
+
"upstreamTest": "should not render an internal backdrop when false",
|
|
633
|
+
"apg": "wai-aria",
|
|
634
|
+
"config": { "modal": false },
|
|
635
|
+
"steps": [
|
|
636
|
+
{ "event": "click", "target": "trigger" },
|
|
637
|
+
{ "expect": { "visible": ["dialog"], "hidden": ["backdrop"] } }
|
|
638
|
+
]
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
"id": "dialog-modal.base-ui.sibling-modal-not-dismissed-by-new-modal",
|
|
642
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/dialog/root/DialogRoot.test.tsx#L926",
|
|
643
|
+
"upstreamTest": "does not dismiss previous modal dialog when clicking new modal dialog",
|
|
644
|
+
"apg": "extension",
|
|
645
|
+
"config": { "nestedDismissable": false },
|
|
646
|
+
"steps": [
|
|
647
|
+
{ "event": "click", "target": "open-base" },
|
|
648
|
+
{ "event": "click", "target": "open-nested-1" },
|
|
649
|
+
{ "event": "click", "target": "open-nested-2" },
|
|
650
|
+
{ "expect": { "visible": ["final-nested"] } }
|
|
651
|
+
]
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
"id": "dialog-modal.base-ui.non-nested-dialogs-dismiss-one-by-one",
|
|
655
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/dialog/root/DialogRoot.test.tsx#L969",
|
|
656
|
+
"upstreamTest": "dismisses non-nested dialogs one by one",
|
|
657
|
+
"apg": "extension",
|
|
658
|
+
"config": {},
|
|
659
|
+
"steps": [
|
|
660
|
+
{ "event": "click", "target": "open-base" },
|
|
661
|
+
{ "event": "click", "target": "open-nested-1" },
|
|
662
|
+
{ "event": "click", "target": "open-nested-2" },
|
|
663
|
+
{ "event": "click", "target": "backdrop:2" },
|
|
664
|
+
{ "expect": { "hidden": ["level-3"] } },
|
|
665
|
+
{ "event": "click", "target": "backdrop:1" },
|
|
666
|
+
{ "expect": { "hidden": ["level-2"] } },
|
|
667
|
+
{ "event": "click", "target": "backdrop:0" },
|
|
668
|
+
{ "expect": { "hidden": ["level-1"] } }
|
|
669
|
+
]
|
|
670
|
+
},
|
|
671
|
+
{
|
|
672
|
+
"id": "dialog-modal.base-ui.escape-in-nested-dialog-not-parent-menu",
|
|
673
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/dialog/root/DialogRoot.test.tsx#L1152",
|
|
674
|
+
"upstreamTest": "should not close the parent menu when Escape is pressed in a nested dialog",
|
|
675
|
+
"apg": "keyboard",
|
|
676
|
+
"config": { "nestedMenu": true },
|
|
677
|
+
"steps": [
|
|
678
|
+
{ "event": "click", "target": "trigger" },
|
|
679
|
+
{ "event": "key", "key": "Escape", "target": "dialog" },
|
|
680
|
+
{ "expect": { "hidden": ["dialog"], "visible": ["menu"] } }
|
|
681
|
+
]
|
|
682
|
+
},
|
|
683
|
+
{
|
|
684
|
+
"id": "dialog-modal.base-ui.right-button-outside-press-ignored",
|
|
685
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/dialog/root/DialogRoot.test.tsx#L1623",
|
|
686
|
+
"upstreamTest": "does not close on a right-button outside press",
|
|
687
|
+
"apg": "extension",
|
|
688
|
+
"config": { "open": true },
|
|
689
|
+
"steps": [
|
|
690
|
+
{ "event": "pointerdown", "target": "outside", "button": 2 },
|
|
691
|
+
{ "event": "click", "target": "outside", "button": 2 },
|
|
692
|
+
{ "expect": { "visible": ["dialog"] } }
|
|
693
|
+
]
|
|
694
|
+
},
|
|
695
|
+
{
|
|
696
|
+
"id": "dialog-modal.base-ui.non-modal-without-backdrop-closes",
|
|
697
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/dialog/root/DialogRoot.test.tsx#L1867",
|
|
698
|
+
"upstreamTest": "closes a non-modal dialog without a backdrop",
|
|
699
|
+
"apg": "keyboard",
|
|
700
|
+
"config": { "open": true, "modal": false, "backdrop": false },
|
|
701
|
+
"steps": [
|
|
702
|
+
{ "event": "click", "target": "outside" },
|
|
703
|
+
{ "expect": { "hidden": ["dialog"] } }
|
|
704
|
+
]
|
|
705
|
+
},
|
|
706
|
+
{
|
|
707
|
+
"id": "dialog-modal.base-ui.trap-focus-without-backdrop-closes",
|
|
708
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/dialog/root/DialogRoot.test.tsx#L1871",
|
|
709
|
+
"upstreamTest": "closes a trap-focus dialog without a backdrop",
|
|
710
|
+
"apg": "keyboard",
|
|
711
|
+
"config": { "open": true, "modal": "trap-focus", "backdrop": false },
|
|
712
|
+
"steps": [
|
|
713
|
+
{ "event": "click", "target": "outside" },
|
|
714
|
+
{ "expect": { "hidden": ["dialog"] } }
|
|
715
|
+
]
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
"id": "dialog-modal.base-ui.close-from-undefined-onclick",
|
|
719
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/dialog/close/DialogClose.test.tsx#L89",
|
|
720
|
+
"upstreamTest": "closes the dialog when undefined is passed to the onClick prop",
|
|
721
|
+
"apg": "extension",
|
|
722
|
+
"config": {},
|
|
723
|
+
"steps": [
|
|
724
|
+
{ "event": "click", "target": "trigger" },
|
|
725
|
+
{ "event": "click", "target": "dismiss" },
|
|
726
|
+
{ "expect": { "hidden": ["dialog"] } }
|
|
727
|
+
]
|
|
728
|
+
},
|
|
729
|
+
{
|
|
730
|
+
"id": "dialog-modal.base-ui.close-prevented-does-not-close",
|
|
731
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/dialog/close/DialogClose.test.tsx#L118",
|
|
732
|
+
"upstreamTest": "does not close the dialog when the Base UI click handler is prevented",
|
|
733
|
+
"apg": "extension",
|
|
734
|
+
"config": { "preventBaseUiClick": true },
|
|
735
|
+
"steps": [
|
|
736
|
+
{ "event": "click", "target": "trigger" },
|
|
737
|
+
{ "event": "click", "target": "dismiss" },
|
|
738
|
+
{ "expect": { "visible": ["dialog"] } }
|
|
739
|
+
]
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
"id": "dialog-modal.base-ui.close-after-closed-does-not-request-again",
|
|
743
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/dialog/close/DialogClose.test.tsx#L137",
|
|
744
|
+
"upstreamTest": "does not request another close when clicked after the dialog has closed",
|
|
745
|
+
"apg": "extension",
|
|
746
|
+
"config": {},
|
|
747
|
+
"steps": [
|
|
748
|
+
{ "event": "click", "target": "trigger" },
|
|
749
|
+
{ "event": "click", "target": "dismiss" },
|
|
750
|
+
{
|
|
751
|
+
"expect": {
|
|
752
|
+
"hidden": ["dialog"],
|
|
753
|
+
"events": { "onOpenChange": [{ "open": true }, { "open": false }] }
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
]
|
|
757
|
+
},
|
|
758
|
+
{
|
|
759
|
+
"id": "dialog-modal.base-ui.trigger-disabled-does-not-open",
|
|
760
|
+
"upstream": "https://github.com/mui/base-ui/blob/19511bb171f3b360b006c94cf6d07e53cb446505/packages/react/src/dialog/trigger/DialogTrigger.test.tsx#L35",
|
|
761
|
+
"upstreamTest": "disables the dialog",
|
|
762
|
+
"apg": "extension",
|
|
763
|
+
"config": { "triggerDisabled": true },
|
|
764
|
+
"steps": [
|
|
765
|
+
{ "event": "click", "target": "trigger" },
|
|
766
|
+
{
|
|
767
|
+
"expect": {
|
|
768
|
+
"hidden": ["dialog"],
|
|
769
|
+
"attrs": { "trigger": { "disabled": "" } }
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
]
|
|
773
|
+
}
|
|
774
|
+
]
|
|
775
|
+
}
|