Skip to content

Commit

Permalink
Merge pull request #6366 from Sage/pw_refactor_fieldset
Browse files Browse the repository at this point in the history
test(fieldset): playwright refactor
  • Loading branch information
stephenogorman authored Oct 25, 2023
2 parents 6428bb3 + 14b6397 commit ba19c7b
Show file tree
Hide file tree
Showing 6 changed files with 334 additions and 339 deletions.
280 changes: 0 additions & 280 deletions cypress/components/fieldset/fieldset.cy.tsx

This file was deleted.

6 changes: 0 additions & 6 deletions cypress/locators/fieldset/index.js

This file was deleted.

4 changes: 0 additions & 4 deletions cypress/locators/fieldset/locators.js

This file was deleted.

54 changes: 54 additions & 0 deletions src/components/fieldset/components.test-pw.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import React from "react";
import Fieldset from "./fieldset.component";
import { FieldsetProps } from "../../../src/components/fieldset";
import Textbox from "../textbox";
import Checkbox from "../checkbox/checkbox.component";

const FieldsetComponent = (props: FieldsetProps) => {
return (
<div>
<Fieldset legend="Fieldset" {...props}>
<Textbox
label="First Name"
labelInline
labelAlign="right"
labelWidth={30}
/>
<Textbox
label="Last Name"
labelInline
labelAlign="right"
labelWidth={30}
/>
<Textbox
label="Address"
labelInline
labelAlign="right"
labelWidth={30}
/>
<Checkbox
label="Checkbox"
labelAlign="right"
labelWidth={30}
labelSpacing={2}
reverse
/>
<Textbox label="City" labelInline labelAlign="right" labelWidth={30} />
<Textbox
label="Country"
labelInline
labelAlign="right"
labelWidth={30}
/>
<Textbox
label="Telephone"
labelInline
labelAlign="right"
labelWidth={30}
/>
</Fieldset>
</div>
);
};

export default FieldsetComponent;
Loading

0 comments on commit ba19c7b

Please sign in to comment.