Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP - Migrate Forms to Typescript #1810

Open
wants to merge 18 commits into
base: main
Choose a base branch
from
Open

Conversation

recondesigns
Copy link
Contributor

Description of changes

Migrating Form and Forms components to Typescript.

Issue Resolved

Fixes #NA

Screenshots/GIFs

Copy link

vercel bot commented Mar 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
operation-code ❌ Failed (Inspect) Mar 15, 2024 2:22pm
storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 15, 2024 2:22pm

Copy link

cypress bot commented Mar 14, 2024

Passing run #4697 ↗︎

0 25 0 0 Flakiness 0

Details:

Merge branch 'migrate-forms-typescript' of github.com:OperationCode/front-end in...
Project: operation_code Commit: 46b9a346cc
Status: Passed Duration: 03:02 💡
Started: Mar 15, 2024 2:24 PM Ended: Mar 15, 2024 2:27 PM

Review all test suite changes for PR #1810 ↗︎

@@ -59,7 +58,7 @@ describe('Select', () => {
const validate = () => ({ [fieldName]: 'Required' });

const { container, findByText } = render(
<Formik initialValues={{ [fieldName]: '' }} validate={validate}>
<Formik initialValues={{ [fieldName]: '' }} validate={validate} onSubmit={() => {}}>
Copy link
Contributor Author

@recondesigns recondesigns Mar 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having a hard time with this test (and the rest of the tests in the "interactions" suite).

I am getting the idea that the Alert is not being rendered in the test, so there is nothing for findByText('Required') to find?

components/Form/Checkbox/Checkbox.tsx Outdated Show resolved Hide resolved
components/Form/Checkbox/Checkbox.tsx Outdated Show resolved Hide resolved
components/Form/Checkbox/Checkbox.tsx Outdated Show resolved Hide resolved
@recondesigns recondesigns added the help wanted Our core team gave it their best attempt and couldn't figure it out. HALP! label Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Our core team gave it their best attempt and couldn't figure it out. HALP!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants