@remit/ui 0.0.222 → 0.0.223
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 +12 -3
- package/src/components/DropdownMenu.tsx +100 -0
- package/src/components/EmptyState.tsx +11 -0
- package/src/components/ErrorBanner.render.test.ts +107 -0
- package/src/components/ErrorBanner.stories.tsx +132 -0
- package/src/components/ErrorBanner.tsx +122 -0
- package/src/components/ErrorBannerStack.tsx +34 -0
- package/src/components/ErrorState.render.test.ts +82 -0
- package/src/components/ErrorState.tsx +80 -0
- package/src/components/KeyboardShortcutsModal.tsx +111 -0
- package/src/components/account-service-change-dialog.render.test.ts +1 -41
- package/src/components/account-service-choice.render.test.ts +0 -26
- package/src/components/account-service-toggles.render.test.ts +0 -6
- package/src/components/address-display.render.test.ts +1 -38
- package/src/components/address-tag.render.test.ts +0 -11
- package/src/components/agenda-flow.reach.test.ts +0 -8
- package/src/components/agenda-flow.render.test.ts +0 -31
- package/src/components/agenda-panels.render.test.ts +0 -5
- package/src/components/app-shell-slotted.render.test.ts +0 -118
- package/src/components/attachment-list.render.test.ts +41 -24
- package/src/components/attachment-list.stories.tsx +67 -0
- package/src/components/attachment-list.tsx +112 -35
- package/src/components/attendee-row.render.test.ts +0 -41
- package/src/components/attention-dot.stories.tsx +46 -0
- package/src/components/attention-dot.tsx +23 -0
- package/src/components/banner.render.test.ts +0 -7
- package/src/components/bottom-sheet.render.test.ts +0 -42
- package/src/components/brief-section.render.test.ts +0 -13
- package/src/components/brief-sections.keyboard.test.ts +0 -13
- package/src/components/brief-sections.render.test.ts +0 -22
- package/src/components/calendar-clash-strip.render.test.ts +0 -19
- package/src/components/calendar-grid.render.test.ts +0 -79
- package/src/components/calendar-invite-card.render.test.ts +0 -19
- package/src/components/calendar-list.render.test.ts +0 -21
- package/src/components/calendar-slot-offers.render.test.ts +0 -24
- package/src/components/calendar-suggestion-deck.render.test.ts +0 -18
- package/src/components/calendar-toolbar.render.test.ts +1 -53
- package/src/components/category-badge.render.test.ts +1 -24
- package/src/components/compose-action-bar.render.test.ts +0 -5
- package/src/components/compose-attachments.render.test.ts +0 -38
- package/src/components/event-detail.render.test.ts +0 -27
- package/src/components/event-editor.render.test.ts +0 -4
- package/src/components/event-suggestion-card.render.test.ts +0 -61
- package/src/components/event-suggestion-card.zone-gate.test.ts +1 -7
- package/src/components/filter-clause-chip.tsx +1 -60
- package/src/components/filter-rule-editor.create.test.ts +0 -6
- package/src/components/filter-rule-editor.stories.tsx +24 -138
- package/src/components/filter-rule-editor.tsx +7 -93
- package/src/components/filter-rule.render.test.ts +9 -299
- package/src/components/filter-rule.ts +20 -85
- package/src/components/filter-sheet.render.test.ts +0 -7
- package/src/components/folder-manage-actions.render.test.ts +0 -13
- package/src/components/folder-manager.render.test.ts +0 -31
- package/src/components/folder-mutation-dialog.render.test.ts +0 -83
- package/src/components/folder-rename-dialog.render.test.ts +0 -14
- package/src/components/folder-row.render.test.ts +0 -30
- package/src/components/folder-sync-state.test.ts +0 -61
- package/src/components/folder-tree-picker.create.test.ts +0 -30
- package/src/components/folder-tree-picker.render.test.ts +0 -35
- package/src/components/intelligence-calendar-fixtures.ts +0 -2
- package/src/components/intelligence-calendar.render.test.ts +0 -4
- package/src/components/intelligence-panel.render.test.ts +1 -62
- package/src/components/intelligence-panel.stories.tsx +0 -76
- package/src/components/intelligence-panel.tab-strip.test.ts +0 -1
- package/src/components/intelligence-panel.tsx +6 -176
- package/src/components/intelligence-toggle.render.test.ts +0 -5
- package/src/components/isolated-email-frame.render.test.ts +0 -122
- package/src/components/isolated-email-frame.tsx +1 -1
- package/src/components/keyboard-hint-bar.render.test.ts +0 -7
- package/src/components/label-chip.render.test.ts +0 -28
- package/src/components/label-chip.tsx +1 -1
- package/src/components/mail-header.render.test.ts +0 -20
- package/src/components/mcp-connected-apps-page.stories.tsx +58 -0
- package/src/components/mcp-connected-apps-page.tsx +79 -0
- package/src/components/mcp-consent-page.stories.tsx +39 -0
- package/src/components/mcp-consent-page.tsx +47 -0
- package/src/components/mcp-device-page.stories.tsx +57 -0
- package/src/components/mcp-device-page.tsx +107 -0
- package/src/components/mcp-error-notice.stories.tsx +34 -0
- package/src/components/mcp-error-notice.tsx +23 -0
- package/src/components/mcp-error-page.stories.tsx +17 -0
- package/src/components/mcp-error-page.tsx +15 -0
- package/src/components/mcp-fixtures.ts +16 -0
- package/src/components/mcp-login-page.stories.tsx +37 -0
- package/src/components/mcp-login-page.tsx +58 -0
- package/src/components/mcp-page.stories.tsx +27 -0
- package/src/components/mcp-page.tsx +35 -0
- package/src/components/mcp-permission-list.stories.tsx +21 -0
- package/src/components/mcp-permission-list.tsx +22 -0
- package/src/components/message-body-view.render.test.ts +0 -21
- package/src/components/message-list-pane.brief-filter.test.ts +0 -6
- package/src/components/message-list-pane.render.test.ts +0 -54
- package/src/components/message-list-state.render.test.ts +0 -84
- package/src/components/{quarantine-bug-dialog.tsx → message-report-dialog.tsx} +9 -14
- package/src/components/message-row.render.test.ts +1 -98
- package/src/components/mobile-message-action-bar.render.test.ts +0 -59
- package/src/components/mobile-reading-pane.render.test.ts +0 -48
- package/src/components/mobile-search-view.render.test.ts +0 -16
- package/src/components/mobile-search-view.stories.tsx +8 -11
- package/src/components/mobile-search-view.tsx +1 -1
- package/src/components/nav-sidebar.keyboard.test.ts +0 -8
- package/src/components/nav-sidebar.render.test.ts +2 -133
- package/src/components/new-folder-form.render.test.ts +0 -26
- package/src/components/outbox-row.render.test.ts +0 -9
- package/src/components/pane-layout.render.test.ts +0 -18
- package/src/components/plain-text-editor.mount.test.ts +0 -16
- package/src/components/popover-menu.render.test.ts +0 -11
- package/src/components/progress-bar.render.test.ts +0 -14
- package/src/components/quarantine-report.test.ts +0 -8
- package/src/components/quarantine-section.render.test.ts +16 -13
- package/src/components/quarantine-section.stories.tsx +11 -8
- package/src/components/reading-pane.render.test.ts +2 -106
- package/src/components/reading-pane.stories.tsx +3 -0
- package/src/components/refresh-button.render.test.ts +0 -9
- package/src/components/rescue-from-spam-flow.render.test.ts +0 -24
- package/src/components/rich-text-editor.mount.test.ts +0 -19
- package/src/components/rich-text-image-node.ts +11 -9
- package/src/components/role-appointment-list.render.test.ts +0 -49
- package/src/components/role-appointment-prompt.render.test.ts +0 -79
- package/src/components/row-actions.render.test.ts +0 -34
- package/src/components/search-bar.render.test.ts +0 -44
- package/src/components/search-chip-input.render.test.ts +0 -71
- package/src/components/search-conversion-notice.stories.tsx +0 -6
- package/src/components/search-conversion-notice.tsx +3 -9
- package/src/components/search-conversion.render.test.ts +0 -52
- package/src/components/search-conversion.ts +2 -18
- package/src/components/search-result-row.tsx +5 -26
- package/src/components/search-results.render.test.ts +0 -68
- package/src/components/search-results.stories.tsx +0 -30
- package/src/components/search-results.tsx +1 -1
- package/src/components/security-select.render.test.ts +1 -14
- package/src/components/selection-top-bar.render.test.ts +0 -180
- package/src/components/selection-wizard-fixtures.ts +0 -2
- package/src/components/selection-wizard.render.test.ts +7 -212
- package/src/components/selection-wizard.stories.tsx +24 -164
- package/src/components/selection-wizard.tsx +10 -86
- package/src/components/self-update.render.test.ts +0 -113
- package/src/components/sender-trust-indicator.render.test.ts +0 -30
- package/src/components/shell-top-bar.render.test.ts +0 -31
- package/src/components/shell-top-bar.stories.tsx +7 -0
- package/src/components/shell-top-bar.tsx +11 -2
- package/src/components/slide-panel.render.test.ts +0 -18
- package/src/components/suggest-list.render.test.ts +0 -6
- package/src/components/swipeable-row.gesture.test.ts +0 -15
- package/src/components/swipeable-row.render.test.ts +0 -7
- package/src/components/sync-warning-fixtures.ts +22 -0
- package/src/components/sync-warning-report.ts +38 -0
- package/src/components/sync-warning-row.tsx +51 -0
- package/src/components/sync-warning-section.render.test.ts +19 -0
- package/src/components/sync-warning-section.stories.tsx +94 -0
- package/src/components/sync-warning-section.tsx +56 -0
- package/src/components/touch-list-body.render.test.ts +0 -29
- package/src/components/wizard.render.test.ts +0 -22
- package/src/filter-presets.test.ts +1 -107
- package/src/index.ts +40 -30
- package/src/lib/compose-language.test.ts +0 -11
- package/src/lib/email-render-treatment.test.ts +0 -21
- package/src/lib/keymap.test.ts +0 -32
- package/src/lib/property-prefill.ts +2 -2
- package/src/lib/search-rule.test.ts +0 -4
- package/src/lib/search-rule.ts +0 -9
- package/src/lib/sender-derivation.ts +3 -5
- package/src/lib/use-list-cursor.test.ts +0 -7
- package/src/lib/use-list-keyboard.test.ts +0 -14
- package/src/lib/use-modal-focus.test.ts +0 -20
- package/src/lib/use-selection.hook.test.ts +0 -13
- package/src/lib/use-selection.test.ts +0 -101
- package/src/lib/wizard-steps.test.ts +18 -79
- package/src/lib/wizard-steps.ts +27 -67
- package/src/mcp-pages.ts +36 -0
- package/src/category-presentation.test.ts +0 -76
- package/src/components/account-service-status.render.test.ts +0 -82
- package/src/components/app-password-hint.render.test.ts +0 -23
- package/src/components/app-top-bar.render.test.ts +0 -59
- package/src/components/auth-card.render.test.ts +0 -24
- package/src/components/auth-footer.render.test.ts +0 -17
- package/src/components/auth-hero.render.test.ts +0 -31
- package/src/components/auto-moved-badge.render.test.ts +0 -65
- package/src/components/button.render.test.ts +0 -29
- package/src/components/calendar-event-chip.render.test.ts +0 -67
- package/src/components/calendar-parse-badge.render.test.ts +0 -40
- package/src/components/checkbox.render.test.ts +0 -65
- package/src/components/compose-form-shell.render.test.ts +0 -106
- package/src/components/dialog.render.test.ts +0 -51
- package/src/components/field-label.render.test.ts +0 -16
- package/src/components/mail-action-toolbar.render.test.ts +0 -43
- package/src/components/nav-link-surface.render.test.ts +0 -126
- package/src/components/new-folder-action.render.test.ts +0 -44
- package/src/components/pane-header.render.test.ts +0 -22
- package/src/components/pull-to-refresh.render.test.ts +0 -46
- package/src/components/recurrence-scope-prompt.render.test.ts +0 -36
- package/src/components/rescue-banner.render.test.ts +0 -32
- package/src/components/rescue-candidate-row.render.test.ts +0 -68
- package/src/components/search-token-chip.render.test.ts +0 -42
- package/src/components/self-update-dot.tsx +0 -32
- package/src/components/settings-primitives.render.test.ts +0 -160
- package/src/lib/email-layout-clamp.test.ts +0 -139
- package/src/lib/label-color.test.ts +0 -25
- package/src/lib/semantic-off.ts +0 -20
- package/src/stories-viewport-globals.test.ts +0 -77
|
@@ -52,31 +52,11 @@ const renderFlow = (open: boolean): string =>
|
|
|
52
52
|
);
|
|
53
53
|
|
|
54
54
|
describe("RescueFromSpamFlow", () => {
|
|
55
|
-
it("opens on the review step listing every candidate", () => {
|
|
56
|
-
const html = renderFlow(true);
|
|
57
|
-
assert.match(html, /Rescue from Spam/);
|
|
58
|
-
assert.match(html, /Anna de Vries/);
|
|
59
|
-
assert.match(html, /Mum/);
|
|
60
|
-
});
|
|
61
|
-
|
|
62
55
|
it("pre-selects all candidates and shows the live count", () => {
|
|
63
56
|
const html = renderFlow(true);
|
|
64
57
|
assert.match(html, /2 of 2 selected/);
|
|
65
58
|
assert.match(html, /Continue with 2 messages/);
|
|
66
59
|
});
|
|
67
|
-
|
|
68
|
-
it("offers select-all / none and a way back", () => {
|
|
69
|
-
const html = renderFlow(true);
|
|
70
|
-
assert.match(html, /Select all/);
|
|
71
|
-
assert.match(html, /Select none/);
|
|
72
|
-
assert.match(html, /Cancel/);
|
|
73
|
-
assert.match(html, /Why these\?/);
|
|
74
|
-
});
|
|
75
|
-
|
|
76
|
-
it("never leaks authentication jargon", () => {
|
|
77
|
-
const html = renderFlow(true);
|
|
78
|
-
assert.doesNotMatch(html, /DKIM|SPF|DMARC|spam score|predicate/i);
|
|
79
|
-
});
|
|
80
60
|
});
|
|
81
61
|
|
|
82
62
|
describe("rescueMoveConsequence", () => {
|
|
@@ -93,8 +73,4 @@ describe("rescueMoveConsequence", () => {
|
|
|
93
73
|
"Moves this message out of Spam to Family now. Nothing later.",
|
|
94
74
|
);
|
|
95
75
|
});
|
|
96
|
-
|
|
97
|
-
it("always promises nothing ongoing", () => {
|
|
98
|
-
assert.match(rescueMoveConsequence(9, "Inbox"), /Nothing later\.$/);
|
|
99
|
-
});
|
|
100
76
|
});
|
|
@@ -76,25 +76,6 @@ describe("RichTextEditor", () => {
|
|
|
76
76
|
assert.match(latest.text, /## Quarterly numbers/);
|
|
77
77
|
});
|
|
78
78
|
|
|
79
|
-
it("offers the formatting controls the composer ships with", async () => {
|
|
80
|
-
await act(async () => {
|
|
81
|
-
root = createRoot(container);
|
|
82
|
-
root.render(createElement(RichTextEditor, {}));
|
|
83
|
-
});
|
|
84
|
-
|
|
85
|
-
const labels = [...container.querySelectorAll("button")].map((button) =>
|
|
86
|
-
button.getAttribute("aria-label"),
|
|
87
|
-
);
|
|
88
|
-
assert.deepEqual(labels, [
|
|
89
|
-
"Bold (Ctrl+B)",
|
|
90
|
-
"Italic (Ctrl+I)",
|
|
91
|
-
"Link (Ctrl+K)",
|
|
92
|
-
"Blockquote",
|
|
93
|
-
"Undo (Ctrl+Z)",
|
|
94
|
-
"Redo (Ctrl+Y)",
|
|
95
|
-
]);
|
|
96
|
-
});
|
|
97
|
-
|
|
98
79
|
it("asks for an address rather than inserting an empty link", async () => {
|
|
99
80
|
await act(async () => {
|
|
100
81
|
root = createRoot(container);
|
|
@@ -32,7 +32,7 @@ export class ImageNode extends DecoratorNode<null> {
|
|
|
32
32
|
/** @internal */
|
|
33
33
|
__preview = "";
|
|
34
34
|
|
|
35
|
-
$config() {
|
|
35
|
+
override $config() {
|
|
36
36
|
return this.config("image", {
|
|
37
37
|
importDOM: {
|
|
38
38
|
img: () => ({ conversion: $convertImageElement, priority: 0 }),
|
|
@@ -46,20 +46,20 @@ export class ImageNode extends DecoratorNode<null> {
|
|
|
46
46
|
this.__alt = alt;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
afterCloneFrom(prevNode: this): void {
|
|
49
|
+
override afterCloneFrom(prevNode: this): void {
|
|
50
50
|
super.afterCloneFrom(prevNode);
|
|
51
51
|
this.__src = prevNode.__src;
|
|
52
52
|
this.__alt = prevNode.__alt;
|
|
53
53
|
this.__preview = prevNode.__preview;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
createDOM(config: EditorConfig): HTMLImageElement {
|
|
56
|
+
override createDOM(config: EditorConfig): HTMLImageElement {
|
|
57
57
|
const element = this.buildImage(this.__preview || this.__src);
|
|
58
58
|
addClassNamesToElement(element, config.theme.image);
|
|
59
59
|
return element;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
updateDOM(prevNode: this, element: HTMLImageElement): boolean {
|
|
62
|
+
override updateDOM(prevNode: this, element: HTMLImageElement): boolean {
|
|
63
63
|
const shown = this.__preview || this.__src;
|
|
64
64
|
if ((prevNode.__preview || prevNode.__src) !== shown)
|
|
65
65
|
element.setAttribute("src", shown);
|
|
@@ -67,15 +67,17 @@ export class ImageNode extends DecoratorNode<null> {
|
|
|
67
67
|
return false;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
exportDOM(): DOMExportOutput {
|
|
70
|
+
override exportDOM(): DOMExportOutput {
|
|
71
71
|
return { element: this.buildImage(this.__src) };
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
exportJSON(): SerializedImageNode {
|
|
74
|
+
override exportJSON(): SerializedImageNode {
|
|
75
75
|
return { ...super.exportJSON(), alt: this.getAlt(), src: this.getSrc() };
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
updateFromJSON(
|
|
78
|
+
override updateFromJSON(
|
|
79
|
+
serializedNode: LexicalUpdateJSON<SerializedImageNode>,
|
|
80
|
+
): this {
|
|
79
81
|
return super
|
|
80
82
|
.updateFromJSON(serializedNode)
|
|
81
83
|
.setSrc(serializedNode.src)
|
|
@@ -113,11 +115,11 @@ export class ImageNode extends DecoratorNode<null> {
|
|
|
113
115
|
}
|
|
114
116
|
|
|
115
117
|
/** The text alternative is what a plain-text reader is left with. */
|
|
116
|
-
getTextContent(): string {
|
|
118
|
+
override getTextContent(): string {
|
|
117
119
|
return this.getAlt();
|
|
118
120
|
}
|
|
119
121
|
|
|
120
|
-
isInline(): true {
|
|
122
|
+
override isInline(): true {
|
|
121
123
|
return true;
|
|
122
124
|
}
|
|
123
125
|
|
|
@@ -74,39 +74,6 @@ function clearingOptions(markup: string): string[] {
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
describe("RoleAppointmentList", () => {
|
|
77
|
-
it("titles the section with the account email", () => {
|
|
78
|
-
const html = render({ inbox: appointed("mb-inbox") });
|
|
79
|
-
assert.match(html, /Folder roles —/);
|
|
80
|
-
assert.match(html, /you@example.com/);
|
|
81
|
-
});
|
|
82
|
-
|
|
83
|
-
it("renders a row for every appointable role", () => {
|
|
84
|
-
const html = render({});
|
|
85
|
-
for (const label of [
|
|
86
|
-
"Inbox",
|
|
87
|
-
"Drafts",
|
|
88
|
-
"Sent",
|
|
89
|
-
"Archive",
|
|
90
|
-
"Spam",
|
|
91
|
-
"Trash",
|
|
92
|
-
]) {
|
|
93
|
-
assert.match(html, new RegExp(`Folder for ${label}`));
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
|
|
97
|
-
it("offers every folder with its message count as a picker option", () => {
|
|
98
|
-
const html = render({});
|
|
99
|
-
assert.match(html, /Concepten · 340 msgs/);
|
|
100
|
-
assert.match(html, /Drafts · 0 msgs/);
|
|
101
|
-
});
|
|
102
|
-
|
|
103
|
-
it("shows the appointed folder's path and count under the role", () => {
|
|
104
|
-
const html = render({ drafts: appointed("mb-concepten") });
|
|
105
|
-
assert.match(html, /title="INBOX\/Concepten"/);
|
|
106
|
-
assert.match(html, /340/);
|
|
107
|
-
assert.match(html, /messages/);
|
|
108
|
-
});
|
|
109
|
-
|
|
110
77
|
it("renders a rename field only for an appointed role", () => {
|
|
111
78
|
const html = render({ drafts: appointed("mb-concepten") });
|
|
112
79
|
assert.match(html, /Display name for Drafts/);
|
|
@@ -202,14 +169,6 @@ describe("RoleAppointmentList", () => {
|
|
|
202
169
|
assert.doesNotMatch(html, /Deleting mail is stopped/);
|
|
203
170
|
});
|
|
204
171
|
|
|
205
|
-
it("drops the name clause when no path was ever recorded", () => {
|
|
206
|
-
const html = render({ trash: { mailboxId: null, source: "Stale" } });
|
|
207
|
-
assert.match(
|
|
208
|
-
html,
|
|
209
|
-
/The folder you chose for Trash is gone from the mail server\./,
|
|
210
|
-
);
|
|
211
|
-
});
|
|
212
|
-
|
|
213
172
|
it("says nothing about a fallback it cannot name", () => {
|
|
214
173
|
const html = render({
|
|
215
174
|
drafts: {
|
|
@@ -328,12 +287,4 @@ describe("a canonical role cannot be unset (#873)", () => {
|
|
|
328
287
|
);
|
|
329
288
|
assert.match(archive, /<option[^>]*disabled[^>]*>Choose a folder</);
|
|
330
289
|
});
|
|
331
|
-
|
|
332
|
-
it("drops the placeholder once a folder fills the role", () => {
|
|
333
|
-
const drafts = picker(
|
|
334
|
-
render({ drafts: appointed("mb-concepten") }),
|
|
335
|
-
"Drafts",
|
|
336
|
-
);
|
|
337
|
-
assert.doesNotMatch(drafts, /Choose a folder/);
|
|
338
|
-
});
|
|
339
290
|
});
|
|
@@ -52,23 +52,6 @@ const render = (props: Partial<RoleAppointmentPromptProps>) =>
|
|
|
52
52
|
);
|
|
53
53
|
|
|
54
54
|
describe("roleAppointmentPromptCopy", () => {
|
|
55
|
-
it("says nothing was deleted, and what reader files deletes in", () => {
|
|
56
|
-
const copy = roleAppointmentPromptCopy("none", {
|
|
57
|
-
kind: "delete",
|
|
58
|
-
count: 12,
|
|
59
|
-
});
|
|
60
|
-
assert.equal(copy.title, "No folder is set as Trash");
|
|
61
|
-
assert.equal(
|
|
62
|
-
copy.description,
|
|
63
|
-
"Nothing has been deleted. reader files deleted mail in the folder you set as Trash, and this account has none.",
|
|
64
|
-
);
|
|
65
|
-
assert.equal(
|
|
66
|
-
copy.pickerPrompt,
|
|
67
|
-
"Which folder does this account use for deleted mail?",
|
|
68
|
-
);
|
|
69
|
-
assert.equal(copy.confirmLabel, "Set as Trash and delete 12 messages");
|
|
70
|
-
});
|
|
71
|
-
|
|
72
55
|
it("counts one message as one message", () => {
|
|
73
56
|
const copy = roleAppointmentPromptCopy("none", {
|
|
74
57
|
kind: "delete",
|
|
@@ -98,17 +81,6 @@ describe("roleAppointmentPromptCopy", () => {
|
|
|
98
81
|
assert.equal(copy.pickerPrompt, "Which folder should reader use instead?");
|
|
99
82
|
});
|
|
100
83
|
|
|
101
|
-
it("degrades the stale wording when no path was ever recorded", () => {
|
|
102
|
-
const copy = roleAppointmentPromptCopy("stale", {
|
|
103
|
-
kind: "delete",
|
|
104
|
-
count: 3,
|
|
105
|
-
});
|
|
106
|
-
assert.equal(
|
|
107
|
-
copy.description,
|
|
108
|
-
"Nothing has been deleted. The folder you set as this account's Trash is no longer on the mail server — another mail app may have renamed or removed it.",
|
|
109
|
-
);
|
|
110
|
-
});
|
|
111
|
-
|
|
112
84
|
it("names the guess and the irreversibility when confirming a guess", () => {
|
|
113
85
|
const copy = roleAppointmentPromptCopy(
|
|
114
86
|
"unconfirmed",
|
|
@@ -127,15 +99,6 @@ describe("roleAppointmentPromptCopy", () => {
|
|
|
127
99
|
assert.equal(copy.confirmLabel, "Set as Trash and empty 512 messages");
|
|
128
100
|
});
|
|
129
101
|
|
|
130
|
-
it("falls back to an uncounted confirm when the count is unknown", () => {
|
|
131
|
-
const copy = roleAppointmentPromptCopy(
|
|
132
|
-
"unconfirmed",
|
|
133
|
-
{ kind: "emptyTrash" },
|
|
134
|
-
{ trashFolderLabel: "Deleted Messages" },
|
|
135
|
-
);
|
|
136
|
-
assert.equal(copy.confirmLabel, "Set as Trash and empty it");
|
|
137
|
-
});
|
|
138
|
-
|
|
139
102
|
it("words the irreversibility as a delete of these rows, not a folder emptying (#876)", () => {
|
|
140
103
|
const copy = roleAppointmentPromptCopy(
|
|
141
104
|
"unconfirmed",
|
|
@@ -151,10 +114,6 @@ describe("roleAppointmentPromptCopy", () => {
|
|
|
151
114
|
});
|
|
152
115
|
|
|
153
116
|
describe("RoleAppointmentPrompt", () => {
|
|
154
|
-
it("renders nothing while closed", () => {
|
|
155
|
-
assert.equal(render({ open: false }), "");
|
|
156
|
-
});
|
|
157
|
-
|
|
158
117
|
it("offers a way out that changes nothing, and no confirm until one is picked", () => {
|
|
159
118
|
const html = render({});
|
|
160
119
|
assert.match(html, />Cancel</);
|
|
@@ -176,14 +135,6 @@ describe("RoleAppointmentPrompt", () => {
|
|
|
176
135
|
assert.match(html, /aria-label="Folders on this account"/);
|
|
177
136
|
});
|
|
178
137
|
|
|
179
|
-
it("names the account only where there is more than one", () => {
|
|
180
|
-
assert.match(
|
|
181
|
-
render({ accountEmail: "you@example.com" }),
|
|
182
|
-
/you@example.com/,
|
|
183
|
-
);
|
|
184
|
-
assert.doesNotMatch(render({}), /you@example\.com/);
|
|
185
|
-
});
|
|
186
|
-
|
|
187
138
|
it("offers a new folder only where the account has no Trash at all", () => {
|
|
188
139
|
const create = async (): Promise<FolderTreeNode> => ({
|
|
189
140
|
id: "mb-new",
|
|
@@ -201,14 +152,6 @@ describe("RoleAppointmentPrompt", () => {
|
|
|
201
152
|
);
|
|
202
153
|
});
|
|
203
154
|
|
|
204
|
-
it("warns in the tone of the pending action, not of the reason", () => {
|
|
205
|
-
assert.match(render({ reason: "none" }), /text-warning/);
|
|
206
|
-
assert.match(
|
|
207
|
-
render({ reason: "unconfirmed", action: { kind: "emptyTrash" } }),
|
|
208
|
-
/text-danger/,
|
|
209
|
-
);
|
|
210
|
-
});
|
|
211
|
-
|
|
212
155
|
it("replaces the body with the in-flight write, and takes the way out away", () => {
|
|
213
156
|
const html = render({
|
|
214
157
|
selectedId: "mb-prullenbak",
|
|
@@ -255,17 +198,6 @@ describe("RoleAppointmentPrompt", () => {
|
|
|
255
198
|
);
|
|
256
199
|
});
|
|
257
200
|
|
|
258
|
-
it("marks the confirm that erases in place as the destructive one", () => {
|
|
259
|
-
assert.match(
|
|
260
|
-
render({ ...refusedInPlace, selectedId: "mb-deleted" }),
|
|
261
|
-
/text-danger/,
|
|
262
|
-
);
|
|
263
|
-
assert.match(
|
|
264
|
-
render({ ...refusedInPlace, selectedId: "mb-prullenbak" }),
|
|
265
|
-
/text-warning/,
|
|
266
|
-
);
|
|
267
|
-
});
|
|
268
|
-
|
|
269
201
|
it("keeps the picker and the selection through a failed appointment", () => {
|
|
270
202
|
const html = render({
|
|
271
203
|
selectedId: "mb-prullenbak",
|
|
@@ -278,15 +210,4 @@ describe("RoleAppointmentPrompt", () => {
|
|
|
278
210
|
assert.match(html, /Set as Trash and delete 12 messages/);
|
|
279
211
|
assert.match(html, /role="alert"/);
|
|
280
212
|
});
|
|
281
|
-
|
|
282
|
-
it("words an unsettled mailbox as a wait, not a failure to retry blindly", () => {
|
|
283
|
-
const html = render({
|
|
284
|
-
selectedId: "mb-prullenbak",
|
|
285
|
-
phase: { kind: "appoint-failed", cause: "mailbox-pending" },
|
|
286
|
-
});
|
|
287
|
-
assert.match(
|
|
288
|
-
html,
|
|
289
|
-
/Prullenbak is still being created on the mail server\. Wait for it to finish, then try again\./,
|
|
290
|
-
);
|
|
291
|
-
});
|
|
292
213
|
});
|
|
@@ -5,40 +5,6 @@ import { renderToString } from "react-dom/server";
|
|
|
5
5
|
import { RowActions } from "./row-actions.js";
|
|
6
6
|
|
|
7
7
|
describe("RowActions", () => {
|
|
8
|
-
it("renders secondary actions as buttons, never disabled", () => {
|
|
9
|
-
const html = renderToString(
|
|
10
|
-
createElement(RowActions, {
|
|
11
|
-
actions: [
|
|
12
|
-
{ label: "Manage", onClick: () => undefined },
|
|
13
|
-
{
|
|
14
|
-
label: "Reconnect",
|
|
15
|
-
variant: "secondary",
|
|
16
|
-
onClick: () => undefined,
|
|
17
|
-
},
|
|
18
|
-
],
|
|
19
|
-
}),
|
|
20
|
-
);
|
|
21
|
-
assert.match(html, /Manage/);
|
|
22
|
-
assert.match(html, /Reconnect/);
|
|
23
|
-
assert.doesNotMatch(html, /disabled=""/);
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
it("renders the destructive action as a real button with no disabled attribute", () => {
|
|
27
|
-
const html = renderToString(
|
|
28
|
-
createElement(RowActions, {
|
|
29
|
-
destructive: {
|
|
30
|
-
label: "Delete",
|
|
31
|
-
iconOnly: true,
|
|
32
|
-
onClick: () => undefined,
|
|
33
|
-
confirm: { prompt: "Delete this account?" },
|
|
34
|
-
},
|
|
35
|
-
}),
|
|
36
|
-
);
|
|
37
|
-
assert.match(html, /<button/);
|
|
38
|
-
assert.match(html, /aria-label="Delete"/);
|
|
39
|
-
assert.doesNotMatch(html, /disabled=""/);
|
|
40
|
-
});
|
|
41
|
-
|
|
42
8
|
it("uses aria-busy, not disabled, while an action is busy", () => {
|
|
43
9
|
const html = renderToString(
|
|
44
10
|
createElement(RowActions, {
|
|
@@ -7,20 +7,6 @@ import { SearchBar } from "./search-bar.js";
|
|
|
7
7
|
const noop = () => {};
|
|
8
8
|
|
|
9
9
|
describe("SearchBar", () => {
|
|
10
|
-
it("renders the search input with an accessible label and placeholder", () => {
|
|
11
|
-
const html = renderToString(
|
|
12
|
-
createElement(SearchBar, {
|
|
13
|
-
value: "",
|
|
14
|
-
onChange: noop,
|
|
15
|
-
onClear: noop,
|
|
16
|
-
placeholder: "Search mail",
|
|
17
|
-
}),
|
|
18
|
-
);
|
|
19
|
-
assert.match(html, /aria-label="Search mail"/);
|
|
20
|
-
assert.match(html, /placeholder="Search mail"/);
|
|
21
|
-
assert.match(html, /value=""/);
|
|
22
|
-
});
|
|
23
|
-
|
|
24
10
|
it("omits the clear button while the query is empty", () => {
|
|
25
11
|
const html = renderToString(
|
|
26
12
|
createElement(SearchBar, { value: "", onChange: noop, onClear: noop }),
|
|
@@ -39,34 +25,4 @@ describe("SearchBar", () => {
|
|
|
39
25
|
assert.match(html, /aria-label="Clear search"/);
|
|
40
26
|
assert.match(html, /value="receipt"/);
|
|
41
27
|
});
|
|
42
|
-
|
|
43
|
-
it("omits the inline clear button when showClearButton is false", () => {
|
|
44
|
-
const html = renderToString(
|
|
45
|
-
createElement(SearchBar, {
|
|
46
|
-
value: "receipt",
|
|
47
|
-
onChange: noop,
|
|
48
|
-
onClear: noop,
|
|
49
|
-
showClearButton: false,
|
|
50
|
-
}),
|
|
51
|
-
);
|
|
52
|
-
assert.doesNotMatch(html, /aria-label="Clear search"/);
|
|
53
|
-
assert.match(html, /value="receipt"/);
|
|
54
|
-
});
|
|
55
|
-
});
|
|
56
|
-
|
|
57
|
-
describe("SearchBar narrowing chips", () => {
|
|
58
|
-
it("carries the chips inside the field, alongside the typed text", () => {
|
|
59
|
-
const html = renderToString(
|
|
60
|
-
createElement(SearchBar, {
|
|
61
|
-
value: "invoice",
|
|
62
|
-
onChange: noop,
|
|
63
|
-
onClear: noop,
|
|
64
|
-
chips: [{ id: "in:spam", label: "in:spam" }],
|
|
65
|
-
onRemoveChip: noop,
|
|
66
|
-
}),
|
|
67
|
-
);
|
|
68
|
-
assert.match(html, /in:spam/);
|
|
69
|
-
assert.match(html, /aria-label="Remove filter: in:spam"/);
|
|
70
|
-
assert.match(html, /value="invoice"/);
|
|
71
|
-
});
|
|
72
28
|
});
|
|
@@ -23,31 +23,6 @@ const SPAM = { id: "in:spam", label: "in:spam" };
|
|
|
23
23
|
const FROM = { id: "from:acme", label: "from:acme" };
|
|
24
24
|
|
|
25
25
|
describe("SearchChipInput", () => {
|
|
26
|
-
it("renders a real text input with an accessible label", () => {
|
|
27
|
-
const html = render({ placeholder: "Search mail" });
|
|
28
|
-
assert.match(html, /aria-label="Search mail"/);
|
|
29
|
-
assert.match(html, /placeholder="Search mail"/);
|
|
30
|
-
assert.match(html, /value=""/);
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
it("renders one removable chip per narrowing term, in order", () => {
|
|
34
|
-
const html = render({ chips: [SPAM, FROM] });
|
|
35
|
-
assert.match(html, /in:spam/);
|
|
36
|
-
assert.match(html, /from:acme/);
|
|
37
|
-
assert.match(html, /aria-label="Remove filter: in:spam"/);
|
|
38
|
-
assert.match(html, /aria-label="Remove filter: from:acme"/);
|
|
39
|
-
assert.ok(
|
|
40
|
-
html.indexOf("in:spam") < html.indexOf("from:acme"),
|
|
41
|
-
"chips keep expression order",
|
|
42
|
-
);
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
it("keeps chips and free text in the same field", () => {
|
|
46
|
-
const html = render({ chips: [SPAM], value: "invoice" });
|
|
47
|
-
assert.match(html, /in:spam/);
|
|
48
|
-
assert.match(html, /value="invoice"/);
|
|
49
|
-
});
|
|
50
|
-
|
|
51
26
|
it("drops the placeholder once the expression carries a chip", () => {
|
|
52
27
|
const html = render({ chips: [SPAM], placeholder: "Search mail" });
|
|
53
28
|
assert.doesNotMatch(html, /placeholder="Search mail"/);
|
|
@@ -64,29 +39,11 @@ describe("SearchChipInput", () => {
|
|
|
64
39
|
assert.doesNotMatch(render(), /aria-label="Clear search"/);
|
|
65
40
|
});
|
|
66
41
|
|
|
67
|
-
it("omits the inline clear when showClearButton is false", () => {
|
|
68
|
-
const html = render({ value: "receipt", showClearButton: false });
|
|
69
|
-
assert.doesNotMatch(html, /aria-label="Clear search"/);
|
|
70
|
-
assert.match(html, /value="receipt"/);
|
|
71
|
-
});
|
|
72
|
-
|
|
73
42
|
it("carries a live region so a removal is never silent", () => {
|
|
74
43
|
const html = render({ chips: [SPAM] });
|
|
75
44
|
assert.match(html, /role="status"/);
|
|
76
45
|
assert.match(html, /aria-live="polite"/);
|
|
77
46
|
});
|
|
78
|
-
|
|
79
|
-
it("renders the same field at either size", () => {
|
|
80
|
-
for (const size of ["sm", "lg"] as const) {
|
|
81
|
-
const html = render({ size, chips: [SPAM], value: "invoice" });
|
|
82
|
-
assert.match(html, /aria-label="Search mail"/);
|
|
83
|
-
assert.match(html, /in:spam/);
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
|
-
|
|
87
|
-
it("takes a caller-supplied input id so a page can host more than one field", () => {
|
|
88
|
-
assert.match(render({ inputId: "top-bar-search" }), /id="top-bar-search"/);
|
|
89
|
-
});
|
|
90
47
|
});
|
|
91
48
|
|
|
92
49
|
describe("SearchChipInput chip semantics", () => {
|
|
@@ -128,13 +85,6 @@ describe("SearchChipInput chip semantics", () => {
|
|
|
128
85
|
);
|
|
129
86
|
assert.ok((html.match(/tabindex="-1"/gi)?.length ?? 0) >= 6);
|
|
130
87
|
});
|
|
131
|
-
|
|
132
|
-
it("differentiates a scope chip from a typed filter chip", () => {
|
|
133
|
-
const scoped = render({ chips: [{ ...SPAM, tone: "scope" }] });
|
|
134
|
-
const filter = render({ chips: [SPAM] });
|
|
135
|
-
assert.notEqual(scoped, filter);
|
|
136
|
-
assert.match(scoped, /accent-2/);
|
|
137
|
-
});
|
|
138
88
|
});
|
|
139
89
|
|
|
140
90
|
describe("Two fields mounted at once stay independent", () => {
|
|
@@ -178,30 +128,9 @@ describe("Two fields mounted at once stay independent", () => {
|
|
|
178
128
|
);
|
|
179
129
|
assert.deepEqual(labelTargets, inputIds);
|
|
180
130
|
});
|
|
181
|
-
|
|
182
|
-
it("still honours an explicit id when the caller needs a stable one", () => {
|
|
183
|
-
const html = renderToString(
|
|
184
|
-
createElement(SearchChipInput, {
|
|
185
|
-
value: "",
|
|
186
|
-
onChange: noop,
|
|
187
|
-
onClear: noop,
|
|
188
|
-
inputId: "top-bar-search",
|
|
189
|
-
}),
|
|
190
|
-
);
|
|
191
|
-
assert.match(html, /<label[^>]*for="top-bar-search"/);
|
|
192
|
-
assert.match(html, /<input[^>]*id="top-bar-search"/);
|
|
193
|
-
});
|
|
194
131
|
});
|
|
195
132
|
|
|
196
133
|
describe("A read-only chip strip promises nothing it cannot do", () => {
|
|
197
|
-
it("still renders the remove control so the strip looks the same", () => {
|
|
198
|
-
// Removal is host-owned. Without a handler the chip cannot go anywhere, so
|
|
199
|
-
// the field must not announce a removal or move focus as though it had —
|
|
200
|
-
// see the guard in removeChipAt.
|
|
201
|
-
const html = render({ chips: [SPAM] });
|
|
202
|
-
assert.match(html, /aria-label="Remove filter: in:spam"/);
|
|
203
|
-
});
|
|
204
|
-
|
|
205
134
|
it("starts with an empty live region rather than a stale announcement", () => {
|
|
206
135
|
const html = render({ chips: [SPAM], onRemoveChip: noop });
|
|
207
136
|
assert.match(
|
|
@@ -24,18 +24,12 @@ export const DroppedFacets: Story = {
|
|
|
24
24
|
},
|
|
25
25
|
};
|
|
26
26
|
|
|
27
|
-
/** A deployment that cannot match by meaning — literal words kept, no similarity claim. */
|
|
28
|
-
export const DroppedSemantic: Story = {
|
|
29
|
-
args: { notice: { droppedSemantic: true } },
|
|
30
|
-
};
|
|
31
|
-
|
|
32
27
|
/** Everything a rich search carried that the filter cannot. */
|
|
33
28
|
export const Everything: Story = {
|
|
34
29
|
args: {
|
|
35
30
|
notice: {
|
|
36
31
|
scopedOutFolder: "Archive",
|
|
37
32
|
droppedFacets: ["Has attachment", "Before 2026-01-01"],
|
|
38
|
-
droppedSemantic: true,
|
|
39
33
|
},
|
|
40
34
|
},
|
|
41
35
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { FolderInput, Info
|
|
1
|
+
import { FolderInput, Info } from "lucide-react";
|
|
2
2
|
import {
|
|
3
|
-
DROPPED_SEMANTIC_COPY,
|
|
4
3
|
droppedFacetsCopy,
|
|
5
4
|
hasConversionNotice,
|
|
6
5
|
type SearchConversionNotice,
|
|
@@ -31,8 +30,8 @@ function NoticeRow({
|
|
|
31
30
|
/**
|
|
32
31
|
* What converting a search to a filter left behind (RFC 038 D5). Rendered above
|
|
33
32
|
* the clause chips so the user sees, before touching the rule, every part of the
|
|
34
|
-
* search the filter cannot carry: a folder scope
|
|
35
|
-
*
|
|
33
|
+
* search the filter cannot carry: a folder scope and non-clause facets.
|
|
34
|
+
* Nothing to state renders nothing.
|
|
36
35
|
* Presentational and prop-driven.
|
|
37
36
|
*/
|
|
38
37
|
export function SearchConversionNoticeView({
|
|
@@ -56,11 +55,6 @@ export function SearchConversionNoticeView({
|
|
|
56
55
|
{droppedFacetsCopy(notice.droppedFacets)}
|
|
57
56
|
</NoticeRow>
|
|
58
57
|
)}
|
|
59
|
-
{notice.droppedSemantic && (
|
|
60
|
-
<NoticeRow icon={<Sparkles className="size-3.5" />}>
|
|
61
|
-
{DROPPED_SEMANTIC_COPY}
|
|
62
|
-
</NoticeRow>
|
|
63
|
-
)}
|
|
64
58
|
</ul>
|
|
65
59
|
</div>
|
|
66
60
|
);
|
|
@@ -3,11 +3,8 @@ import { describe, it } from "node:test";
|
|
|
3
3
|
import { createElement } from "react";
|
|
4
4
|
import { renderToString } from "react-dom/server";
|
|
5
5
|
import {
|
|
6
|
-
DROPPED_SEMANTIC_COPY,
|
|
7
6
|
droppedFacetsCopy,
|
|
8
|
-
hasConversionNotice,
|
|
9
7
|
makeFilterBlockedCopy,
|
|
10
|
-
scopedOutCopy,
|
|
11
8
|
} from "./search-conversion.js";
|
|
12
9
|
import { SearchConversionNoticeView } from "./search-conversion-notice.js";
|
|
13
10
|
|
|
@@ -16,11 +13,6 @@ const render = (element: Parameters<typeof renderToString>[0]) =>
|
|
|
16
13
|
renderToString(element).replaceAll("<!-- -->", "");
|
|
17
14
|
|
|
18
15
|
describe("search-conversion copy", () => {
|
|
19
|
-
it("names the folder a scoped search is kept out of the filter for", () => {
|
|
20
|
-
assert.match(scopedOutCopy("Archive"), /limited to Archive/);
|
|
21
|
-
assert.match(scopedOutCopy("Archive"), /any folder/i);
|
|
22
|
-
});
|
|
23
|
-
|
|
24
16
|
it("names one dropped facet in the singular", () => {
|
|
25
17
|
const copy = droppedFacetsCopy(["Has attachment"]);
|
|
26
18
|
assert.match(copy, /Has attachment isn't a filter condition/);
|
|
@@ -32,33 +24,6 @@ describe("search-conversion copy", () => {
|
|
|
32
24
|
assert.match(copy, /Has attachment, Unread and Before 2026 aren't/);
|
|
33
25
|
});
|
|
34
26
|
|
|
35
|
-
it("states the filter is literal-only and the reach is not carried", () => {
|
|
36
|
-
assert.match(DROPPED_SEMANTIC_COPY, /matches these words literally/i);
|
|
37
|
-
// Never claims the filter itself matches by meaning.
|
|
38
|
-
assert.match(DROPPED_SEMANTIC_COPY, /a filter can't carry that/i);
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
it("has nothing to say when nothing was dropped", () => {
|
|
42
|
-
assert.equal(hasConversionNotice({}), false);
|
|
43
|
-
assert.equal(hasConversionNotice({ droppedSemantic: false }), false);
|
|
44
|
-
assert.equal(hasConversionNotice({ droppedFacets: [] }), false);
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
it("has something to say for any single drop", () => {
|
|
48
|
-
assert.equal(hasConversionNotice({ scopedOutFolder: "Archive" }), true);
|
|
49
|
-
assert.equal(hasConversionNotice({ droppedFacets: ["Unread"] }), true);
|
|
50
|
-
assert.equal(hasConversionNotice({ droppedSemantic: true }), true);
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
it("names the facets a chip-composed query is made of, not just the gap", () => {
|
|
54
|
-
const copy = makeFilterBlockedCopy(["Unread", "Category: Newsletter"]);
|
|
55
|
-
assert.match(
|
|
56
|
-
copy,
|
|
57
|
-
/Unread and Category: Newsletter aren't filter conditions/,
|
|
58
|
-
);
|
|
59
|
-
assert.match(copy, /add a sender or words to filter on/);
|
|
60
|
-
});
|
|
61
|
-
|
|
62
27
|
it("reads singular for one facet", () => {
|
|
63
28
|
assert.match(
|
|
64
29
|
makeFilterBlockedCopy(["Unread"]),
|
|
@@ -75,23 +40,6 @@ describe("search-conversion copy", () => {
|
|
|
75
40
|
});
|
|
76
41
|
|
|
77
42
|
describe("SearchConversionNoticeView", () => {
|
|
78
|
-
it("renders every drop the conversion recorded", () => {
|
|
79
|
-
const html = render(
|
|
80
|
-
createElement(SearchConversionNoticeView, {
|
|
81
|
-
notice: {
|
|
82
|
-
scopedOutFolder: "Archive",
|
|
83
|
-
droppedFacets: ["Has attachment"],
|
|
84
|
-
droppedSemantic: true,
|
|
85
|
-
},
|
|
86
|
-
}),
|
|
87
|
-
);
|
|
88
|
-
assert.match(html, /From your search/);
|
|
89
|
-
assert.match(html, /limited to Archive/);
|
|
90
|
-
assert.match(html, /Has attachment/);
|
|
91
|
-
assert.match(html, /left out/);
|
|
92
|
-
assert.match(html, /matches these words literally/i);
|
|
93
|
-
});
|
|
94
|
-
|
|
95
43
|
it("renders nothing when there is nothing to state", () => {
|
|
96
44
|
const html = render(
|
|
97
45
|
createElement(SearchConversionNoticeView, { notice: {} }),
|