From 46ab04bce6664bd46c90be6dab9856ce875bf764 Mon Sep 17 00:00:00 2001 From: LightOfHeaven1994 Date: Fri, 31 Mar 2023 16:39:07 +0200 Subject: [PATCH] Add OUIA IDs for some components testing page --- .../react-core/src/components/Alert/examples/Alert.md | 10 +++++----- .../components/Breadcrumb/examples/BreadcrumbBasic.tsx | 2 +- .../components/Button/examples/ButtonVariations.tsx | 8 ++++---- .../src/components/Card/examples/CardBasic.tsx | 2 +- .../src/components/Dropdown/examples/DropdownBasic.tsx | 1 + .../components/FormSelect/examples/FormSelectBasic.tsx | 2 +- .../src/components/Modal/examples/ModalBasic.tsx | 3 ++- .../src/components/Nav/examples/NavDefault.tsx | 2 +- .../components/Pagination/examples/PaginationTop.tsx | 1 + .../src/components/Select/examples/Select.md | 1 + .../src/components/Switch/examples/SwitchBasic.tsx | 1 + .../ContextSelector/examples/ContextSelectorBasic.tsx | 1 + .../components/OptionsMenu/examples/OptionsMenu.md | 3 ++- .../src/components/Table/examples/TableSortable.tsx | 2 +- 14 files changed, 23 insertions(+), 16 deletions(-) diff --git a/packages/react-core/src/components/Alert/examples/Alert.md b/packages/react-core/src/components/Alert/examples/Alert.md index 5aaf0bbab29..1a954845aa8 100644 --- a/packages/react-core/src/components/Alert/examples/Alert.md +++ b/packages/react-core/src/components/Alert/examples/Alert.md @@ -32,11 +32,11 @@ import React from 'react'; import { Alert } from '@patternfly/react-core'; - - - - - + + + + + ``` diff --git a/packages/react-core/src/components/Breadcrumb/examples/BreadcrumbBasic.tsx b/packages/react-core/src/components/Breadcrumb/examples/BreadcrumbBasic.tsx index d5d6c0f3e60..d7cdc3c9593 100644 --- a/packages/react-core/src/components/Breadcrumb/examples/BreadcrumbBasic.tsx +++ b/packages/react-core/src/components/Breadcrumb/examples/BreadcrumbBasic.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { Breadcrumb, BreadcrumbItem } from '@patternfly/react-core'; export const BreadcrumbBasic: React.FunctionComponent = () => ( - + Section home Section title Section title diff --git a/packages/react-core/src/components/Button/examples/ButtonVariations.tsx b/packages/react-core/src/components/Button/examples/ButtonVariations.tsx index a8693012911..1eef9ff07ff 100644 --- a/packages/react-core/src/components/Button/examples/ButtonVariations.tsx +++ b/packages/react-core/src/components/Button/examples/ButtonVariations.tsx @@ -7,12 +7,12 @@ import CopyIcon from '@patternfly/react-icons/dist/esm/icons/copy-icon'; export const ButtonVariations: React.FunctionComponent = () => ( - {' '} - {' '} + {' '} - {' '} - + {' '} +

{ Cancel ]} + ouiaId="BasicModal" > Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo diff --git a/packages/react-core/src/components/Nav/examples/NavDefault.tsx b/packages/react-core/src/components/Nav/examples/NavDefault.tsx index 4b234d66085..da27d049e9f 100644 --- a/packages/react-core/src/components/Nav/examples/NavDefault.tsx +++ b/packages/react-core/src/components/Nav/examples/NavDefault.tsx @@ -9,7 +9,7 @@ export const NavDefault: React.FunctionComponent = () => { }; return ( -