Email in lower case
MODIFY
test/factories/TenantFactory.ts
test/factories/TenantFactory.ts
@@ -3,7 +3,7 @@ import faker from 'faker';
export default Factory.define('tenant')
.attr('name', () => faker.company.companyName())
- .attr('email', () => faker.internet.email())
+ .attr('email', () => faker.internet.email().toLowerCase())
.attr('subdomain', () => faker.random.alphaNumeric(10).toLowerCase())
.attr('address', {
address1: faker.address.streetAddress(false),

MODIFY
test/factories/UserFactory.ts
test/factories/UserFactory.ts
@@ -39,7 +39,7 @@ const userFactory = Factory.define('user')
const registerUserFactory = Factory.define('user')
.attr('firstName', () => faker.name.firstName())
.attr('name', () => faker.name.lastName())
- .attr('email', () => faker.internet.email())
+ .attr('email', () => faker.internet.email().toLowerCase())
.attr('password', () => faker.internet.password() + '@1Aa')
.attr('acceptEula', true)
.attr('locale', 'en_US')

Email in lower case