Use email-signup instead of email-registration as path to match naming
This commit is contained in:
@ -86,7 +86,7 @@ Open <http://localhost:3000> and confirm Omnivore is running
|
||||
Omnivore uses social login, but for testing there is an email + password
|
||||
option.
|
||||
|
||||
Go to <http://localhost:3000/email-registration> in your browser.
|
||||
Go to <http://localhost:3000/email-signup> in your browser.
|
||||
|
||||
|
||||
### Frontend Development
|
||||
|
||||
@ -452,14 +452,14 @@ export function authRouter() {
|
||||
if (data.signup.__typename === 'SignupError') {
|
||||
const errorCodes = data.signup.errorCodes.join(',')
|
||||
return res.redirect(
|
||||
`${env.client.url}/email-registration?errorCodes=${errorCodes}`
|
||||
`${env.client.url}/email-signup?errorCodes=${errorCodes}`
|
||||
)
|
||||
}
|
||||
|
||||
res.redirect(`${env.client.url}/email-login?message=SIGNUP_SUCCESS`)
|
||||
} catch (e) {
|
||||
logger.info('email-signup exception:', e)
|
||||
res.redirect(`${env.client.url}/email-registration?errorCodes=UNKNOWN`)
|
||||
res.redirect(`${env.client.url}/email-signup?errorCodes=UNKNOWN`)
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
@ -5,7 +5,7 @@ const fullName = 'Test User'
|
||||
|
||||
describe('Register with email', () => {
|
||||
it('creates a new user', function () {
|
||||
cy.visit('/email-registration')
|
||||
cy.visit('/email-signup')
|
||||
|
||||
cy.get('input[name=email]').type(email)
|
||||
cy.get('input[name=username]').type(username)
|
||||
|
||||
@ -16,7 +16,7 @@ Cypress.Commands.add('login', (email, password) => {
|
||||
})
|
||||
|
||||
Cypress.Commands.add('registerEmail', (email, username, password, fullName) => {
|
||||
cy.visit('/email-registration')
|
||||
cy.visit('/email-signup')
|
||||
|
||||
cy.get('input[name=email]').type(email)
|
||||
cy.get('input[name=username]').type(username)
|
||||
|
||||
Reference in New Issue
Block a user