diff --git a/package.json b/package.json index 6c6f3dcb8..c134343a0 100644 --- a/package.json +++ b/package.json @@ -83,7 +83,7 @@ }, "devDependencies": { "@faker-js/faker": "^8.0.2", - "@playwright/test": "^1.31.2", + "@playwright/test": "1.31.2", "@storybook/addon-a11y": "^6.5.16", "@storybook/addon-actions": "^6.5.16", "@storybook/addon-essentials": "^6.5.16", diff --git a/src/pages/steps/LocationStep.tsx b/src/pages/steps/LocationStep.tsx index 6a83968df..0ca07a1f6 100644 --- a/src/pages/steps/LocationStep.tsx +++ b/src/pages/steps/LocationStep.tsx @@ -268,7 +268,6 @@ export const BlankStreetToggle = ({ return ( @@ -708,14 +707,16 @@ const LocationStep = ({ t('location.add_modal.errors.streetAndNumber') } info={ - - onFieldChange({ - streetAndNumber, - location: { streetAndNumber }, - }) - } - /> + scope === ScopeTypes.ORGANIZERS && ( + + onFieldChange({ + streetAndNumber, + location: { streetAndNumber }, + }) + } + /> + ) } /> diff --git a/src/test/e2e/create-place.spec.ts b/src/test/e2e/create-place.spec.ts index d255f532a..6c99e2671 100644 --- a/src/test/e2e/create-place.spec.ts +++ b/src/test/e2e/create-place.spec.ts @@ -51,6 +51,7 @@ test('create a place', async ({ baseURL, page }) => { await page .getByRole('option', { name: dummyPlace.address.municipality }) .click(); + await expect(page.getByLabel('blank_address')).not.toBeVisible(); await page.getByLabel('Straat en nummer').nth(0).click(); await page .getByLabel('Straat en nummer') diff --git a/yarn.lock b/yarn.lock index 374157541..fbcfce1f3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1767,7 +1767,7 @@ tiny-glob "^0.2.9" tslib "^2.4.0" -"@playwright/test@^1.31.2": +"@playwright/test@1.31.2": version "1.31.2" resolved "https://registry.yarnpkg.com/@playwright/test/-/test-1.31.2.tgz#426d8545143a97a6fed250a2a27aa1c8e5e2548e" integrity sha512-BYVutxDI4JeZKV1+ups6dt5WiqKhjBtIYowyZIJ3kBDmJgsuPKsqqKNIMFbUePLSCmp2cZu+BDL427RcNKTRYw==