Skip to content

Commit

Permalink
Revert "Make email a required field in the onboarding flow (#2814)" (#…
Browse files Browse the repository at this point in the history
…2858)

This reverts commit 616d55d.
  • Loading branch information
jrhizor committed Apr 12, 2021
1 parent e11ccfd commit ea21c34
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
4 changes: 1 addition & 3 deletions airbyte-e2e-testing/cypress/integration/onboarding.spec.js
Expand Up @@ -3,9 +3,7 @@ describe("Onboarding actions", () => {
cy.visit("/");
cy.url().should("include", `${Cypress.config().baseUrl}/preferences`);

cy.fillEmail("test-email-onboarding@test-onboarding-domain.com");
cy.get("input[name=securityUpdates]").parent().click();

// cy.fillEmail("");
cy.submit();

cy.url().should("include", `${Cypress.config().baseUrl}/onboarding`);
Expand Down
Expand Up @@ -57,7 +57,7 @@ const Text = styled.div`
`;

const preferencesValidationSchema = yup.object().shape({
email: yup.string().email("form.email.error").required("form.empty.error"),
email: yup.string().email("form.email.error"),
});

const PreferencesForm: React.FC<PreferencesFormProps> = ({
Expand Down Expand Up @@ -100,7 +100,7 @@ const PreferencesForm: React.FC<PreferencesFormProps> = ({
{({ field, meta }: FieldProps<string>) => (
<LabeledInput
{...field}
label={<FormattedMessage id="form.yourEmail" />}
label={<FormattedMessage id="form.emailOptional" />}
placeholder={formatMessage({
id: "form.email.placeholder",
})}
Expand All @@ -113,9 +113,6 @@ const PreferencesForm: React.FC<PreferencesFormProps> = ({
}
onChange={(event) => {
handleChange(event);
if (isEdit) {
return;
}
if (
field.value.length === 0 &&
event.target.value.length > 0
Expand Down
2 changes: 1 addition & 1 deletion airbyte-webapp/src/locales/en.json
Expand Up @@ -11,7 +11,7 @@
"sidebar.settings": "Settings",

"form.continue": "Continue",
"form.yourEmail": "Your email",
"form.emailOptional": "Your email (optional)",
"form.email.placeholder": "you@company.com",
"form.email.error": "This email address doesn’t seem correct.",
"form.empty.error": "Empty field",
Expand Down

0 comments on commit ea21c34

Please sign in to comment.