Skip to content

Commit

Permalink
disable animations
Browse files Browse the repository at this point in the history
  • Loading branch information
Kr0nox committed Jun 27, 2024
1 parent c5334de commit 5fee912
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ const options = computed(() => {
}
}
},
animation: false as false,
plugins: {
datalabels: {
color: graphColors.ticksAndFont.value,
Expand Down
4 changes: 2 additions & 2 deletions report-viewer/tests/e2e/Distribution.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ test('Test distribution diagram', async ({ page }) => {
await uploadFile('progpedia-report.zip', page)

const options = getTestCombinations()
selectOptions(page, options[0])
await selectOptions(page, options[0])
const canvas = page.locator('canvas').first()
let lastImage = await canvas.screenshot()
for (const option of options.slice(1)) {
Expand All @@ -30,7 +30,7 @@ async function selectOptions(page: Page, options: string[]) {
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)
await page.waitForTimeout(100)
}

function getTestCombinations() {
Expand Down

0 comments on commit 5fee912

Please sign in to comment.