From 06318d8cf76aaef112601b5d2cbe239d93dde1b8 Mon Sep 17 00:00:00 2001 From: Andrea Vesterhus Date: Wed, 26 Jun 2024 10:57:23 +0200 Subject: [PATCH] fix: browser window + alert --- e2e/tests/plugin-explorer.spec.ts | 2 +- e2e/tests/plugin-list-task_list.spec.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/e2e/tests/plugin-explorer.spec.ts b/e2e/tests/plugin-explorer.spec.ts index e985f4e5c..036a58dfd 100644 --- a/e2e/tests/plugin-explorer.spec.ts +++ b/e2e/tests/plugin-explorer.spec.ts @@ -4,7 +4,7 @@ test.describe.configure({ mode: 'serial' }) test.beforeEach(async ({ page, browser }) => { browser.newContext({ - viewport: { width: 1920, height: 1024 }, + viewport: { width: 1920, height: 1800 }, }) await page.goto('http://localhost:3000/') await page.getByRole('button', { name: 'data source DemoDataSource' }).click() diff --git a/e2e/tests/plugin-list-task_list.spec.ts b/e2e/tests/plugin-list-task_list.spec.ts index 07f86e3c8..8c3d118fc 100644 --- a/e2e/tests/plugin-list-task_list.spec.ts +++ b/e2e/tests/plugin-list-task_list.spec.ts @@ -54,7 +54,6 @@ test('task list', async ({ page }) => { ).toHaveValue('Wash the car') await contentWrapper.getByText('Mark task as complete').click() await contentWrapper.getByRole('button', { name: 'Submit' }).click() - await expect(page.getByRole('alert')).toHaveText(['Document updated']) await page.getByLabel('Close task_list').click() await page.getByTestId('task_list').getByLabel('Open in tab').click() await page