Skip to content

Commit

Permalink
Merge pull request #10 from patternfly/os-9347
Browse files Browse the repository at this point in the history
merge OS PR 9347
  • Loading branch information
jschuler authored Jul 2, 2021
2 parents f736d6a + 580e984 commit b0604be
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/dev/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"serve": "serve public"
},
"dependencies": {
"@patternfly/quickstarts": "1.0.0-rc.27",
"@patternfly/quickstarts": "1.0.0-rc.28",
"@patternfly/react-core": "^4.101.3",
"asciidoctor": "^2.2.1",
"react": "^16.14.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/module/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@patternfly/quickstarts",
"version": "1.0.0-rc.27",
"version": "1.0.0-rc.28",
"description": "PatternFly quick starts",
"files": [
"dist"
Expand Down
4 changes: 2 additions & 2 deletions packages/module/src/QuickStartCatalogPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const QuickStartCatalogEmptyState = ({ clearFilters }) => {
{getResource('No results match the filter criteria. Remove filters or clear all filters to show results.')}
</EmptyStateBody>
<EmptyStatePrimary>
<Button variant="link" onClick={clearFilters}>
<Button variant="link" onClick={clearFilters} data-test="clear-filter button">
{getResource('Clear all filters')}
</Button>
</EmptyStatePrimary>
Expand Down Expand Up @@ -119,7 +119,7 @@ export const QuickStartCatalogPage: React.FC<QuickStartCatalogPageProps> = ({
<>
{showTitle && (
<div className="ocs-page-layout__header">
<Text component="h1" className="ocs-page-layout__title">
<Text component="h1" className="ocs-page-layout__title" data-test="page-title">
{title || getResource('Quick Starts')}
</Text>
{hint && <div className="ocs-page-layout__hint">{hint}</div>}
Expand Down
3 changes: 2 additions & 1 deletion packages/module/src/QuickStartPanelContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ const QuickStartPanelContent: React.FC<QuickStartPanelContentProps> = ({
className="co-quick-start-panel-content"
data-testid={`qs-drawer-${camelize(quickStart.spec.displayName)}`}
data-qs={`qs-step-${getStep()}`}
data-test="quickstart drawer"
{...props}
>
<div className={`co-quick-start-panel-content-head ${headerClasses}`}>
Expand All @@ -100,7 +101,7 @@ const QuickStartPanelContent: React.FC<QuickStartPanelContentProps> = ({
)}
</DrawerHead>
</div>
<DrawerPanelBody hasNoPadding className="co-quick-start-panel-content__body">
<DrawerPanelBody hasNoPadding className="co-quick-start-panel-content__body" data-test="content">
<QuickStartController
quickStart={quickStart}
nextQuickStarts={nextQuickStarts}
Expand Down
1 change: 1 addition & 0 deletions packages/module/src/catalog/QuickStartTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ const QuickStartTile: React.FC<QuickStartTileProps> = ({
}
onClick();
}}
data-test={`tile ${id}`}
description={
<QuickStartTileDescription description={description} prerequisites={prerequisites} />
}
Expand Down
3 changes: 2 additions & 1 deletion packages/module/src/catalog/QuickStartTileHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const QuickStartTileHeader: React.FC<QuickStartTileHeaderProps> = ({

return (
<div className="co-quick-start-tile-header">
<Title headingLevel="h3">{name}</Title>
<Title headingLevel="h3" data-test="title">{name}</Title>
<div className="co-quick-start-tile-header__status">
{type && (
<Label className="co-quick-start-tile-header--margin" color={type.color}>
Expand All @@ -56,6 +56,7 @@ const QuickStartTileHeader: React.FC<QuickStartTileHeaderProps> = ({
variant="outline"
color={statusColorMap[status]}
icon={<StatusIcon status={status} />}
data-test="status"
>
{statusLocaleMap[status]}
</Label>
Expand Down
8 changes: 7 additions & 1 deletion packages/module/src/controller/QuickStartFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,13 @@ const QuickStartFooter: React.FC<QuickStartFooterProps> = ({

const getPrimaryButton = React.useMemo(
() => (
<Button variant="primary" className="co-quick-start-footer__actionbtn" onClick={onNext} data-testid={`qs-drawer-${camelize(getPrimaryButtonText)}`}>
<Button
variant="primary"
className="co-quick-start-footer__actionbtn"
onClick={onNext}
data-testid={`qs-drawer-${camelize(getPrimaryButtonText)}`}
data-test={`${getPrimaryButtonText} button`}
>
{getPrimaryButtonText}
</Button>
),
Expand Down

0 comments on commit b0604be

Please sign in to comment.