From 00504b21127e6a741ec5c49b3de31a2a8cbd3a6a Mon Sep 17 00:00:00 2001 From: Andrea Vesterhus Date: Wed, 26 Jun 2024 11:18:32 +0200 Subject: [PATCH] fix: test scrolling in view --- e2e/tests/plugin-explorer.spec.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/e2e/tests/plugin-explorer.spec.ts b/e2e/tests/plugin-explorer.spec.ts index 036a58dfd..3f3d5908a 100644 --- a/e2e/tests/plugin-explorer.spec.ts +++ b/e2e/tests/plugin-explorer.spec.ts @@ -3,9 +3,6 @@ import { expect, test } from '@playwright/test' test.describe.configure({ mode: 'serial' }) test.beforeEach(async ({ page, browser }) => { - browser.newContext({ - viewport: { width: 1920, height: 1800 }, - }) await page.goto('http://localhost:3000/') await page.getByRole('button', { name: 'data source DemoDataSource' }).click() await page.getByRole('button', { name: 'root package plugins' }).click() @@ -47,6 +44,7 @@ test('Create entity with name', async ({ page }) => { await page .getByRole('button', { name: 'package Playwright', exact: true }) .click({ button: 'right' }) + await page.mouse.wheel(0, 300) await page.getByRole('menuitem', { name: 'New entity' }).click() const dialog = page.getByRole('dialog') await expect(dialog).toBeVisible()