While automating the synthetic journey for an online shopping experience on the Business website, the script encounters an issue when trying to select company details from a dynamically loaded dropdown. The dropdown should populate company information based on input such as company name, KvK number, or address. However, the script fails to select the correct company from the dropdown list.
Step causing failure: After filling in the company name (e.g., "CZPB B.V.") in the "Bedrijfsnaam, postcode of KvK-nummer" field, the dropdown appears but the script is unable to select the appropriate company from the list.
Expected behavior: The script should select the company "CZPB B.V." from the dropdown based on provided input.
Actual behavior: The company dropdown does not auto-populate the correct selection, and the script fails to click the correct entry despite trying to use methods like getByText(), evaluate(), and waitForSelector().