mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-25 02:00:10 +02:00
Merge pull request #10020 from overleaf/sg-account-delete-case-sensitivity
[web] email in leave modal should be case insensitive GitOrigin-RevId: 250e867f88dd76769a27a8cd61dd82625c1e151f
This commit is contained in:
@@ -64,7 +64,7 @@ function LeaveModalForm({
|
||||
useEffect(() => {
|
||||
setIsFormValid(
|
||||
!!email &&
|
||||
email === userDefaultEmail &&
|
||||
email.toLowerCase() === userDefaultEmail.toLowerCase() &&
|
||||
password.length > 0 &&
|
||||
confirmation
|
||||
)
|
||||
|
||||
@@ -28,7 +28,7 @@ describe('<LeaveModalForm />', function () {
|
||||
)
|
||||
|
||||
const emailInput = screen.getByLabelText('Email')
|
||||
fireEvent.change(emailInput, { target: { value: 'foo@bar.com' } })
|
||||
fireEvent.change(emailInput, { target: { value: 'FOO@bar.com' } })
|
||||
|
||||
const passwordInput = screen.getByLabelText('Password')
|
||||
fireEvent.change(passwordInput, { target: { value: 'foobar' } })
|
||||
|
||||
Reference in New Issue
Block a user