Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
d61c3af
add pwd field and resend
lane711 Mar 20, 2025
05128cc
add react email
lane711 Mar 20, 2025
1253d43
cleanup
lane711 Mar 20, 2025
f221df6
Merge branch 'main' into feature/password-otp
lane711 Mar 31, 2025
ca1842b
new password otp fields
lane711 Apr 1, 2025
953c772
create pasword otp fields
lane711 Apr 1, 2025
742a975
add otp email
lane711 Apr 1, 2025
eca2c09
email lookup
lane711 Apr 1, 2025
595f8e3
Merge branch 'main' into feature/password-otp
lane711 Apr 1, 2025
1c97380
email preview page
lane711 Apr 2, 2025
e08f185
response return cleanup
lane711 Apr 2, 2025
82b0472
email values
lane711 Apr 2, 2025
1dfd4f2
email sending
lane711 Apr 2, 2025
e15f64f
rm build
lane711 Apr 2, 2025
97d487e
remove node mailer
lane711 Apr 2, 2025
d274f57
to dark logo
lane711 Apr 4, 2025
5d2453d
email cleanup
lane711 Apr 4, 2025
ab90299
Merge branch 'main' into feature/password-otp
lane711 Apr 7, 2025
9e9c658
list emails
lane711 Apr 8, 2025
5cbd0ab
dynamically load email template
lane711 Apr 8, 2025
6ff899b
move to email template
lane711 Apr 8, 2025
f2944ea
otp template
lane711 Apr 9, 2025
d70d284
otp
lane711 Apr 9, 2025
4a7c5ad
Merge branch 'main' into feature/password-otp
lane711 May 8, 2025
354c588
remove
lane711 May 8, 2025
dce579b
new lock
lane711 May 8, 2025
4a515de
cleanup
lane711 May 8, 2025
fc9b626
Merge branch 'main' into feature/password-otp
lane711 May 8, 2025
9d55609
merge snapshots
lane711 May 8, 2025
2bd115e
snap
lane711 May 8, 2025
857f568
journal
lane711 May 8, 2025
aeb5404
otp email
lane711 May 8, 2025
9db9f8f
otp and welcome email updates
lane711 May 9, 2025
4b688ae
disable email service
lane711 May 13, 2025
304af52
email to new service
lane711 May 13, 2025
42c9b1b
build fix
lane711 May 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 80 additions & 0 deletions e2e/api-email.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
// import { test, expect } from "@playwright/test";
// import { purgeE2eTestData } from "@services/e2e";

// // Annotate entire file as serial.
// test.describe.configure({ mode: "serial" });

// const adminCredentials = {
// email: "[email protected]",
// password: "sonicjs!",
// };
// var token = "";

// test.beforeAll(async ({ request }) => {
// token = await loginAsAdmin(request);
// await cleanup(request, token);
// });

// async function loginAsAdmin(request) {
// const response = await request.post(`/api/v1/auth/login`, {
// data: adminCredentials,
// headers: {
// "Content-Type": "application/json",
// },
// });
// const { bearer } = await response.json();
// return bearer;
// }

// test("should allow admin to send email /api/v1/email", async ({ request }) => {
// const emailBody = {
// to: "[email protected]",
// subject: "Hello World",
// template: "magic-link",
// templateData: {
// otp: "123456",
// },
// };

// const responseLogout = await request.post(`/api/v1/email`, {
// headers: {
// "Content-Type": "application/json",
// Authorization: `Bearer ${token}`,
// },
// data: emailBody,
// });
// expect(responseLogout.status()).toBe(200);
// const { message } = await responseLogout.json();
// });

// test.afterEach(async ({ request }) => {
// await cleanup(request, token);
// });

// const cleanup = async (request, token) => {
// const response = await request.post(`/api/v1/test/e2e/cleanup`, {
// headers: {
// Authorization: `Bearer ${token}`,
// },
// });

// expect(response.status()).toBe(200);
// };

// const createTestUser = async (request, token) => {
// const response = await request.post(`/api/v1/users`, {
// headers: {
// Authorization: `Bearer ${token}`,
// },
// data: {
// data: {
// email: "[email protected]",
// password: "newpassword123abc",
// firstName: "Demo",
// lastName: "User",
// },
// },
// });

// return response;
// };
Loading
Loading