Skip to content

Commit

Permalink
fix: update text field reference, update unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shawn320 committed May 25, 2023
1 parent d578522 commit 5ca61ea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/components/AccordionForm/AccordionForm.stories.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";
import { AccordionForm } from "./AccordionForm";
import { TextField } from "../FormTextField/FormTextField";
import { FormTextField } from "../FormTextField/FormTextField";

export default {
title: "Components/AccordionForm",
Expand Down Expand Up @@ -47,7 +47,7 @@ const Template = () => {
buttonOnChange: customOnNext,
children: [
<div>
<TextField
<FormTextField
dataTestId="textbox-uncontrolled"
helpText="Help text that is always visible under the label to provide users with primary information needed to fill in the form field. Limit of 2 sentences"
id="textField1"
Expand All @@ -70,7 +70,7 @@ const Template = () => {
title: "Income",
children: [
<div>
<TextField
<FormTextField
dataTestId="textbox-uncontrolled"
helpText="Help text that is always visible under the label to provide users with primary information needed to fill in the form field. Limit of 2 sentences"
id="textField1"
Expand All @@ -95,7 +95,7 @@ const Template = () => {
title: "Residency",
children: [
<div>
<TextField
<FormTextField
dataTestId="textbox-uncontrolled"
helpText="Help text that is always visible under the label to provide users with primary information needed to fill in the form field. Limit of 2 sentences"
id="textField1"
Expand All @@ -121,7 +121,7 @@ const Template = () => {
title: "Marital Status",
children: [
<div>
<TextField
<FormTextField
dataTestId="textbox-uncontrolled"
helpText="Help text that is always visible under the label to provide users with primary information needed to fill in the form field. Limit of 2 sentences"
id="textField1"
Expand Down
4 changes: 2 additions & 2 deletions src/components/Stepper/Stepper.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Stepper } from "./Stepper";
import { FormDatePicker } from "../FormDatePicker/FormDatePicker";
import { FormRadioButton } from "../FormRadioButton/FormRadioButton";
import { Collapse } from "../Collapse/Collapse";
import { TextField } from "../TextField/TextField";
import { FormTextField } from "../FormTextField/FormTextField";

export default {
title: "Components/Stepper",
Expand Down Expand Up @@ -90,7 +90,7 @@ const step2 = [
</p>
</Collapse>
<div className="ds-w-48">
<TextField
<FormTextField
dataTestId="textbox-controlled"
label=""
id="textField1"
Expand Down

0 comments on commit 5ca61ea

Please sign in to comment.