Deps Update, CSSNano, Sentry env (#210)

1. Update dependencies
2. Use cssnano for production
3. Assign an environment variable to Sentry's environment settings
4. `Pill` now accepts React Nodes so we can pass translations using Trans component
5. Switch to mailpit API during tests
6. Do not require Email Sender to be of type email and add proper error messages
This commit is contained in:
Giancarlo Buomprisco
2025-03-12 15:51:11 +07:00
committed by GitHub
parent bd723dccce
commit a45fda44cf
31 changed files with 1666 additions and 764 deletions

View File

@@ -144,10 +144,12 @@ test.describe('Admin', () => {
await page.getByTestId('admin-ban-account-button').click();
await page.fill('[placeholder="Type CONFIRM to confirm"]', 'CONFIRM');
await page.getByRole('button', { name: 'Ban User' }).click();
await expect(page.getByText('Banned')).toBeVisible();
// Now reactivate
await page.getByTestId('admin-reactivate-account-button').click();
await expect(
page.getByRole('heading', { name: 'Reactivate User' }),
).toBeVisible();
@@ -323,28 +325,30 @@ async function createUser(
} = {},
) {
const auth = new AuthPageObject(page);
const password = 'testingpassword';
const email = auth.createRandomEmail();
// sign up
await page.goto('/auth/sign-up');
const email = `${(Math.random() * 1000000).toFixed(0)}@makerkit.dev`;
await auth.signUp({
email,
password: 'testingpassword',
repeatPassword: 'testingpassword',
password,
repeatPassword: password,
});
// confirm email
await auth.visitConfirmEmailLink(email);
await page.goto('/home');
if (params.afterSignIn) {
await params.afterSignIn();
}
// sign out
await auth.signOut();
await page.waitForURL('/');
// return the email
return email;
}