@remit/ui 0.0.207 → 0.0.208
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
|
@@ -137,3 +137,22 @@ export const SmtpMissing: Story = {
|
|
|
137
137
|
},
|
|
138
138
|
},
|
|
139
139
|
};
|
|
140
|
+
|
|
141
|
+
export const MailOff: Story = {
|
|
142
|
+
name: "Blocked — mail is off for this account",
|
|
143
|
+
args: {
|
|
144
|
+
send: {
|
|
145
|
+
status: "blocked",
|
|
146
|
+
reason:
|
|
147
|
+
"Mail is turned off for this account, so it cannot send. Turn Mail back on for this account in Settings to send from it.",
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
play: async ({ args, canvasElement }) => {
|
|
151
|
+
const canvas = within(canvasElement);
|
|
152
|
+
await userEvent.click(canvas.getByRole("button", { name: "Send" }));
|
|
153
|
+
await expect(args.onBlocked).toHaveBeenCalledWith(
|
|
154
|
+
"Mail is turned off for this account, so it cannot send. Turn Mail back on for this account in Settings to send from it.",
|
|
155
|
+
);
|
|
156
|
+
await expect(args.onSend).not.toHaveBeenCalled();
|
|
157
|
+
},
|
|
158
|
+
};
|