Skip to content

Conversation

@ludanin
Copy link
Member

@ludanin ludanin commented Sep 17, 2020

No description provided.

@vercel
Copy link

vercel bot commented Sep 17, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/votebymail/build/kbekmn3bg
✅ Preview: https://build-git-feature-faxloadtesting.votebymail.vercel.app

Copy link
Contributor

@tianhuil tianhuil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few small tweaks

@@ -1,3 +1,6 @@
// To test this script for faxes run it using --faxes on the CLI, or by
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't want to send actual emails or faxes during the test. Is there a way to prevent this or to mock what gets sent?

@tianhuil tianhuil assigned ludanin and unassigned tianhuil Sep 18, 2020
const letter = new Letter(info, method, id, resendReasonAndOriginalDate)
const pdfBuffer = await toPdfBuffer(letter.render('html'), await letter.form)
const isResend = resendReasonAndOriginalDate !== undefined
// When performing signups for DIVERT_EMAIL we don't send emails or faxes
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is wrong -- we use DIVERT_FAX_NUMBER and DIVERT_EMAIL separately. Let's stick to using that logic.

I don't think we should be editing signup.ts very much for this.

@tianhuil tianhuil assigned ludanin and unassigned tianhuil Sep 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants