Skip to content

Commit

Permalink
deactivate pointer events on outer div
Browse files Browse the repository at this point in the history
  • Loading branch information
Kr0nox committed Apr 18, 2024
1 parent 89a7662 commit 876cfaa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions report-viewer/src/components/ToolTipComponent.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<template>
<div class="group inline">
<div ref="contentRef"><slot></slot></div>
<div class="group pointer-events-none inline">
<div ref="contentRef" class="pointer-events-auto"><slot></slot></div>
<span
class="invisible absolute box-border delay-0 group-hover:visible group-hover:delay-200"
ref="tooltipRef"
v-if="$slots.tooltip"
>
<span
class="arrowBase relative z-10 block rounded-md bg-tooltip px-1 text-center text-white after:absolute after:border-4 after:border-solid after:border-transparent"
class="arrowBase pointer-events-auto relative z-10 block rounded-md bg-tooltip px-1 text-center text-white after:absolute after:border-4 after:border-solid after:border-transparent"
:style="tooltipPosition"
:class="{
'after:top-1/2 after:-mt-1': props.direction == 'left' || props.direction == 'right',
Expand Down
2 changes: 1 addition & 1 deletion report-viewer/tests/e2e/Comparison.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ test('Test comparison table and comparsion view', async ({ page }) => {
const comparisonTableAverageSorted = await page.getByText(/Cluster[0-9]/).textContent()
expect(comparisonTableAverageSorted).toContain('100Purple FishBeige Dog')

await comparisonContainer.getByText('Maximum Similarity', { exact: true }).click({ force: true })
await comparisonContainer.getByText('Maximum Similarity', { exact: true }).click()
// check for elements in maximum similarity table
await page.getByPlaceholder('Filter/Unhide Comparisons').fill('Blue')
const comparisonTableMaxSorted = await page.getByText(/Cluster[0-9]/).textContent()
Expand Down
2 changes: 1 addition & 1 deletion report-viewer/tests/e2e/Distribution.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ test('Test distribution diagram', async ({ page }) => {
async function selectOptions(page: Page, options: string[]) {
const distributionDiagramContainer = page.getByText('Distribution of Comparisons:Options:')
for (const option of options) {
await distributionDiagramContainer.getByText(option, { exact: true }).click({ force: true })
await distributionDiagramContainer.getByText(option, { exact: true }).click()
}
// This timeout is so that the screenshot is taken after the animation is finished
await page.waitForTimeout(3000)
Expand Down

0 comments on commit 876cfaa

Please sign in to comment.