Skip to content

Commit

Permalink
Merge pull request #6951 from dtaylor113/a11y-violation-fixes
Browse files Browse the repository at this point in the history
Bug 1888985: Fix Cypress test flake and accesibility violation: 'Ensures buttons have discernible text'
  • Loading branch information
openshift-merge-robot committed Oct 19, 2020
2 parents 499c423 + df84112 commit 104774f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -16,4 +16,5 @@
/frontend/npm-debug.log
/frontend/yarn-error.log
/frontend/gui_test_screenshots
/frontend/packages/integration-tests-cypress/cypress-a11y-report.json
/frontend/@types
Expand Up @@ -118,6 +118,7 @@ describe('Kubernetes resource CRUD operations', () => {

it('displays detail view for newly created resource instance', () => {
cy.url().should('include', `/${name}`);
detailsPage.isLoaded();
detailsPage.titleShouldContain(name);
cy.testA11y(`Details page for ${kind}: ${name}`);
});
Expand Down
Expand Up @@ -12,6 +12,7 @@ export const detailsPage = {
.contains(action)
.click();
},
isLoaded: () => cy.byTestID('skeleton-detail-view').should('not.exist'),
};

export namespace DetailsPageSelector {
Expand Down
2 changes: 1 addition & 1 deletion frontend/public/components/utils/field-level-help.tsx
Expand Up @@ -8,7 +8,7 @@ export const FieldLevelHelp: React.FC<FieldLevelHelpProps> = React.memo(({ child
}
return (
<Popover aria-label="Help" bodyContent={children} enableFlip>
<Button variant="link" isInline className="co-field-level-help">
<Button aria-label="Help" variant="link" isInline className="co-field-level-help">
<QuestionCircleIcon className="co-field-level-help__icon" />
</Button>
</Popover>
Expand Down
2 changes: 1 addition & 1 deletion frontend/public/components/utils/horizontal-nav.tsx
Expand Up @@ -182,7 +182,7 @@ export const HorizontalNav = React.memo((props: HorizontalNavProps) => {
const content = <Switch> {routes} </Switch>;

const skeletonDetails = (
<div className="skeleton-detail-view">
<div data-test="skeleton-detail-view" className="skeleton-detail-view">
<div className="skeleton-detail-view--head" />
<div className="skeleton-detail-view--grid">
<div className="skeleton-detail-view--column">
Expand Down

0 comments on commit 104774f

Please sign in to comment.