Skip to content

Commit 11733ca

Browse files
committed
test(app-shell): pay the lint and plugin-detail loads at collection in the list suites (objectstack#36897)
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgNtKtppbRbXmHGH8x
1 parent 2c60bdf commit 11733ca

6 files changed

Lines changed: 14 additions & 0 deletions

‎ui/packages/app-shell/src/views/metadata-admin/MetadataListCreateDialog.pairCreate-36897.test.tsx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
* writes nothing until it has one.
1414
*/
1515

16+
// Paid at collection, not inside a case's clock (check:test-source-alias).
17+
import '@objectstack/lint';
1618
import '@testing-library/jest-dom/vitest';
1719
import * as React from 'react';
1820
import { afterEach, describe, expect, it, vi } from 'vitest';

‎ui/packages/app-shell/src/views/metadata-admin/ResourceListPage.bundleMember-26649.test.tsx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
* - a row that declares no member (the canonical one) links by its name alone;
2121
* - CONTROL: a type with no members gets no column and no `?member=`.
2222
*/
23+
// Paid at collection, not inside a case's clock (check:test-source-alias).
24+
import '@objectstack/lint';
2325
import { describe, it, expect, vi, afterEach } from 'vitest';
2426
import { render, cleanup, screen, within } from '@testing-library/react';
2527
import '@testing-library/jest-dom';

‎ui/packages/app-shell/src/views/metadata-admin/ResourceListPage.declaredSharingRules-12982.test.tsx‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@
3535
* the ledger read refuses reads a plain-language state, with the server's
3636
* own sentence for why, never a bare "?".
3737
*/
38+
// Paid at collection, not inside a case's clock (check:test-source-alias).
39+
import '@objectstack/lint';
40+
import '@object-ui/plugin-detail';
3841
import { describe, it, expect, vi, afterEach, beforeEach } from 'vitest';
3942
import { render, cleanup, screen, waitFor, fireEvent, within } from '@testing-library/react';
4043
import '@testing-library/jest-dom';

‎ui/packages/app-shell/src/views/metadata-admin/ResourceListPage.pairCreate-36897.test.tsx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* item page's create and opens no dialog.
1515
*/
1616

17+
// Paid at collection, not inside a case's clock (check:test-source-alias).
18+
import '@objectstack/lint';
1719
import '@testing-library/jest-dom/vitest';
1820
import * as React from 'react';
1921
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';

‎ui/packages/app-shell/src/views/metadata-admin/ResourceListPage.positionGrants-25333.test.tsx‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
* the localized header, and a position without one shows the empty cell
2525
* (objectstack#25909).
2626
*/
27+
// Paid at collection, not inside a case's clock (check:test-source-alias).
28+
import '@objectstack/lint';
29+
import '@object-ui/plugin-detail';
2730
import { describe, it, expect, vi, afterEach, beforeEach } from 'vitest';
2831
import { render, cleanup, screen, waitFor, fireEvent, within } from '@testing-library/react';
2932
import '@testing-library/jest-dom';

‎ui/packages/app-shell/src/views/metadata-admin/ResourceListPage.setupLabelFirst-27356.test.tsx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
* The same page outside Setup is the control: the API name column, the Label
99
* column and the type's label as the title, as before.
1010
*/
11+
// Paid at collection, not inside a case's clock (check:test-source-alias).
12+
import '@objectstack/lint';
1113
import { describe, it, expect, vi, afterEach, beforeEach } from 'vitest';
1214
import { render, cleanup, screen, within } from '@testing-library/react';
1315
import '@testing-library/jest-dom';

0 commit comments

Comments
 (0)