From d7eb8806b18e5a3956d22d212fd724d127220f4a Mon Sep 17 00:00:00 2001 From: Roar Larsen Date: Tue, 9 Jan 2024 10:20:13 +0100 Subject: [PATCH 1/2] fix: checking if problem still exists --- ...-form-model_uncontained-complex_attribute.spec.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/e2e/tests/plugin-form-model_uncontained-complex_attribute.spec.ts b/e2e/tests/plugin-form-model_uncontained-complex_attribute.spec.ts index 815fd9827..6bc4a9f15 100644 --- a/e2e/tests/plugin-form-model_uncontained-complex_attribute.spec.ts +++ b/e2e/tests/plugin-form-model_uncontained-complex_attribute.spec.ts @@ -49,11 +49,11 @@ test('Model uncontained complex attribute', async ({ page }) => { await expect(page.getByRole('tab', { name: 'captain' })).toBeVisible() await expect(page.getByRole('code')).toBeVisible() await page.getByRole('button', { name: 'Edit' }).nth(1).click() - // await expect(page.getByTestId('form-text-widget-name').nth(1)).toHaveValue( - // 'Barbossa' - // ) - // await expect( - // page.getByTestId('form-number-widget-Phone Number (optional)') - // ).toHaveValue('12345678') + await expect(page.getByTestId('form-text-widget-name').nth(1)).toHaveValue( + 'Barbossa' + ) + await expect( + page.getByTestId('form-number-widget-Phone Number (optional)') + ).toHaveValue('12345678') }) }) From e73895388d98dca0fa49ff7c6d82acb2b2436643 Mon Sep 17 00:00:00 2001 From: Roar Larsen Date: Tue, 9 Jan 2024 10:40:20 +0100 Subject: [PATCH 2/2] fix: update assertions --- .../plugin-form-model_uncontained-complex_attribute.spec.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/e2e/tests/plugin-form-model_uncontained-complex_attribute.spec.ts b/e2e/tests/plugin-form-model_uncontained-complex_attribute.spec.ts index 6bc4a9f15..fe89b1983 100644 --- a/e2e/tests/plugin-form-model_uncontained-complex_attribute.spec.ts +++ b/e2e/tests/plugin-form-model_uncontained-complex_attribute.spec.ts @@ -49,11 +49,9 @@ test('Model uncontained complex attribute', async ({ page }) => { await expect(page.getByRole('tab', { name: 'captain' })).toBeVisible() await expect(page.getByRole('code')).toBeVisible() await page.getByRole('button', { name: 'Edit' }).nth(1).click() - await expect(page.getByTestId('form-text-widget-name').nth(1)).toHaveValue( - 'Barbossa' - ) + await expect(page.getByRole('textbox')).toHaveValue('Barbossa') await expect( - page.getByTestId('form-number-widget-Phone Number (optional)') + page.getByTestId('form-number-widget-Phone Number (Optional)') ).toHaveValue('12345678') }) })