Verify seed users and change AppleCar password (#11825)
isEmailVerified was set to false which was annoying in the staging environment Also updated password for tim@apple.dev from AppleCar2025 to just tim@apple.dev since the joke is outdated
This commit is contained in:
@ -2,5 +2,5 @@
|
|||||||
FRONTEND_BASE_URL=http://localhost:3001
|
FRONTEND_BASE_URL=http://localhost:3001
|
||||||
BACKEND_BASE_URL=http://localhost:3000
|
BACKEND_BASE_URL=http://localhost:3000
|
||||||
DEFAULT_LOGIN=tim@apple.dev
|
DEFAULT_LOGIN=tim@apple.dev
|
||||||
DEFAULT_PASSWORD=Applecar2025
|
DEFAULT_PASSWORD=tim@apple.dev
|
||||||
WEBSITE_URL=https://twenty.com
|
WEBSITE_URL=https://twenty.com
|
||||||
@ -1,9 +1,9 @@
|
|||||||
import { RecoilRoot, useSetRecoilState } from 'recoil';
|
|
||||||
import { renderHook } from '@testing-library/react';
|
|
||||||
import { useSignInUpForm } from '@/auth/sign-in-up/hooks/useSignInUpForm';
|
import { useSignInUpForm } from '@/auth/sign-in-up/hooks/useSignInUpForm';
|
||||||
|
import { isDeveloperDefaultSignInPrefilledState } from '@/client-config/states/isDeveloperDefaultSignInPrefilledState';
|
||||||
|
import { renderHook } from '@testing-library/react';
|
||||||
import { ReactNode } from 'react';
|
import { ReactNode } from 'react';
|
||||||
import { MemoryRouter } from 'react-router-dom';
|
import { MemoryRouter } from 'react-router-dom';
|
||||||
import { isDeveloperDefaultSignInPrefilledState } from '@/client-config/states/isDeveloperDefaultSignInPrefilledState';
|
import { RecoilRoot, useSetRecoilState } from 'recoil';
|
||||||
|
|
||||||
describe('useSignInUpForm', () => {
|
describe('useSignInUpForm', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
@ -61,7 +61,7 @@ describe('useSignInUpForm', () => {
|
|||||||
expect(result.current.form.getValues()).toEqual({
|
expect(result.current.form.getValues()).toEqual({
|
||||||
exist: false,
|
exist: false,
|
||||||
email: 'test@test.com',
|
email: 'test@test.com',
|
||||||
password: 'Applecar2025',
|
password: 'tim@apple.dev',
|
||||||
captchaToken: '',
|
captchaToken: '',
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@ -59,7 +59,7 @@ export const useSignInUpForm = () => {
|
|||||||
|
|
||||||
if (isDeveloperDefaultSignInPrefilled === true) {
|
if (isDeveloperDefaultSignInPrefilled === true) {
|
||||||
form.setValue('email', prefilledEmail ?? 'tim@apple.dev');
|
form.setValue('email', prefilledEmail ?? 'tim@apple.dev');
|
||||||
form.setValue('password', 'Applecar2025');
|
form.setValue('password', 'tim@apple.dev');
|
||||||
}
|
}
|
||||||
}, [
|
}, [
|
||||||
form,
|
form,
|
||||||
|
|||||||
@ -23,6 +23,7 @@ export const seedUsers = async (
|
|||||||
'lastName',
|
'lastName',
|
||||||
'email',
|
'email',
|
||||||
'passwordHash',
|
'passwordHash',
|
||||||
|
'isEmailVerified',
|
||||||
])
|
])
|
||||||
.orIgnore()
|
.orIgnore()
|
||||||
.values([
|
.values([
|
||||||
@ -32,7 +33,8 @@ export const seedUsers = async (
|
|||||||
lastName: 'A',
|
lastName: 'A',
|
||||||
email: 'noah@demo.dev',
|
email: 'noah@demo.dev',
|
||||||
passwordHash:
|
passwordHash:
|
||||||
'$2b$10$66d.6DuQExxnrfI9rMqOg.U1XIYpagr6Lv05uoWLYbYmtK0HDIvS6', // Applecar2025
|
'$2b$10$3LwXjJRtLsfx4hLuuXhxt.3mWgismTiZFCZSG3z9kDrSfsrBl0fT6', // tim@apple.dev
|
||||||
|
isEmailVerified: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: DEMO_SEED_USER_IDS.HUGO,
|
id: DEMO_SEED_USER_IDS.HUGO,
|
||||||
@ -40,7 +42,8 @@ export const seedUsers = async (
|
|||||||
lastName: 'I',
|
lastName: 'I',
|
||||||
email: 'hugo@demo.dev',
|
email: 'hugo@demo.dev',
|
||||||
passwordHash:
|
passwordHash:
|
||||||
'$2b$10$66d.6DuQExxnrfI9rMqOg.U1XIYpagr6Lv05uoWLYbYmtK0HDIvS6', // Applecar2025
|
'$2b$10$3LwXjJRtLsfx4hLuuXhxt.3mWgismTiZFCZSG3z9kDrSfsrBl0fT6', // tim@apple.dev
|
||||||
|
isEmailVerified: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: DEMO_SEED_USER_IDS.TIM,
|
id: DEMO_SEED_USER_IDS.TIM,
|
||||||
@ -48,7 +51,8 @@ export const seedUsers = async (
|
|||||||
lastName: 'Apple',
|
lastName: 'Apple',
|
||||||
email: 'tim@apple.dev',
|
email: 'tim@apple.dev',
|
||||||
passwordHash:
|
passwordHash:
|
||||||
'$2b$10$66d.6DuQExxnrfI9rMqOg.U1XIYpagr6Lv05uoWLYbYmtK0HDIvS6', // Applecar2025
|
'$2b$10$3LwXjJRtLsfx4hLuuXhxt.3mWgismTiZFCZSG3z9kDrSfsrBl0fT6', // tim@apple.dev
|
||||||
|
isEmailVerified: true,
|
||||||
},
|
},
|
||||||
])
|
])
|
||||||
.execute();
|
.execute();
|
||||||
|
|||||||
@ -23,6 +23,7 @@ export const seedUsers = async (
|
|||||||
'passwordHash',
|
'passwordHash',
|
||||||
'canImpersonate',
|
'canImpersonate',
|
||||||
'canAccessFullAdminPanel',
|
'canAccessFullAdminPanel',
|
||||||
|
'isEmailVerified',
|
||||||
])
|
])
|
||||||
.orIgnore()
|
.orIgnore()
|
||||||
.values([
|
.values([
|
||||||
@ -32,9 +33,10 @@ export const seedUsers = async (
|
|||||||
lastName: 'Apple',
|
lastName: 'Apple',
|
||||||
email: 'tim@apple.dev',
|
email: 'tim@apple.dev',
|
||||||
passwordHash:
|
passwordHash:
|
||||||
'$2b$10$66d.6DuQExxnrfI9rMqOg.U1XIYpagr6Lv05uoWLYbYmtK0HDIvS6', // Applecar2025
|
'$2b$10$3LwXjJRtLsfx4hLuuXhxt.3mWgismTiZFCZSG3z9kDrSfsrBl0fT6', // tim@apple.dev
|
||||||
canImpersonate: true,
|
canImpersonate: true,
|
||||||
canAccessFullAdminPanel: true,
|
canAccessFullAdminPanel: true,
|
||||||
|
isEmailVerified: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: DEV_SEED_USER_IDS.JONY,
|
id: DEV_SEED_USER_IDS.JONY,
|
||||||
@ -42,9 +44,10 @@ export const seedUsers = async (
|
|||||||
lastName: 'Ive',
|
lastName: 'Ive',
|
||||||
email: 'jony.ive@apple.dev',
|
email: 'jony.ive@apple.dev',
|
||||||
passwordHash:
|
passwordHash:
|
||||||
'$2b$10$66d.6DuQExxnrfI9rMqOg.U1XIYpagr6Lv05uoWLYbYmtK0HDIvS6', // Applecar2025
|
'$2b$10$3LwXjJRtLsfx4hLuuXhxt.3mWgismTiZFCZSG3z9kDrSfsrBl0fT6', // tim@apple.dev
|
||||||
canImpersonate: true,
|
canImpersonate: true,
|
||||||
canAccessFullAdminPanel: true,
|
canAccessFullAdminPanel: true,
|
||||||
|
isEmailVerified: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: DEV_SEED_USER_IDS.PHIL,
|
id: DEV_SEED_USER_IDS.PHIL,
|
||||||
@ -52,9 +55,10 @@ export const seedUsers = async (
|
|||||||
lastName: 'Schiler',
|
lastName: 'Schiler',
|
||||||
email: 'phil.schiler@apple.dev',
|
email: 'phil.schiler@apple.dev',
|
||||||
passwordHash:
|
passwordHash:
|
||||||
'$2b$10$66d.6DuQExxnrfI9rMqOg.U1XIYpagr6Lv05uoWLYbYmtK0HDIvS6', // Applecar2025
|
'$2b$10$3LwXjJRtLsfx4hLuuXhxt.3mWgismTiZFCZSG3z9kDrSfsrBl0fT6', // tim@apple.dev
|
||||||
canImpersonate: true,
|
canImpersonate: true,
|
||||||
canAccessFullAdminPanel: true,
|
canAccessFullAdminPanel: true,
|
||||||
|
isEmailVerified: true,
|
||||||
},
|
},
|
||||||
])
|
])
|
||||||
.execute();
|
.execute();
|
||||||
|
|||||||
@ -13,7 +13,7 @@ ORIGIN.hostname =
|
|||||||
|
|
||||||
const auth = {
|
const auth = {
|
||||||
email: 'tim@apple.dev',
|
email: 'tim@apple.dev',
|
||||||
password: 'Applecar2025',
|
password: 'tim@apple.dev',
|
||||||
};
|
};
|
||||||
|
|
||||||
describe('AuthResolve (integration)', () => {
|
describe('AuthResolve (integration)', () => {
|
||||||
|
|||||||
@ -251,7 +251,7 @@ npx nx start
|
|||||||
**Frontend**
|
**Frontend**
|
||||||
|
|
||||||
Twenty's frontend will be running at [http://localhost:3001](http://localhost:3001).
|
Twenty's frontend will be running at [http://localhost:3001](http://localhost:3001).
|
||||||
You can log in using the default demo account: `tim@apple.dev` (password: `Applecar2025`)
|
You can log in using the default demo account: `tim@apple.dev` (password: `tim@apple.dev`)
|
||||||
|
|
||||||
**Backend**
|
**Backend**
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user