@astryxdesign/lab 0.7.7-canary.bf14580 → 0.7.7-canary.c19ca12
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astryxdesign/lab",
|
|
3
|
-
"version": "0.7.7-canary.
|
|
3
|
+
"version": "0.7.7-canary.c19ca12",
|
|
4
4
|
"description": "Experimental Astryx components — published to npm only under the @canary dist-tag for early testing; never released as a stable (latest) version.",
|
|
5
5
|
"author": "Meta Open Source",
|
|
6
6
|
"license": "MIT",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"@stylexjs/stylex": ">=0.10.0",
|
|
52
|
-
"@astryxdesign/core": "0.7.7-canary.
|
|
52
|
+
"@astryxdesign/core": "0.7.7-canary.c19ca12",
|
|
53
53
|
"react": ">=19.0.0",
|
|
54
54
|
"react-dom": ">=19.0.0"
|
|
55
55
|
},
|
|
@@ -59,9 +59,9 @@
|
|
|
59
59
|
"d3-shape": "^3.2.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@astryxdesign/a11y-spec": "0.7.7-canary.
|
|
63
|
-
"@astryxdesign/cli": "0.7.7-canary.
|
|
64
|
-
"@astryxdesign/interaction-harness": "0.7.7-canary.
|
|
62
|
+
"@astryxdesign/a11y-spec": "0.7.7-canary.c19ca12",
|
|
63
|
+
"@astryxdesign/cli": "0.7.7-canary.c19ca12",
|
|
64
|
+
"@astryxdesign/interaction-harness": "0.7.7-canary.c19ca12",
|
|
65
65
|
"@babel/cli": "^7.29.7",
|
|
66
66
|
"@babel/core": "^7.29.7",
|
|
67
67
|
"@babel/preset-react": "^7.29.7",
|
|
@@ -1859,6 +1859,10 @@ describe('MobilePowerSearch content search', () => {
|
|
|
1859
1859
|
expect(
|
|
1860
1860
|
within(sheet()).getByRole('heading', {name: 'Filters'}),
|
|
1861
1861
|
).toBeTruthy();
|
|
1862
|
+
// The search sheet held focus as it closed, so words sent with the close
|
|
1863
|
+
// wait for its exit to end (component:BottomSheet FR9, spec:AST-086
|
|
1864
|
+
// FR14); settle that exit.
|
|
1865
|
+
act(() => settleSheets());
|
|
1862
1866
|
// The add is announced inside the sheet the flow is now on, not on the
|
|
1863
1867
|
// page body, which assistive technology does not expose under a native
|
|
1864
1868
|
// modal dialog.
|
|
@@ -1893,6 +1897,10 @@ describe('MobilePowerSearch content search', () => {
|
|
|
1893
1897
|
within(sheet()).getByRole('button', {name: '"release notes"'}),
|
|
1894
1898
|
);
|
|
1895
1899
|
await waitFor(() => expect(isSheetOpen()).toBe(true));
|
|
1900
|
+
// The search sheet held focus as it closed, so words sent with the close
|
|
1901
|
+
// wait for its exit to end (component:BottomSheet FR9, spec:AST-086
|
|
1902
|
+
// FR14); settle that exit.
|
|
1903
|
+
act(() => settleSheets());
|
|
1896
1904
|
await waitFor(() =>
|
|
1897
1905
|
expect(sheetRegion().textContent).toBe(
|
|
1898
1906
|
'Added "release notes" 20 results',
|
|
@@ -1248,6 +1248,7 @@ describe('MobileTokenizer Core-sheet parity', () => {
|
|
|
1248
1248
|
);
|
|
1249
1249
|
}
|
|
1250
1250
|
render(<Flow />);
|
|
1251
|
+
const trigger = screen.getByRole('button', {name: /Tags/});
|
|
1251
1252
|
const sheet = await openSheet();
|
|
1252
1253
|
// Pending from open until the bootstrap settles.
|
|
1253
1254
|
expect(within(sheet).getByRole('img', {name: 'Loading'})).toBeTruthy();
|
|
@@ -1264,11 +1265,8 @@ describe('MobileTokenizer Core-sheet parity', () => {
|
|
|
1264
1265
|
// The field becomes disabled while open: the sheet closes and the query
|
|
1265
1266
|
// is kept; re-enabled and reopened, it starts from "en", settled.
|
|
1266
1267
|
fireEvent.click(screen.getByRole('button', {name: 'Toggle'}));
|
|
1267
|
-
expect(
|
|
1268
|
-
|
|
1269
|
-
'false',
|
|
1270
|
-
);
|
|
1271
|
-
act(() => screen.getByRole('button', {name: /Tags/}).focus());
|
|
1268
|
+
expect(trigger).toHaveAttribute('aria-expanded', 'false');
|
|
1269
|
+
act(() => trigger.focus());
|
|
1272
1270
|
await waitFor(() => expect(screen.queryByRole('dialog')).toBeNull());
|
|
1273
1271
|
fireEvent.click(screen.getByRole('button', {name: 'Toggle'}));
|
|
1274
1272
|
const reopened = await openSheet();
|