Skip to content

Commit

Permalink
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 f95e903
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 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
3 changes: 2 additions & 1 deletion src/analysis/Analyses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ 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(
{
Expand All @@ -331,7 +332,7 @@ const AnalysisCard = ({
...centerColumnFlex,
},
},
[getFileName(name)]
[h(Clickable, { onClick: launchAnalysis }, [getFileName(name)])]
);

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

0 comments on commit f95e903

Please sign in to comment.