Use email-signup instead of email-registration as path to match naming

This commit is contained in:
Jackson Harper
2022-07-19 13:02:28 -07:00
parent 38c469d7a2
commit d6a6b1de66
4 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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`)
}
}
)

View File

@ -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)

View File

@ -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)