async def METHOD_NAME(self):
    @sync_to_async
    def setUpTestData():
        # set up a form
        return FormFactory.create(
            name="Form Test",
            name_nl="Formulier Test",
            generate_minimal_setup=True,
            formstep__form_definition__configuration={"components": []},
        )
    await create_superuser()
    form = await setUpTestData()
    admin_url = str(
        furl(self.live_server_url)
        / reverse("admin:forms_form_change", args=(form.pk,))
    )
    async with browser_page() as page:
        await self._admin_login(page)
        await page.goto(str(admin_url))
        await page.get_by_role("tab", name="Steps and Fields").click()
        await drag_and_drop_component(page, "Bestandsupload")
        await page.get_by_role("link", name="Bestand").click()
        label = page.get_by_text("Bestandstypen", exact=True).first
        field = label.locator("..")  # grab the parent
        dropdown = field.get_by_role("combobox")
        await dropdown.click()
        await dropdown.get_by_text(".pdf").click()
        await dropdown.blur()
        # Save component
        await page.get_by_role("button", name="Opslaan").click()
        await expect(page.locator("css=.formio-dialog-content")).to_be_hidden()
        # Save form
        await page.get_by_role("button", name="Save", exact=True).click()
        changelist_url = str(
            furl(self.live_server_url) / reverse("admin:forms_form_changelist")
        )
        await expect(page).to_have_url(changelist_url)
    @sync_to_async
    def assertConfigurationHasLabels():
        form.refresh_from_db()
        configuration = form.formstep_set.get().form_definition.configuration
        component = configuration["components"][0]
        self.assertEqual(component["file"]["type"], ["application/pdf"])
        self.assertIn("allowedTypesLabels", component["file"])
        self.assertEqual(
            component["file"]["allowedTypesLabels"],
            [".pdf"],
        )
    await assertConfigurationHasLabels()