From d8908b9e26c9a8875955bfd2a2b8720984b22890 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5kon=20Flatval?= <70905152+haakonflatval-cognite@users.noreply.github.com> Date: Fri, 18 Oct 2024 14:15:16 +0200 Subject: [PATCH] chore: remove toolbar visual test (#4812) --- .../tests/visual-tests/Toolbar.stories.spec.ts | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 react-components/tests/visual-tests/Toolbar.stories.spec.ts diff --git a/react-components/tests/visual-tests/Toolbar.stories.spec.ts b/react-components/tests/visual-tests/Toolbar.stories.spec.ts deleted file mode 100644 index ada220eb531..00000000000 --- a/react-components/tests/visual-tests/Toolbar.stories.spec.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { test, expect } from '@playwright/test'; -import { loadStory } from './utils/loadStory'; - -test('cad model container storybook', async ({ page }) => { - await loadStory(page, 'example-toolbar'); - - await page.locator('button[aria-label="Fit camera to models"]').first().click(); - await page.locator('button[aria-label="Slice models"]').first().click(); - - // Wait for the camera to move - await new Promise((resolve) => setTimeout(resolve, 2100)); - - await expect(page).toHaveScreenshot(); -});