Skip to content

Commit

Permalink
[IA-5073] Fix a11y issue with clicking on a non-focusable element. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
cahrens committed Sep 27, 2024
1 parent 627060b commit bce8cd7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion integration-tests/tests/run-analysis-azure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const testRunAnalysisAzure = _.flowRight(
await waitForNoModal(page);

// Navigate to analysis launcher
await click(page, `//*[@title="${notebookName}.ipynb"]`);
await click(page, clickable({ textContains: `${notebookName}.ipynb` }));
await dismissInfoNotifications(page);
await findText(page, 'PREVIEW (READ-ONLY)');
await waitForNoSpinners(page);
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/tests/run-analysis.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const testRunAnalysisFn = _.flowRight(
await waitForNoModal(page);

// Navigate to analysis launcher
await click(page, `//*[@title="${notebookName}.ipynb"]`);
await click(page, clickable({ textContains: `${notebookName}.ipynb` }));
await dismissInfoNotifications(page);
await findText(page, 'PREVIEW (READ-ONLY)');
await waitForNoSpinners(page);
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/tests/run-rstudio.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const testRunRStudioFn = _.flowRight(
await waitForNoModal(page);

// Navigate to analysis launcher
await click(page, `//*[@title="${rFileName}.Rmd"]`);
await click(page, clickable({ textContains: `${rFileName}.Rmd` }));
await dismissInfoNotifications(page);
await findText(page, 'PREVIEW (READ-ONLY)');
await waitForNoSpinners(page);
Expand Down
4 changes: 2 additions & 2 deletions src/analysis/Analyses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,10 +317,10 @@ const AnalysisCard = ({
]
);

const launchAnalysis = () => Nav.goToPath(analysisLauncherTabName, { namespace, name: workspaceName, analysisName });
// the flex values for columns here correspond to the flex values in the header
const artifactName = div(
{
onClick: () => Nav.goToPath(analysisLauncherTabName, { namespace, name: workspaceName, analysisName }),
title: getFileName(name),
role: 'cell',
style: {
Expand All @@ -331,7 +331,7 @@ const AnalysisCard = ({
...centerColumnFlex,
},
},
[getFileName(name)]
[h(Clickable, { onClick: launchAnalysis }, [getFileName(name)])]
);

const toolLogos: Record<RuntimeToolLabel, string> = {
Expand Down

0 comments on commit bce8cd7

Please sign in to comment.