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') }) })